Docs · Publishing & distribution · Service Alerts

Service Alerts Agency

Post GTFS-Realtime Service Alerts — detours, delays, stop closures, reduced service — to a live feed that Google Maps, Apple Maps, and transit apps consume. Alerts are decoupled from your schedule: posting or expiring one takes effect immediately, with no republish.

The Service Alerts authoring form in GTFS·X: a rider-facing header, optional description, Cause / Effect / Severity dropdowns, a More info URL, and an affected-entities picker for the whole feed, routes, or stops.
Composing an alert. A rider-facing header and description, GTFS-Realtime Cause / Effect / Severity, an optional info URL, the entities it affects (whole feed, routes, or stops), and one or more active windows.

What it is

A GTFS feed is your schedule — the service you intend to run. Real operations diverge: a bridge closes, a stop moves for construction, snow cancels a route. GTFS-Realtime Service Alerts are the standard way to tell riders' apps about those divergences, layered on top of the static feed. GTFS·X gives you a place to write them and a live URL to serve them — without standing up a real-time server.

This covers the Service Alerts entity of GTFS-Realtime only. Trip Updates (live arrival predictions) and Vehicle Positions require an AVL feed off your buses and are out of scope.

When to use it

How to author an alert

  1. Open a feed and click Service Alerts under Operations in the left rail, then + New alert.
  2. Write a Header — the short rider-facing summary (e.g. "Route 5 detour around Main St") — and an optional longer Description.
  3. Set Cause, Effect, and Severity from the GTFS-Realtime enumerations (e.g. Construction → Detour → Warning). Add a More info URL if you have a page with details.
  4. Choose the affected entities — the whole feed (agency-wide), specific routes, or specific stops, optionally by direction. The pickers are populated from the live feed, so you select real routes and stops. At least one is required.
  5. Optionally add one or more active windows (start/end). With no window, the alert is active as soon as you activate it and until you deactivate it.
  6. Save, preview, then activate. The alert appears on your public alerts feed within the cache window; deactivating or expiring it removes it — all without touching your schedule.

How it's served

Alerts publish to two public URLs alongside your feed, for whichever format a consumer prefers:

Both serve a v2.0 FULL_DATASET containing only currently-active alerts (by status and active window), with a short max-age=30 cache. Authoring is gated to your team; the served feeds are open, because their consumers are trip planners. When you start authoring alerts, GTFS·X automatically advertises the alerts.pb URL in your feed's feed_info.json so catalogs and consumers can discover it.

Good to know

See also