OneBusAway provides an API for exporting data in the GTFS-realtime format. It supports all three major GTFS-realtime datatypes:
Specifically, we support methods for retrieving GTFS-realtime feeds on a per agency basis. The API URLs take the following form:
Here, replace localhost:8080 with the hostname and port of your OneBusAway API server. Data will be requested for a particular agency, as specified by the agency id encoded directly in the URL (“1” in the example urls).
By default, these methods return GTFS-realtime data encoded as a binary protocol buffer, per the GTFS-realtime spec. To make it easier to debug your system, we also provide a simple way to see a textual representation of each GTFS-realtime feed as well. Simple switch the “.pb” extension in the URL with “.pbtext”. For example: