Add an egress table to a GTFS feed

add_egress_tables(gtfs, ...)

Arguments

gtfs

An object of class gtfs.

...

One or more keyword arguments, with the key being the name of a specific transport mode, and the value being a data.table object containing the travel times between transit stops and grid points for that mode. Such a table can be created with create_transfer_table(), using transit stop locations as origins and grid points as destinations.

Value

An object of class gtfs. This is a list of multiple data.table objects corresponding to the different dataset files of a GTFS feed. In addition to those, the returned object will contain a data.table representing the egress trips of a GTFS-Multi feed. See details.

Details

The egress table of a GTFS-Multi feed always has the same structure as the transfer table in a regular GTFS feed. Each row contains the minimum travel time needed to travel from a transit stop location to a grid point in the reference grid, using a certain transport mode. For each transport mode, corresponding travel times are stored in a separate column.

Note

An egress table already present in the input gtfs object will be overwritten.