Skip to content

Instantly share code, notes, and snippets.

@rCarto

rCarto/nominatim.R Secret

Created Sep 6, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.