Description Usage Arguments Value Examples
View source: R/download_osm_data.R
Get city boundaries
1 2 | get_city_boundaries(city, country, admin_level = 6,
administrative = NULL, cache = TRUE)
|
city |
The name of a city/municipality. |
country |
The name of the country. Requested to ensure correct identification of city. |
admin_level |
Defaults to 6. For more information see: https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#10_admin_level_values_for_specific_countries |
administrative |
Defaults to NULL. If TRUE, filters only boundaries recorded as administrative. For more information, see: https://wiki.openstreetmap.org/wiki/Tag%3aboundary=administrative |
cache |
Logical, defaults to TRUE. If TRUE, stores data in local subfolder data/cities/country_name/city_name.rds |
An sf polygon.
1 | get_city_boundaries(search = "Sibiu, Romania")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.