nuts_geocode | R Documentation |
Get NUTS codes for location strings
nuts_geocode(
locations,
nominatim_api = "https://nominatim.openstreetmap.org",
return_geometry = FALSE
)
locations |
Character vector of locations to geocode |
nominatim_api |
URL of the Nominatim API |
return_geometry |
If TRUE, returns the sf geometry of the geocoded NUTS regions |
A data.frame with 5 columns:
location: The input in the location
argument
name: Name of the geocoded NUTS region
nuts_1, nuts_2, nuts_3: Official region code at NUTS-1, 2, and 3
nuts_geocode(c("munich", "hamburg"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.