Contents
Alerts
Transitland enriches static schedule data with real-time alerts. Alerts are imported from GTFS Realtime service alerts and trip updates feeds.
See also GTFS Realtime feed fetching and caching.
Alerts available through the REST API
The Transitland v2 REST API filters all alerts and provides a subset of alerts through the most appropriate endpoint:
- Agencies: when the alert does not provide (via
InformedEntities
) a specific a stop, route, or trip - Routes: when the alert does not provide a specific stop or trip
- Stops: when the alert does not provide a specific trip
- Trips: only for that specific trip
All of the above endpoints can take the include_alerts
query parameter to turn on or off the inclusion of alerts in the API response.