GTFS Realtime Resources
Original location: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Resources
Last updated: January 2021
Applications
The OneBusAway application suite has support for both GTFS-realtime import and export. The application suite can be used to provide a high-level API from low level GTFS and GTFS-realtime data feeds, for example.
Tools and Libraries
We provide a number of libraries and tools for working with GTFS-realtime data:
- onebusaway-gtfs-realtime-api - a set of Java classes generated from the GTFS-realtime Protocol Buffer spec that allow you to produce and consume raw GTFS-realtime data.
- onebusaway-gtfs-realtime-exporter provides a simple library to assist in sharing GTFS-realtime data.
- onebusaway-gtfs-realtime-from-siri-cli provides a command-line tool for converting SIRI real-time data into GTFS-realtime.
- onebusaway-gtfs-realtime-from-nextbus-cli provide a command-line tool for converting NextBus API real-time data into GTFS-realtime.
- onebusaway-gtfs-realtime-munin-plugin provides a Munin plugin for logging information about a GTFS-realtime feed.
- onebusaway-gtfs-realtime-nagios-plugin provides a Nagios plugin for monitoring a GTFS-realtime feed.
Also see a number of third-party tools here.
Tutorials
- A brief intro to GTFS-realtime and show how to produce a GTFS-realtime alerts feed: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Tutorial-%231:-Intro-to-GTFS-Realtime
- How to produce GTFS-realtime trip update and vehicle position feeds: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Tutorial-%232:-How-to-produce-GTFS-realtime-trip-update-and-vehicle-position-feed
- How to consume a GTFS-realtime feed, with a simple visualization of vehicle positions: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Tutorial-%233:–Vehicle-Positions
- GTFS-realtime’s place in the API ecosystem and using GTFS-realtime to power OneBusAway: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Tutorial-%234:-GTFS-in-the-API-ecosystem
- A number of other GTFS-realtime resources, including various adapters and plugins that work with the spec: https://github.com/OneBusAway/onebusaway/wiki/GTFS-Realtime-Tutorial-%235:-Additional-Resources
Example Code
We also provide a number of demonstration projects with example code designed to get your up and running with GTFS-realtime.