powered by
Convert straight SpatialLinesDataFrame from flow data into routes retrying on connection (or other) intermittent failures
line2routeRetry(lines, pattern = "^Error: ", n_retry = 3, ...)
A SpatialLinesDataFrame
A regex that the error messages must not match to be retried, default "^Error: " i.e. do not retry errors starting with "Error: "
Number of times to retry
Arguments passed to the routing function, e.g. route_cyclestreet()
route_cyclestreet()
See line2route() for the version that is not retried on errors.
line2route()
Other routes: line2route, nearest2spdf, route_cyclestreet, route_dodgr, route_graphhopper, route_local, route_osrm, route_transportapi_public, route, viaroute2sldf, viaroute
line2route
nearest2spdf
route_cyclestreet
route_dodgr
route_graphhopper
route_local
route_osrm
route_transportapi_public
route
viaroute2sldf
viaroute
# NOT RUN { data(flowlines) rf_list <- line2routeRetry(flowlines[1:2, ], pattern = "nonexistanceerror", silent = F) # }
Run the code above in your browser using DataLab