sn_get_city_boundaries: Get city boundaries

View source: R/sn_get.R

sn_get_city_boundariesR Documentation

Get city boundaries

Description

Get city boundaries

Usage

sn_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


sn_get_city_boundaries(city = "Sibiu", country = "Romania")

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.