Add a grid table to a GTFS feed

add_grid_table(gtfs, grid)

Arguments

gtfs

An object of class gtfs.

grid

A data.table object created with created with create_grid_table().

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

Details

The grid table of a GTFS-Multi feed always has the same structure as the stops table in a regular GTFS feed. Instead of a true transit stop location, each row represents a grid point (i.e. the centroid of a pixel in the reference grid).