Skip navigation links

Package org.transitime.gtfs.readers

For reading in a GTFS file in CSV format.

See: Description

Package org.transitime.gtfs.readers Description

For reading in a GTFS file in CSV format. These classes extend org.transitime.utils.csv.CsvBaseReader class which uses the org.apache.commons.csv package for actually processing CSV files.

A key feature of these readers is that they handle additional columns that are not part of the GTFS standard. In this way can easily add useful information such as route ordering for a user interface, whether a stop is a timepoint, etc.

Also, the CSV readers can merge in supplemental CSV files joined by a key. For example, you can specify a supplemental routes.txt file that has just the route_short_name and a route_order column defined. This file can reside in a separate location that doesn't need to be updated. It can, for as many routes as desired, define the route order for the routes in the user interface. When new GTFS data is obtained from the agency most likely the routes haven't changed. Therefore the same unchanged supplemental file can be used when processing the new GTFS data to get the route order.

Note: CsvBaseReader specifies that a line is a comment if it starts with '-' character. This means can comment out lines by starting them with "--", as with SQL.

Author:
SkiBu Smith
Skip navigation links