get_osm_bbox: Download OSM data from a specified lon/lat bounding box

Description Usage Arguments Value Functions See Also

View source: R/osm.R

Description

Downloads OSM data from an Overpass API server and reads it into an osmar object.

Usage

1
2
3
get_osm_bbox(xmin, xmax, ymin, ymax, server = "https://overpass-api.de")

get_osm_file(file)

Arguments

xmin

Numeric. Minimum longitude

xmax

Numeric. Maximum longitude

ymin

Numeric. Minimum latitude

ymax

Numeric. Maximum latitude

server

Character. Hostname of an Overpass API server Defaults to https://overpass-api.de although you may specify a different hostname.

file

Filepath for an OSM XML file

Value

An osmar object.

Functions

See Also

osmsource_api() which implements the same function but has stricter controls on the size that can be downloaded.


dSHARP-CMU/konigsbergr documentation built on Sept. 11, 2019, 3:55 p.m.