sn_get_boundary_by_id: Get boundary by id

View source: R/sn_get.R

sn_get_boundary_by_idR Documentation

Get boundary by id

Description

Get boundary by id

Usage

sn_get_boundary_by_id(id, type = "way", cache = TRUE)

Arguments

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

Value

An sf polygon.

Examples


sn_get_boundary_by_id(id = c(Arad = 45422208))

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