Static data

The static NeTEx Regional dataset contains files describing all planned public transport data, with more technical details compared to the GTFS Regional feeds.

In order to retrieve the static data you need an API key. Technical details for fetching the data can be found in the API’s OpenAPI specification.

Where to download

The dataset can be accessed through the following URL:

https://opendata.samtrafiken.se/netex/{operator}/{operator}.zip?key={apikey}.

Replace {operator} with the abbreviation of the operator you want to download. These abbreviations can be found in the OpenAPI specification, but are also listed on the GTFS Regional static data documentation page. Replace {apikey} with your own API key.

Download URLs

Regional operators

Operator Static data
Blekingetrafiken (Blekinge län) https://opendata.samtrafiken.se/netex/blekinge/blekinge.zip?key=
Dalatrafik (Dalarnas län) https://opendata.samtrafiken.se/netex/dt/dt.zip?key=
DinTur (Västernorrlands län) https://opendata.samtrafiken.se/netex/dintur/dintur.zip?key=
Gotlands kollektivtrafik (Gotlands län) https://opendata.samtrafiken.se/netex/gotland/gotland.zip?key=
Hallandstrafiken https://opendata.samtrafiken.se/netex/halland/halland.zip?key=
JLT (Jönköpings län) https://opendata.samtrafiken.se/netex/jlt/jlt.zip?key=
Kalmar Länstrafik (Kalmar län) https://opendata.samtrafiken.se/netex/klt/klt.zip?key=
Kronobergs Länstrafik (Kronobergs län) https://opendata.samtrafiken.se/netex/krono/krono.zip?key=
LTR (Jämtlands län) https://opendata.samtrafiken.se/netex/jamtland/jamtland.zip?key=
Länstrafiken Norrbotten https://opendata.samtrafiken.se/netex/norrbotten/norrbotten.zip?key=
Länstrafiken Västerbotten https://opendata.samtrafiken.se/netex/vasterbotten/vasterbotten.zip?key=
Länstrafiken Örebro https://opendata.samtrafiken.se/netex/orebro/orebro.zip?key=
Skånetrafiken (Skåne län) https://opendata.samtrafiken.se/netex/skane/skane.zip?key=
SL (Stockholm län) https://opendata.samtrafiken.se/netex/sl/sl.zip?key=
Sörmlandstrafiken (Södermanlands län) https://opendata.samtrafiken.se/netex/sormland/sormland.zip?key=
UL (Uppsala län) https://opendata.samtrafiken.se/netex/ul/ul.zip?key=
VL (Västmanlands län) https://opendata.samtrafiken.se/netex/vastmanland/vastmanland.zip?key=
Värmlandstrafik + Karlstadsbuss (Värmlands Län) https://opendata.samtrafiken.se/netex/varm/varm.zip?key=
Västtrafik (Västra götalands län) https://opendata.samtrafiken.se/netex/vt/vt.zip?key=
X-trafik (Gävleborgs län) https://opendata.samtrafiken.se/netex/xt/xt.zip?key=
Östgötatrafiken (Östergötlands län) https://opendata.samtrafiken.se/netex/otraf/otraf.zip?key=

Commercial operators

Operator Planerad trafik
** SJ + Snälltåget + Tågab ** https://opendata.samtrafiken.se/netex/sj/sj.zip?key=

File structure

Each archive contains three types of files:

  • _shared_data.xml - contains common information, such as calendar schedules
  • _stops.xml - contains information about stops, such as quays, stop areas and entrances
  • line_[lineNumber].xml - contains the specific schedule for a line

Important details

  • Your HTTP client has to have support for Gzip or deflate compression. This needs to be signalled through the HTTP Accept header. If your client does not support this, or is configured incorrectly, you will receive an HTTP 406 error code
  • This API supports conditional requests, and sends out HTTP Last-modified and etag headers. This way you can prevent downloading the same data twice. See the conditional get requests chapter in our best practices for more information.