Skip to contents

Describe a location using the ERSI and OSM reverse geocoding web-services. This service provides traditional reverse geocoding (lat/lon to placename) but can also be use to get more information about a place name. xy must contain geographic coordinates!

Usage

geocode_rev(xy, pt = FALSE, method = default_method)

Arguments

xy

logical. If TRUE a named xy numeric vector is created

pt

logical. If TRUE point geometry is created.

method

the geocoding service to be used. See ?tidygeocoder::geocode

Value

a data.frame, sf object, or vector

See also

Other geocode: geocode_wiki(), geocode()

Examples

if (FALSE) {
 geocode_rev(xy = c(38,-115))
}