Car or train?

Method

What is compared

Seven routes, each in both directions: Zurich–Bern (A1), Bern–Lausanne (A12/A9), Lausanne–Geneva (A1), Basel–Lucerne (A2), Lucerne–Lugano over the Gotthard (A2), Zurich–St. Gallen (A1) and Zurich–Chur (A3/A13). For the car, the motorway between two named junctions near the cities counts (e.g. Limmattal interchange to Bern-Wankdorf). For the train, the trip from main station to main station.

So that both start at the station, the car gets an estimated access time: at each end, the straight line between station and motorway end, times 1.3 for detours, at 40 km/h. This is a rough assumption without measurement, so it is shown separately for every route. Not included: parking, getting to the station, waiting for the train, costs.

Motorway travel time

  • Route: assembled from FEDRO’s national road axes (geo.admin.ch) and clipped at the junctions. The length comes from this geometry.
  • Counters: every station in FEDRO’s list “Traffic counting – main network” on the same road number and within 150 m of the axis. A few ramps and feeders are excluded by hand. The station number in the list matches the feed ID (station 60 = CH:0060); we check the position of every station.
  • Direction: every lane carries an ALERT-C direction (“positive”/“negative”). The counters’ destination names tell us which one leads to Bern, Lausanne and so on. We then check the result against the text of traffic reports, e.g. “A1 Zürich -> Bern” with direction “negative”. Both sources agree on all seven routes; on a contradiction the road would drop out of the calculation.
  • Speed: the average speed of cars (vehicle class “car”) in the last full minute. Lanes are averaged, weighted by the number of vehicles counted. Values above 120 km/h count as 120 km/h, because driving faster than allowed does not shorten the route. A single minute is noisy, so we take the median of this poll and the two before it, about 10 minutes.
  • Calculation: each counter stands for the section up to halfway to its neighbours. Travel time is the sum of section length divided by speed.
  • Gaps: lanes that counted no vehicle at all in 24 hours are treated as broken and dropped; their neighbours take over the section. If a counter gives no value now, we use its median of the last 15 minutes. Failing that, two cases. If it is offline, we take the mean of its neighbours. If it reports no vehicles, that may also mean a standstill: we use its usual free-flow speed but do not count the section as measured. Usual means the 85th percentile of its archived values, or 100 km/h while the archive is too short. The share of each route measured live is shown with it.
  • Queue reports: if FEDRO’s traffic information reports a queue with a time loss on the route and no counter measures under 60 km/h, we add the reported loss. If a counter measures under 60 km/h, the queue is already in the measurement. A queue reported without a time and invisible at the counters means no verdict. Reports on sections that reach beyond the route (e.g. “A2 Gotthard – Chiasso” for Lucerne–Lugano) are shown but not counted.

Limits: a counter measures at one point, not along the section. A short queue between two counters, say at a tunnel portal, can slip through. A single minute is also a small sample. In a complete standstill no vehicle crosses the counter and no value is produced; the rules above cover that case.

Train travel time

Source: SIRI-ET from opentransportdata.swiss, which lists every journey running now or due in the next hours, with planned and forecast times per stop. We take journeys that call at both stations in the right order, minus cancelled ones and those already gone. Among departures in the next 60 minutes, the fastest counts; if several are within 2 minutes of it, the earliest. Its time runs from the planned departure to the forecast arrival: timetable plus current delay. Waiting time until departure is shown but not counted.

Lucerne–Lugano has a direct train only every two hours, so connections with one change at Arth-Goldau (at least 4 minutes) count too. If the forecast says the connection will be missed, we use the next train that can be reached.

The verdict

The comparison is the car in total (motorway, reported time loss and estimated access) against the train time. “Right now the train is … faster” appears only under four conditions: at least 70% of the route is measured live, no queue is unexplained, there is a train, and the data is at most 15 minutes old. Differences under 5 minutes read “about the same”. Because access is only estimated, we also compute it at 30 and at 50 km/h; if the winner changes, the result is “about the same” too. There is also no verdict when the train data is older than 15 minutes or a closure is in force on the route (“Strecke gesperrt” within the report’s time window; night closures only between 20:00 and 06:00). Otherwise the parts are shown side by side, without a verdict.

Jam census

Every 5 minutes we poll all counters and store the values; FEDRO itself offers no archive. Each poll returns the last full minute, so the archive samples one minute in five. For every counter and direction, the usual free-flow speed is the 85th percentile of its values. A minute below half of it (measured on at least three cars) counts as a breakdown; below 70%, traffic counts as dense. So that a site jammed for the whole, still short archive cannot set its own bar too low, the usual speed is at least 70 km/h on motorways and expressways and 40 km/h on main roads. Customs plazas at the border are slow by design and are left out of the ranking. A counter is rated only from 12 values on. Consecutive breakdowns at the same spot form one event. The “since” date on the census page is when our archive began: the shorter it is, the more the ranking is a snapshot.

We rate the 293 counters in FEDRO’s list that we can match to the feed. Cantonal counters in Bern and Zurich mostly measure in town and have no names in the feed, so we archive them without ranking them.

Sources and terms of use

  • Traffic counters and traffic reports: ASTRA/FEDRO via opentransportdata.swiss (DATEX II). “Data source: Federal Roads Office (FEDRO) Traffic Data Platform (TDP)”. This data is not under the general opentransportdata.swiss terms but under the FEDRO terms of use. Every publication must cite the source (section 11). Raw data must not be passed to third parties via a machine-readable interface (section 8). Data must not be combined so as to build behavioural profiles (section 6.4). FEDRO does not check data quality and accepts no liability (section 13). Standard access is limited to six months (section 6.1).
  • What this means here: we pass on no raw data, so no per-lane, per-minute values. Only derived figures are published: travel times, lane-averaged speeds at the counters on the seven routes, ratios to usual speed and census shares. The CC BY 4.0 licence in the footer covers our texts and analyses; values based on FEDRO data are also subject to FEDRO’s terms.
  • Trains: SIRI-ET, opentransportdata.swiss (open data, with attribution).
  • Road axes and counter list: FEDRO, via the geo.admin.ch API.