add_transfer_tables: Add a transfer table to a GTFS feed

Description Usage Arguments Details Value Note See Also

View source: R/construct.R

Description

Add a transfer table to a GTFS feed

Usage

1

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 different transit stop locations for that mode. Such a table can be created with create_transfer_table(), using transit stop locations as both origins and destinations.

Details

The transfer 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 transit stop locations, using a certain transport mode. For each transport mode, corresponding travel times are stored in a separate column.

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 transfer trips of a GTFS-Multi feed. See details.

Note

A transfer table already present in the input gtfs object will be overwritten.

See Also

create_transfer_table()


triply-at/gtfsmulti documentation built on Dec. 24, 2021, 1:21 a.m.