otp_surface {opentripplanner} | R Documentation |
Evaluate a surface against a pointset
Description
Evaluate a surface created with 'otp_make_surface' against a pointset made with 'otp_pointset' to get travel times and statitics from the analysit in OTP 1.x
Usage
otp_surface(
otpcon = NULL,
surface = NULL,
pointsset = NULL,
get_data = TRUE,
ncores = 1
)
Arguments
otpcon |
OTP connection object produced by otp_connect() |
surface |
A surface list from otp_make_surface() |
pointsset |
character, name of pointset |
get_data |
Logical, should data be returned or just travel times. |
ncores |
Integer, number of cores to use |
Details
THis function requires the analysis and pointset features to be enabled during 'otp_setup()'. Thus it will only work with OTP 1.x. For more detail see the analyst vignette.
Value
Returns a list of data.frames of travel times
Examples
## Not run:
times <- otp_surface(otpcon, c(-1.17502, 50.64590), "lsoa", path_data)
## End(Not run)
[Package opentripplanner version 0.5.2 Index]