This function requires OTP 1.x and the analyst
otp_traveltime(
otpcon = NA,
path_data = NULL,
fromPlace = NA,
toPlace = NA,
fromID = NULL,
toID = NULL,
mode = "CAR",
date_time = Sys.time(),
arriveBy = FALSE,
maxWalkDistance = 1000,
numItineraries = 3,
routeOptions = NULL,
ncores = max(round(parallel::detectCores() * 1.25) - 1, 1),
timezone = otpcon$timezone
)
Returns an data frame
OTP connection object produced by otp_connect()
Path to data used in otp_build_graph()
Numeric vector, Longitude/Latitude pair, e.g. `c(-0.134649,51.529258)`, or 2 column matrix of Longitude/Latitude pairs, or sf data frame of POINTS with CRS 4326
Numeric vector, Longitude/Latitude pair, e.g. `c(-0.088780,51.506383)`, or 2 column matrix of Longitude/Latitude pairs, or sf data frame of POINTS with CRS 4326
character vector same length as fromPlace
character vector same length as toPlace
character vector of one or more modes of travel valid values TRANSIT, WALK, BICYCLE, CAR, BUS, RAIL, default CAR. Not all combinations are valid e.g. c("WALK","BUS") is valid but c("WALK","CAR") is not.
POSIXct, a date and time, defaults to current date and time
Logical, Whether the trip should depart or arrive at the specified date and time, default FALSE
Numeric passed to OTP in metres
The maximum number of possible itineraries to return
Named list of values passed to OTP use `otp_route_options()` to make template object.
Numeric, number of cores to use when batch processing, default 1, see details
Character, what timezone to use, see as.POSIXct, default is local timezone
Make a travel time matrix using the analyst features in OPT 1.x
Other analyst:
otp_make_surface()