| get_osm {osmar} | R Documentation |
Get OSM data as osmar object from different
sources by providing a bounding box.
get_osm(x, source = osmsource_api(), ...)
x |
Data identifier, e.g., bounding box or specific element; see the help page of the used OSM source for a detailed list on the supported identifiers |
source |
OSM source, e.g.,
|
... |
Additional arguments suppported by the specific OSM source; see corresponding source help page for a detailed list |
An osmar object
bbox, osm_descriptors,
osmsource_api,
osmsource_osmosis
## Not run: api <- osmsource_api() box <- corner_bbox(11.579341, 48.15102, 11.582852, 48.1530) gschw <- get_osm(box, source = api) kaufstr <- get_osm(way(3810479)) kaufstr_full <- get_osm(way(3810479), full = TRUE) ## End(Not run)