Export designated bus lanes from OpenStreetMaps
Arguments
- bbox
bbox. Area from which to export bus lanes.
- osm_file
character (Optional). Location of OSM extract file with
osm.pbfformat. Refer toosmextract::oe_download()for more details. If not provided OSM Overpass API is called throughosmdata::osmdata_sf().
Examples
if (FALSE) { # \dontrun{
BBOX <- sf::st_bbox(city_limit)
# To use OSM API:
bus_lanes <- GTFShift::osm_bus_lanes(BBOX)
# To use a local OSM file:
osm_file <- oe_download("https://download.geofabrik.de/europe/portugal-latest.osm.pbf")
bus_lanes <- GTFShift::osm_bus_lanes(BBOX, osm_file = osm_file)
} # }
