Service alerts
Last updated
Last updated
GTFS-realtime service alert feeds are available at the following URLs:
Append a feed ID from the list below to the base URL to retrieve that feed:
Alerts will be duplicated between one or more feeds if they are applicable across multiple modes or operators. The ID will always be consistent across feeds to assist with deduplication.
You can append ?format=json
to the end of any feed URL to view the protobuf format in JSON representation.
The GTFS-realtime feed contains FeedEntity messages that contain the following properties:
Alerts can include both plain text and HTML markup body content. The GTFS-realtime translation feature is used to provide both encodings. Plain text content uses the 'en' language and HTML content uses the 'en/html' language.
Each feed (other than all) represents a filtered subset of the total list of available alerts. These rules are currently defined as:
Environment
Base URL
Production
https://feed.nextthere.com/au_sydney/gtfsr/alerts/
UAT
https://feed.uat.nextthere.com/au_sydney/gtfsr/alerts/
Test
https://api-tfnsw.uat.nextthere.com/au_sydney/gtfsr/alerts/
Feed ID
Coverage
Link
all
All modes
ics
All modes except train (metro, bus, ferry, light rail, regional train, regional coach)
buses
Buses (SMBSC, OMBSC)
regionbuses
Buses (TCB)
sydneytrains
Sydney Trains (Sydney suburban, intercity network)
nswtrains
NSW Trains (Regional trains, regional coaches)
metro
Sydney Metro Northwest
ferry
Harbour City Ferries, Newcastle Transport, private operators
innerwest
Light rail – Inner West (L1)
cselr
Light rail – CBD & Eastern Suburbs (L2, L3, LX)
nlr
Light rail – Newcastle Transport (NLR)
trackwork
All trackwork alerts (Sydney Trains, NSW Trains, Sydney Metro, Sydney Light Rail)
Property
Description
id
Unique identifier integer for this alert
alert.headerText
Header of the alert to display to customers
alert.descriptionText
Body of the alert to display to customers. Multiple translations may be provided, but the first will always be a plain text encoding.
alert.informedEntity
Array of agency, route, trip or stop identifiers for correlation with Open Data GTFS bundles
alert.activePeriod
One or more time periods, formed by start/end UNIX timestamp pairs, that the alert applies to.
alert.url
The URL to link the customer to for more information.
Feed ID
Includes all alerts where
all
*
ics
Original source feed was EFA addinfo API
buses
Alert affects an agency with ID 2*** or one of its routes
or alert affects a bus stop but no routes are defined
regionbuses
Alert affects an agency with ID 5*** or one of its routes
sydneytrains
Alert affects agency SydneyTrains or one of its routes
or original source feed was RTTA Service Alerts
nswtrains
Alert affects agency 710, 711 or X000 or one of its routes
metro
Alert affects agency SMNW or one of its routes
ferry
Alert affects a ferry route or a stop associated with a ferry route
innerwest
Alert affects route IWLR-191
cselr
Alert affects agency SLR or one of its routes
nlr
Alert affects route NT_NLR
trackwork
Alert is of type trackwork