create_city_boundary_id_combo.Rd
Create a city/id combination for proper caching
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()``
create_city_boundary_id_combo(id = 45422208, type = "way", city = "Arad", country = "Romania")#> $city #> [1] "Arad" #> #> $country #> [1] "Romania" #> #> $id #> [1] 45422208 #> #> $type #> [1] "way" #># https://www.openstreetmap.org/relation/46663 create_city_boundary_id_combo(id = 46663, type = "relation", city = "Trento", country = "Italy", )#> $city #> [1] "Trento" #> #> $country #> [1] "Italy" #> #> $id #> [1] 46663 #> #> $type #> [1] "relation" #>