View source: R/gtfs_cleaning.R
gtfs_fast_trips | R Documentation |
Fast trips can identify problems with the input data or conversion process. This function returns trip_ids for trips that exceed 'maxspeed'.
gtfs_fast_trips(gtfs, maxspeed = 83, routes = TRUE)
gtfs |
list of gtfs tables |
maxspeed |
the maximum allowed speed in metres per second default 83 m/s (about 185 mph the max speed of trains on HS1 line) |
routes |
logical, do one trip per route, faster but may miss some trips |
The function looks a straight line distance between each stop and detects the fastest segment of the journey. A common cause of errors is that a stop is in the wrong location so a bus can appear to teleport across the country in seconds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.