sf
R/geocode.R
ox_geocode_to_sf.Rd
Like ox_geocode() but returns the place geometry (boundary polygon when available, otherwise a point) as an sf object.
ox_geocode()
ox_geocode_to_sf(query, limit = 1)
A character scalar, e.g. "Recife, Brazil".
"Recife, Brazil"
Maximum number of results. Default 1.
1
An sf object (one row per result) in EPSG:4326.
if (FALSE) { # interactive() ox_geocode_to_sf("Recife, Brazil") }