otp_surface | R Documentation |
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
otp_surface(
otpcon = NULL,
surface = NULL,
pointsset = NULL,
get_data = TRUE,
ncores = 1
)
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 |
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.
Returns a list of data.frames of travel times
## Not run:
times <- otp_surface(otpcon, c(-1.17502, 50.64590), "lsoa", path_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.