add_direct_tables.Rd
Add a direct table to a GTFS feed
add_direct_tables(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 different grid points for that mode. Such a table can be
created with create_transfer_table()
, using grid points as
both origins and destinations.
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 direct trips of a
GTFS-Multi feed. See details.
The direct 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 between two different grid points in the reference grid, using a certain transport mode. For each transport mode, corresponding travel times are stored in a separate column.
A direct table already present in the input gtfs object will be overwritten.