readOSMFiles: Returns all OSM features within a bounding box

Description Usage Arguments Value Examples

View source: R/accessData.R

Description

Returns all OSM features within a bounding box

Usage

1

Arguments

bbox

bounding box. Must be ordered like this: left, bottom, right top

Value

list of requested features cropped by the bounding box.

Examples

1
2
3
4
5
6
## Not run: 
 track = readGPXFile("./inst/extdata/track_run.gpx")
 bbox <- st_bbox(track)
 osm_features = readOSMFiles(bbox)

## End(Not run)

KathHv/ross documentation built on Dec. 18, 2021, 2:42 a.m.