Method
What is archived
Switzerland publishes its disruption messages as live feeds on opentransportdata.swiss; anything that has ended disappears without a trace. This archive polls the feeds regularly and keeps every message:
- SIRI-SX planned (about 1,100 messages, about 140 MB uncompressed): construction work, events, relocated stops, with every validity period and texts in German, French, Italian and English.
- SIRI-SX unplanned: interruptions, vehicle failures, bad weather, broken lifts.
- FEDRO traffic messages (DATEX II): roadworks, closures, winter closures and accidents on national and cantonal roads.
- GTFS-SA is used only as a cross-check: we count its messages but do not archive them separately.
How often
Unplanned and road messages are polled every 5 minutes; the large planned feed and GTFS-SA at most once an hour. Unplanned incidents are therefore captured to within 5 minutes, planned messages to within an hour; an unplanned incident that stays in the feed for less than 5 minutes may be missed. Failed polls are logged and do not count.
One message, many versions
Each message has a number (SituationNumber) and a version number. Each combination is stored exactly once, with when we saw it first and last and in how many snapshots. If a message is missing from a later successful snapshot of the same feed, it counts as ended at the time it was last seen.
Published is not the same as in force
Many messages are published weeks in advance; some have dozens of separate validity periods (e.g. every night from 11 pm to 5 am), one even 265. “In force” on this site means one of those periods covers the moment or day in question, not the span from the first start to the last end.
“Until further notice”
A message is “until further notice” when its end date is in 2099 or later (the feed uses 31 Dec 2500) or when the duration text says “indefinite”. How long such messages actually last only becomes visible when they leave the feed, so that list starts empty when the archive starts and grows over time.
Before the archive started
Messages carry their validity start, often months or years back, so from day one we can say since when a disruption still in force has existed. Frequencies counted backwards would be biased, though: the feed only contains messages still published today, not those that ended earlier. We therefore count “days with restrictions” backwards only from the archive start, and forwards only from announced periods.
Classification
- Cause: the
AlertCausefield as coded by the operator; “not specified” isundefinedAlertCause. - Mode: first the tag in the short text (e.g. “[train]”); then the line name (S, IR, IC, RE …); finally the operator’s business type in ATLAS (in that case bus and tram are not told apart).
- Lines: the message’s affected lines; SBB often names them only in the text (“Affected: lines IR 35 and S 17”), which we read and assign to the operator running most of the affected journeys. “S 1” and “S1” are the same line; replacement services (EV) and bare product names (“IC”) do not count as lines.
- Operators and cantons: via the ATLAS registers of business organisations and stops (sloid → stop → canton).
- Affected journeys: about 150,000 journey references are counted, not stored one by one.
Roads
FEDRO messages are archived with the same logic (situation ID and version). The type is derived from the DATEX II record type and the “Sachlage” (situation) text, the road number from the location text. Active means: in the latest snapshot, in force now, and neither lifted nor cancelled. Internal notes in the feed are never shown. With If-Modified-Since the interface returns only changed messages, so we always fetch the full set to detect messages that ended. FEDRO texts exist in German, French and Italian only.
Terms of use and sources
- Public transport data (SIRI-SX, GTFS-SA, ATLAS): source opentransportdata.swiss; under its terms of use the source must be cited and processed data is published under our own name. Our analyses are CC BY 4.0.
- Road data: the FEDRO terms of use apply. Required citation: “Data source: Federal Roads Office (FEDRO) Traffic Data Platform (TDP).” Raw data must not be passed on to third parties via a machine-readable interface, so we only show processed information (type, road, location, dates, counts) and offer no road downloads. The CC BY licence in the footer does not cover the road data.
Limits
- Texts are shown as published by the operators; where a language is missing, the German text is shown.
- A canton counts when an affected stop is located there; messages without stops have no canton.
- The number of messages does not measure how many people are affected: a broken lift counts as much as a line closure.
- GTFS-SA and SIRI-SX mostly use different IDs, so the cross-check compares counts only.