get_boundary_by_id.Rd
Get boundary by id
get_boundary_by_id(id, type = "way", cache = TRUE)
id | A numeric vector of length 1, must correspond to the id of a boundary object on OpenStreetMap. |
---|---|
type | Defaults to "way". |
cache | Logical, defaults to TRUE. If TRUE, stores data in local subfolder data/cities/country_name/city_name.rds |
An sf polygon.
#> Error in if (file == "") stop("'file' must be non-empty string"): argument is of length zero