Skip to content

GTFS Realtime

GTFS Realtime 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 Realtime was designed around ease of implementation, good GTFS interoperability and a focus on passenger information.

Please visit Google's GTFS Realtime page for more information.

GTFS Realtime Version 2 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
  • Delay field added in the trip update feed
    • Added delay field to the arrival and departure StopTimeEvents in the trip update feed.

    • This change makes cases of 0 delay explicit by always outputting the delay field, including if the delay is 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 (previously, it was 1.0).

    "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 does not contain the Incrementality field. The trip, position and alert feeds will explicitly include the Incrementality field.


Open API Reference

Trip Update

Get GTFS Realtime feed. See Google's GTFS Realtime page for more information.

Parameters

  • ApiKey (string): Your API Key

Examples

  • https://gtfs.translink.ca/v2/gtfsrealtime?apikey=[ApiKey]

Position Update

Get GTFS Realtime position feed. See Google's GTFS Realtime page for more information.

Parameters

  • ApiKey (string): Your API Key

Examples

  • https://gtfs.translink.ca/v2/gtfsposition?apikey=[ApiKey]

Service Alerts

Get GTFS Realtime service alerts. Visit Google's GTFS Realtime page for more information.

Parameters

  • ApiKey (string): Your API Key

Examples

  • https://gtfs.translink.ca/v2/gtfsalerts?apikey=[ApiKey]