osmar (version 1.1-7)

get_osm: Get OSM data

Description

Get OSM data as osmar object from different sources by providing a bounding box.

Usage

get_osm(x, source = osmsource_api(), ...)

Arguments

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., osmsource_api
...
Additional arguments suppported by the specific OSM source; see corresponding source help page for a detailed list

Value

An osmar object

See Also

bbox, osm_descriptors, osmsource_api, osmsource_osmosis

Examples

Run this code
## 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)

Run the code above in your browser using DataLab