News

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

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).