Description Usage Arguments Value
View source: R/gtfs_isochrones.R
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
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
)
|
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. |
An sp object with features corresponding to the isochrones of the breaks provided in 'breaks'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.