Read more about what’s happening at Trafiklab, as well as news regarding API’s and open data in public transport.

Theme image

SL Transport API replaces Departures v4

After almost eight years, SL replaces the Stops and Lines v2 and Departure v4 APIs with 1 new API which combines the features of these two. The SL Transport API is built from the ground up on new back-end systems, which should improve system stability and simplify the old architecture which consisted of 7 APIs.

Theme image

Changes to SL Stop lookup

The API SL Stop lookup is going to get some fresh updates. You will still be able to use your current API-key but you need to switch to the new URL before March 15th 2024.

Theme image

Changes to Trafikverkets Open API Datasets

On January 31, 2024, the WeatherStation dataset will be removed from the Open API. Users currently utilizing this dataset are advised to switch to using either WeatherMeasurepoint or WeatherObservation. WeatherMeasurepoint. Measurement points for road weather observations. Contains the latest observation at each respective measurement point. WeatherObservation. Contains all observations from all measurement points for the past seven days.s For detailed information about these datasets we refer to Trafikverkets API documentation. If you have any questions, do not hesitate to contact us at info@trafiklab.

Theme image

Check out our new developer portal

You haven’t missed that our developer portal ( got a new and fresher look, right? And in addition to a welcome redesign, we have made the site easier and clearer to use. Here are some of the changes we’ve made: The language is English throughout. This way we meet the needs of users worldwide. We’ve made it easier to create and manage new accounts, projects, and API keys. For example, you now get a “sandbox” project directly upon registration.

Occupancy data for Östgötatrafiken now available

Starting on the 14th of December 2022, occupancy data is available for Östgötatrafiken. This data is included in the realtime vehicle positions, and shows the realtime occupancy on those vehicles which are equipped with the necessary hardware. For more information, check the GTFS Regional API pages.

Realtime data for Kronoberg Länstrafik now available

Starting on the 10th of October 2022, realtime data is available for Kronoberg. You are now able to download realtime feeds including information messages, delay estimates, and realtime vehicle positions in both the GTFS and NeTEx format. For more information, check the GTFS Regional and NeTEx regional API pages.

Theme image

Resrobot version 2.0 shut down

After a 6 months migration period, we are now shutting down version 2.0 of the Resrobot API. The majority of all users have made the required changes to their applications, and will therefore not notice a thing. Any applications which have not yet been updated to v2.1 will need to be updated in order to keep working. For more information, please see our earlier news post regarding these changes.

SIRI data available

Starting today, June 21st 2022, realtime data is available in the SIRI format as part of our NeTEx Regional data. This dataset is based on the same data as the GTFS Regional Realtime dataset, and enables you to combine realtime data with our existing NeTEx data. For more information, check the NeTEx regional API pages.

Theme image

Webinar with Samtrafiken, Swiftly and Skånetrafiken

How data can improve the traveller experience

Realtime data for Västmanland Länstrafik now available

Starting on the 10th of March 2022, realtime data is available for Västmanland. You are now able to download realtime feeds including information messages, delay estimates, and realtime vehicle positions in both the GTFS and NeTEx format. For more information, check the GTFS Regional and NeTEx regional API pages.

Theme image

Resrobot update 2.1 with breaking changes

Our Resrobot API has got a well deserved update! After more than 6 years with Resrobot 2.0, Resrobot 2.1 is now available. This maintenance update is focussed on updates to the platform back-end and fixes multiple bugs. For example the long-standing bug with the HTTP content-encoding response header has been fixed, which should make the API easier to use with standard tools and libraries. The downside of all this is that we could not avoid certain breaking changes, such as a change in the base URL and API keys, some default parameters which have been changed and slightly changed response structures.

Theme image

Historical GTFS-RT data now available

For this year’s Christmas, Trafiklab is releasing the KoDa API. This API provides historical data from our GTFS Regional feeds, allowing you to analyse delays, traffic flow (for operators with vehicle positions), ridership (for operators with occupancy date), and more. KoDa has been built by researchers at RiSE in cooperation with Trafiklab and Savantic. Documentation, as well as a Swagger API definition, are available on Trafiklab. Over time, we hope to publish some example Jupyter Notebooks showing how you can analyse historical data in python.

Theme image

Trafiklab website update

Today we launch our new website, along with new API documentation. We hope you find this new site an improvement. The need for something new Over time, Trafiklab grew, getting more APIs, more users, and important for this update, more documentation. The old website navigation became an obstacle, as users had to dig deep to come to the right documentation page. This also led to API endpoints not being discovered, and hampered our ability to add new features such as OpenApi documentation.

Theme image

Occupancy data in GTFS Regional

In the past month we have started publishing new data in the GTFS Regional Realtime dataset. This new data shows the occupancy on public transport vehicles in realtime, which adds opportunities and enables use-cases which were not possible before. This occupancy data is included in the already existing VehiclePositions.pb feed, in accordance to the GTFS Realtime specification. For which operators is this data available? At this moment this data is only available for Skånetrafiken.

Theme image

Operator data in GTFS Regional

In the coming days we will start publishing new data in the GTFS Regional dataset. This new data will show which operator is servicing each trip, which adds opportunities and enables use-cases which were not possible before. This new file has been defined as an optional file in the GTFS Specification for a while, and we are now ready to start publishing this data. This will affect the GTFS Regional Static API in the following way:

Skånetrafiken API shutting down, ResRobot affected

On March 31st Skånetrafiken will be shutting down their realtime API. As Resrobot Stolptidtabeller uses this API, this means that realtime information for Skånetrafiken will no longer be present in the ResRobot Stolptidtabeller data. The scheduled (static) data will still be present, and ResRobot Stolptidtabeller will continue working. How does this affect you? This will not affect the working of your applications, as the API response-structure remains unchanged. Departures operated by Skånetrafiken will no longer include realtime data.

Theme image

SL Vehicle positions in GTFS Regional

In the coming days we will start publishing vehicle positions for SL (Stocksholms lokaltrafik) in the GTFS Regional dataset. This means that all operators which provide realtime will support both TripUpdates, ServiceAlerts and VehiclePositions. SL will start publishing through a staged rollout where there number of vehicles with realtime positions keeps increasing. Which vehicles will share their location? Right now only busses will share their location, but the goal is to publish data for all of SL’s vehicles in traffic.

National coverage for the GTFS Regional and NeTEx Regional APIs

From today our GTFS Regional and NeTEx Regional APIs contain data for all 21 regions in Sweden. Whether it’s a route-planner, analytics tool, or digital signage you’re building, our Regional APIs have you covered with high quality data. What now? While it’s fantastic to have this national coverage, we are still working on publication of more static data and better coverage for realtime data. Check back later for updates on this topic.

Theme image

New SL API ”Public transport information Region Stockholm” replacing today’s 7 SL APIs at Trafiklab

The new SL API has been delayed to Q1 2021. We will update you when we know more. SL launched its first open APIs in 2014 and today there are 7 APIs with a functionality that has gradually been extended. These services have been used extensively, and SL has received valuable feedback that has been used as part of the basis for the design of the new open SL API.

Changes to the GTFS Regional API

The Regional APIs will soon be stable. However, before we can release them as stable, we need to make a last change to the URL structure. This change means that you, as a data consumer, need to make a small change to your client in order to keep using our data. Why we are doing this In order to guarantee that the URLs can be permanent, we need to ensure they are future-proof.

Savea ticket api stängs ner

Under Trainhack den 25-27 oktober lanserade Savea ett öppet försäljnings-API för de aktörer som använder företagets bokningsplattform. Denna API kommer inte längre finnas på Trafiklab nu att Savea har bestämd att göra den till en internt API, på grund av att Savea vill göra stora förändringar samt att användningsnivån av denna publika API var mindre än förväntad.

Savea ticket api lancering

During Trainhack on 25-27 October, Savea launched an open sales API for operators using the company’s booking platform. Savea provides a booking platform and currently has mainly express bus companies as customers. By opening up opportunities for anyone to integrate their ticket sales into other services, Savea sees opportunities to reach out to new audiences and through new channels. Those selling Sava tickets are offered a commission of SEK 10 000 per 500 tickets sold (for each express bus operator).