Description Usage Arguments Details Value Examples
View source: R/otp-isochrone.R
Get the Isochrones from a location
1 2 3 4 |
otpcon |
OTP connection object produced by otp_connect() |
fromPlace |
Numeric vector, Latitude/Longitude pair, e.g. 'c(51.529258,-0.134649)' |
mode |
Character vector of modes of travel valid values TRANSIT, WALK, BICYCLE, CAR, BUS, RAIL, default CAR |
date_time |
POSIXct, a date and time, defaults to current date and time |
arriveBy |
Logical, Whether the trip should depart or arrive at the specified date and time, default FALSE |
maxWalkDistance |
Numeric passed to OTP |
walkReluctance |
Numeric passed to OTP |
transferPenalty |
Numeric passed to OTP |
minTransferTime |
Numeric passed to OTP |
cutoffSec |
Numeric vector, number of seconds to define the break points of each Isochrone |
Isochrones are maps of equal travel time, for a given location a map is produced showing how long it takes to reach each location.
Returns a data.frame of SF POLYGONS
1 2 3 4 5 | ## Not run:
isochrone1 <- otp_isochrone(otpcon, fromPlace = c(51.5292,-0.1346))
isochrone2 <- otp_isochrone(otpcon, fromPlace = c(51.5292,-0.1346), mode = c("WALK","TRANSIT"), cutoffSec = c(600,1200,1800))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.