GTFS Realtime
GTFS Real-time is a feed specification that allows public transportation agencies to provide real-time updates about their fleet to application developers. It is an extension to GTFS (General Transit Feed Specification), an open data format for public transportation schedules and associated geographic information. GTFS real-time was designed around ease of implementation, good GTFS interoperability and a focus on passenger information.
Please visit Google's GTFS Real-time page for more information.
GTFS Real-time Release Notes
-
New Text-to-Speech fields added to the alert feed
The following Text-to-Speech fields are now available in our GTFS-realtime service alert feed:-
tts_header_text
-
tts_description_text
-
-
New field severity_level added to alert feed
A new field called severity_level has been added to the alerts feed.
-
Delay field added in the trip update feed
-
Add 'delay' field to the arrival and departure StopTimeEvents in the trip update feed
-
This change makes cases of 'delay' = 0 explicit by always outputting the delay field, including if 'delay' = 0.
-
-
Performance optimization in generation of Trip and Position feeds
Generating the Trip and Position pb files were optimized to be more reliable with performance improvements.
-
GTFS-realtime Version officially updated from 1.0 to 2.0
Modify the FeedHeader to indicate version is 2.0 (traditionally, it's 1.0). Specifics:-
"header": {
"gtfs_realtime_version": "2.0",
-
-
StopTimeUpdate stop_sequence sometimes not sorted correctly
There were cases where the StopTimeUpdate stop_sequence were not sorted in ascending order. This has been fixed.
-
Incrementality field added to the FeedHeader
The current trip and does not contain the Incrementality filed. The trip, position and alert feeds will explicitly include the Incrementality field.
Open API Reference
Trip Update
Get GTFS-real-time feed. See Google's GTFS Real-time page for more information.
Parameter:
-
ApiKey (string): Your ApiKey received during registration
Examples
-
V2
https://gtfs.translink.ca/v2/gtfsrealtime?apikey=[APIKey]
- Get GTFS-real-time feed
Position Update
Get GTFS-real-time position feed. See Google's GTFS Real-time page for more information.
Parameter:
-
ApiKey (string): Your ApiKey received during registration
Examples
-
V2
https://gtfs.translink.ca/v2/gtfsposition?apikey=[APIKey]
- Get GTFS-real-time position feed
Service Alerts
Get GTFS-real-time service alerts. Visit Google's GTFS Real-time page for more information.
Parameter:
-
ApiKey (string): Your ApiKey received during registration
Examples
-
V2
https://gtfs.translink.ca/v2/gtfsalerts?apikey=[APIKey]
- Get GTFS-real-time service alert feed