A set of utilities for interacting with GTFS-realtime feeds.
-
Install Python 3 and pip3 (
sudo apt install python3-pip). -
Install the protobuf compiler (also can be downloaded here):
sudo apt install protobuf-compilerI think
brew install protobufmight work on Mac.Run
protoc --versionto confirm that version 3 or higher is installed. -
Install the protobuf Python library:
sudo pip3 install protobuf
Run the build script:
./build.py
gtfsrt2text.sh: Renders a GTFS-RT feed file in a human-readable text format for debugging.get_timestamp.py: Extracts the timestamp field of a GTFS-RT feed file.format_timestamp.py: Converts a POSIX timestamp (like the output ofget_timestamp.py) to a human-readable format.