Skip to contents

Get the city boundary from OpenStreetMap

Usage

get_osm_city_boundary(city_name)

Arguments

city_name

A character string with the name of the city

Value

An sf object with the city boundary

Examples

get_osm_city_boundary("Bucharest")
#> Geometry set for 1 feature 
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 25.96667 ymin: 44.33425 xmax: 26.22558 ymax: 44.5414
#> Geodetic CRS:  WGS 84
#> MULTIPOLYGON (((26.08815 44.36924, 26.08864 44....