get_city_boundaries: Get city boundaries

Description Usage Arguments Value Examples

View source: R/download_osm_data.R

Description

Get city boundaries

Usage

1
2
get_city_boundaries(city, country, admin_level = 6,
  administrative = NULL, cache = TRUE)

Arguments

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

Value

An sf polygon.

Examples

1
get_city_boundaries(search = "Sibiu, Romania")

giocomai/genderedstreetnames documentation built on June 21, 2020, 8:31 p.m.