gtfs_route_headway | R Documentation |
Calculate a vector of headway values – that is, time intervals between consecutive services – for all routes between two specified stations.
gtfs_route_headway(
gtfs,
from,
to,
from_to_are_ids = FALSE,
grep_fixed = TRUE,
quiet = FALSE
)
gtfs |
A set of GTFS data returned from extract_gtfs or, for more efficient queries, pre-processed with gtfs_timetable. |
from |
Names, IDs, or approximate (lon, lat) coordinates of start
stations (as |
to |
Corresponding Names, IDs, or coordinates of end station. |
from_to_are_ids |
Set to |
grep_fixed |
If |
quiet |
If |
A single vector of integer values containing headways between all services across a single 24-hour period
Other main:
gtfs_route()
,
gtfs_traveltimes()
## Not run:
path <- berlin_gtfs_to_zip ()
gtfs <- extract_gtfs (path)
gtfs_route_headway (gtfs, from = "Tegel", to = "Berlin Hauptbahnhof")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.