Skip to contents

Results are cached, so that new queries with the same type and id will be loaded from disk.

Usage

osmdata_as_sf_by_id(type, id, force_download = FALSE)

Arguments

type

A character string with the OSM element type ("relation", "way", or "node")

id

A character or numeric vector of length 1 with the OSM element id

force_download

Download data even if cached data is available

Value

An osmdata::osmdata object with the retrieved OpenStreetMap data