gtfs_isochrones: Produces isochrones as an sf-object

Description Usage Arguments Value

View source: R/gtfs_isochrones.R

Description

gtfs_isochrones Creates one SP Object containg a isochrones calculated from a tidytransit::raptor result. The function uses the minimal travel times from the start stop to all stops as a main input parameter. This isochrone is a not meant to depict exact reachibility of transit in detail. Use opentripplanner for this instead. The goal here is to provide a decent overview of transit access at larger scales (regional, national or continental). IMPORTANT: The raptor_result table has to have only have one single stop as origin

Usage

1
2
3
4
5
6
7
gtfs_isochrones(
  raptor_result,
  stops,
  breaks = c(3600, 2 * 3600, 3 * 3600),
  hull_alpha_min = 0.2,
  buffer_value = 5000
)

Arguments

raptor_result

A result from tidytransit::raptor function

stops

A stops dataframe obtained from a tidytransit gtfs object: gtfs$stops

breaks

A vector containing the travel time breaks for the isochrone in seconds.

hull_alpha_min

The alpha values increase by increasing break interval for better graphic display of the isochrones.

buffer_value

The shapes are buffered in the end for graphic display. Value in meters.

Value

An sp object with features corresponding to the isochrones of the breaks provided in 'breaks'.


mflucas/gtfsTools documentation built on March 2, 2021, 3:24 a.m.