Open-Bus GTFS Utils¶
GTFS Utils is a utility for reading, parsing and aggregating GTFS data from Israel MOT.
GTFS Utils is part of Open-Bus project in The Public Knowledge Workshop (“הסדנה לידע ציבורי”).
To use GTFS Stats script, run:
python setup.py install
GTFS Utils requires a configuration file
An example file can be found in
bucket_valid_file_name_regexp field in configuration to choose which dates to run the script on.
You can use a value such as
"2019-03-07.zip" to run on a single date, or
"2019-05-\d\d\.zip" to run on a full
month, for example.
forward_fill field in configuration to
true for performing forward fill for missing dates using existing
GTFS Stats outputs stats for trips and for routes (trip_stats and route_stats, accordingly).
Each of them is output as a
pkl.gz file (a gzipped pickle) of a
Pandas DataFrame, and is located in the
output directory, as defined in the configuration file.
The fields in each one of them are described in the output specifications below.