Stops data (beta)

Obs: Detta innehåll finns inte tillgängligt på svenska. Därför ser du engelska versionen. Om du tycker att denna sida borde översättas till svenska, kan du skriva till oss på

Om du vill se webbsidan på engelska, klicka här.

The stops data API contains detailed data of Sweden’s national stops and their mappings to stops from the GTFS Regional and Netex Regional APIs.

All of Sweden’s stops are included in this dataset.

Where to download

The dataset can be accessed through the following URL:{apikey}.

Replace {apikey} with your own API key.

What does this dataset contain?

This dataset contains all of Sweden’s stops in the NeTEx format. There are multiple different KeyValue-elements for each StopPlace and Quay that contains information that does not fit into any standard Netex elements. Many of these extra KeyValue-elements are mostly useful for operators consuming the data.

Data format

The data is in the NeTEx (Network and Timetable Exchange) format. This is a format in which all European operators have to publish their data. The data is aimed at both operator-to-traveller communication and internal communication between different organizations.

KeyValues explained

Most of the KeyValues refer to DataSource IDs. These IDs can currently be transformed to actual datasources/authorities through the NeTEx Sweden API , by mapping the DataSource IDs to Authority.PrivateCode in the _shared_data.xml file. In the future we are going to provide a better way of matching DataSource IDs to datasources/authorities.

The Keys that are used for mappings all start with the name local- and are pipe symbol separated and then colon symbol separated values. For example a StopPlace with the Key local-number with the Value 7:64204|12:7051|74:40|8:64204|100:4 should be interpreted as list of five different values, where each part is further interpreted by separating by the colon symbol, 7:64204 meaning datasource=7 and number=64204. The table below explains more about what data each Value contains.

“Gid” matches part of the StopPlace.Id (or Quay.Id) in Netex Regional, and also the stop_id from stops.txt in GTFS Regional.

ownerThis value indicates which datasource should be considered the owner of this StopPlace and its Quays.
Often this is the county’s public authority in which the StopPlace resides.
data-fromWhich datasource actually provides the data for this StopPlace and its Quays.
rikshallplatsSamtrafikens Rikshållplatsnummer for this StopPlace, which is used in the GTFS Sverige 2 API (and other places).
trafikverket-nameThis StopPlaces name as assigned by Trafikverket.
trafikverket-signatureThis StopPlaces signature as assigned by Trafikverket.
stip.*Any Keys starting with “stip.” refers directly to values found in the “data-from” datasource’s corresponding data.
local-nameFormat is DataSource:Gid:Name.
local-gidFormat is DataSource:Gid.
local-numberFormat is DataSource:Number.
local-journeypatternpoint-gidFormat is DataSource:Gid.
local-stoppoint-gidFormat is DataSource:Gid.
local-designationFormat is DataSource:Designation.

How often is this dataset updated?

The data in this dataset is updated on a daily basis, typically between 07:50 and 9:00.

How often does the data format changes? Do breaking changes happen?

This dataset has the beta status. This means that fields may change without prior warning.