View source: R/geocode_njogis.R
reverse_geocode | R Documentation |
Reverse geocode a set of coordinates, an 'sf' point, or an 'sfc' point
reverse_geocode(input, distance = NULL, crs = 4326)
input |
Either a 2-element numeric vector (longitude, latitude), an 'sf' point object, or an 'sfc' object. |
distance |
Max distance to search around coordinates (in feet). Default is NULL. |
crs |
Coordinate reference system code of points. Default is 4326. |
Dataframe with place name and address corresponding to coordinates.
reverse_geocode(c(-74.44513, 40.49297)) # Using longitude and latitude
# Or using an sf point object:
library(sf)
point_sf <- st_sfc(st_point(c(-74.44513, 40.49297)), crs = 4326)
reverse_geocode(point_sf)
# Or using an sfc object:
point_sfc <- st_point(c(-74.44513, 40.49297))
reverse_geocode(point_sfc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.