Description Usage Arguments Value Examples
View source: R/download_osm_data.R
Create a city/id combination for proper caching
1 2 | create_city_boundary_id_combo(id, type, city = NULL, country = NULL,
cache = TRUE)
|
id |
A numeric vector of length 1, must correspond to the id of a boundary object on OpenStreetMap. |
type |
One of either "way", "relation", or "node". |
city |
The name of a city/municipality. |
country |
The name of the country. Requested to ensure correct identification of city. |
cache |
Logical, defaults to TRUE. If TRUE, stores data in local subfolder data/cities/country_name/city_name.rds |
A list, typically to be fed into 'get_boundary_by_id()“
1 2 3 4 | create_city_boundary_id_combo(id = 45422208, type = "way", city = "Arad", country = "Romania")
# https://www.openstreetmap.org/relation/46663
create_city_boundary_id_combo(id = 46663, type = "relation", city = "Trento", country = "Italy", )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.