Skip to contents

Extract bike/bici routes for origins and destinations

Usage

bici_routes_osrm(
  od.data,
  distance.threshold = Inf,
  osrm.profile = "foot",
  origin.col = names(od.data)[1],
  destination.col = names(od.data)[2],
  trips.col = names(od.data)[grep("trip", names(od.data))]
)

Arguments

od.data

A sf object with OD data

distance.threshold

distance threshold in metres to create a subset of the routes

osrm.profile

for the osrmRoute function

origin.col

string with name of the column with origin id

destination.col

string with name of the column with destination id

trips.col

string with name of the column with number of trips for each OD pair

Value

An sf object with the routes to school

Examples

if (FALSE) { # \dontrun{
bici_routes(od.data)
} # }