Get the OSM network functions
Arguments
- place
A place name or a bounding box passed to
osmextract::oe_get()
- boundary
An sf object used to clip the OSM data. Passed to
osmextract::oe_get()
- boundary_type
The clipping method for the boundary. Default is "clipsrc" which clips geometries to the boundary. See osmextract documentation for other options.
A vector of extra tags to be included in the OSM extract
- columns_to_remove
A vector of columns to be removed from the OSM network
- ...
Additional arguments passed to
osmextract::oe_get()
Examples
# Basic usage:
# osm = get_travel_network("Edinburgh")
# Using a boundary to clip data:
# library(sf)
# boundary_poly = st_buffer(st_sfc(st_point(c(-3.2, 55.9)), crs = 4326), 0.01)
# osm_clipped = get_travel_network("Edinburgh", boundary = boundary_poly)
# Using different boundary types:
# osm_intersect = get_travel_network("Edinburgh", boundary = boundary_poly, boundary_type = "clipsrc")