Learn R Programming

gtfsrouter (version 0.1.4)

frequencies_to_stop_times: frequencies_to_stop_times

Description

Convert a GTFS 'frequencies' table to equivalent 'stop_times' that can be used for routing.

Usage

frequencies_to_stop_times(gtfs)

Value

The input GTFS data with data from the 'frequencies' table converted to equivalent 'arrival_time' and 'departure_time' values in stop_times.

Arguments

gtfs

A set of GTFS data returned from extract_gtfs.

See Also

Other augment: gtfs_transfer_table()

Examples

Run this code
if (FALSE) {
# Presume an input feed has been created and includes a "frequencies" table:
gtfs2 <- frequencies_to_stop_times (gtfs)
# "gtfs2" will then have an expanded "stop_times" table, with all
# "frequencies" entries converted to equivalent absolute stop times.
}

Run the code above in your browser using DataLab