ViaPascal
Data sources and coverage
The traffic information on ViaPascal comes from Trafikverket (trains) and from Trafiklab and Västtrafik (buses, trams and other local traffic). Here is how it is fetched, how fresh it is and what the different times mean.
Sources
- Trafikverket's open API (the Swedish Transport Administration): departures, arrivals, timetable, expected and actual times, tracks, cancellations and traffic notices for trains (TrainAnnouncement), and the station register with names and country codes (TrainStation).
- Trafiklab's Realtime APIs (Samtrafiken): departures for stops all over Sweden – buses, trams, metro, boats and demand-responsive services – and the register of stops. Data from Trafiklab.se, licensed under CC BY 4.0.
- Västtrafik's open API (Planera Resa and Störning): real-time departures and disruptions for some larger stops in Västra Götaland. Data from Västtrafik, licensed under CC0 1.0 Universal.
- Wikidata: Sweden's urban areas and minor localities with their municipalities (CC0), so that search results can show where a stop is – there are 24 stops called Fridhem.
ViaPascal shows all advertised trains at Swedish railway stations, and departures from bus, tram and other stops all over Sweden.
Our server fetches the data from the sources. No information about you as a visitor is sent to them – see the privacy policy.
When was the information updated?
Every departure board and train view shows the source and when the information was fetched, for example Trafikverket · Updated 11:35:16 · 2 min ago
. The information is at most about a minute old when the page is shown, and the page updates itself every minute while the tab is open and visible. You can also press Refresh
. The lists of stations and stops are updated once a day.
If Trafikverket cannot be reached, the board says Trafikverket is not responding
with a message, and tries again every minute; the train view shows a message. ViaPascal then shows no trains rather than guessing.
Stops: buses and trams
- A stop board shows the departures in the next hour, with line, destination, stand and status. Trains that stop at the same place are shown on the station board.
- Trams are shown on the same boards as buses, marked as trams – in Göteborg, Stockholm, Norrköping and Lund. Metro and ferry departures are shown too, where the stop has them.
- With
Choose date and time
the board shows scheduled departures for the hour from the chosen time (Swedish time): timetable times from Trafiklab only, without delays.Next hour
moves one hour forward andBack to now
returns to the real-time board. - Expected time is shown only when the source has a forecast. Without a forecast the board says
Timetable
– neverOn time
– because the bus or tram may still be late. Trafiklab has forecasts in 15 of 21 counties, usually once the trip has started. Södermanland, Halland, Västra Götaland, Jämtland, Västerbotten and Norrbotten have only timetables at Trafiklab. - For some larger stops in Västra Götaland the board can fetch real-time information directly from Västtrafik; it then says
Data from Västtrafik
. If Västtrafik does not respond, the board shows Trafiklab's information instead and says so, with Trafiklab's time. - Cancelled departures are shown when the source reports them, also without a forecast. Trips that must be booked in advance are marked
Book ahead
, with the operator's instructions. A changed stand is markedNew stand
. - The time on the board is the time of the source's data; Trafiklab's data can be up to about a minute old when it is fetched. If the departures cannot be fetched, the board says so – it never shows guessed departures.
No departures in the next hour
means that the source answered without any departures.
Timetable, expected and actual time
- Timetable time is the time the train is advertised with. If the train is on time, only this time is shown.
- Expected time is Trafikverket's forecast when the train is delayed or early. The timetable time is then struck through and the new time is shown below it in orange, with the difference in the status column, for example
+7 min
. Forecasts can change at short notice. - Actual time is when the train really departed or arrived. On the board it is shown as
Departed 11:16 · +15 min
, in the train view in grey below the timetable time. - Cancelled trains and stops are marked
Cancelled
in text. A changed track is markedNew track
.
Status is always written out in text, never shown by colour alone.
Example data
ViaPascal never presents made-up trains as real. If a board ever shows example data – for example in a test environment without a connection to Trafikverket – it is labelled Example data
and Fictional trains and times
.
Coverage: why the stop list can end in Hyllie
Trafikverket has times for stations in Sweden only. Trains that continue abroad therefore have a destination in another country, but a stop list that ends at the last Swedish station.
Example: Öresundståg 1059 from Helsingborg C has Köpenhamn H (Copenhagen Central) as its destination, so the heading says Helsingborg C → Köpenhamn H
. The stop list ends in Hyllie, the last stop in Sweden, and a note below the list says that the train continues to Köpenhamn H (Denmark) and that later times are not available. For times in Denmark, check with the operator.
Stations abroad, such as Köpenhamn H, can be searched for, but their pages explain that there is no departure board. Some Swedish stations only have the timetable in Trafikverket's data, without forecasts; the board says so.
Trafikverket's traffic notices are in Swedish only and are shown as they are, marked as original Swedish text.
Last updated