get_osm: Get OSM data

Description Usage Arguments Value See Also Examples

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  ## 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)

gergness/osmar2 documentation built on May 17, 2019, 2:10 a.m.