otp_isochrone: Get the Isochrones from a location

Description Usage Arguments Details Value Examples

View source: R/otp-isochrone.R

Description

Get the Isochrones from a location

Usage

1
2
3
4
otp_isochrone(otpcon = NA, fromPlace = NA, mode = "TRANSIT",
  date_time = Sys.time(), arriveBy = FALSE, maxWalkDistance = 800,
  walkReluctance = 5, transferPenalty = 0, minTransferTime = 600,
  cutoffSec = c(600, 1200, 1800, 2400, 3000, 3600))

Arguments

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

Details

Isochrones are maps of equal travel time, for a given location a map is produced showing how long it takes to reach each location.

Value

Returns a data.frame of SF POLYGONS

Examples

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)

marcusyoung/opentripplanner documentation built on May 20, 2019, 4:42 p.m.