-
-
Save rCarto/965dde0d588dabf0189ba85a4fd35c15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devtools::install_github("hrbrmstr/nominatim") | |
library(nominatim) | |
points <- data.frame(lat = c(48.798642, 48.805687,48.946273), | |
lon = c(2.358084, 2.421567, 2.555989)) | |
rev_points <- reverse_geocode_coords(lat = points$lat, lon = points$lon, | |
key = "VotreClefAPIMapQuestICI") | |
rev_points[,c('lat','lon','postcode')] | |
> lat lon postcode | |
> 1 48.79660 2.358489 94800 | |
> 2 48.80555 2.421593 94140 | |
> 3 48.94562 2.556946 93420 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment