Codelist: Stops
In the Samtrafiken ACCESS API, the codelist for stops will contain all Samtrafiken’s sellable national stop IDs (known as “rikshållplatser”). The stop IDs contain 9 digits and they will be used according to the codelist urn:x_swe:stn:nnnnnnnnn, where nnnnnnnnn is the stop ID.
Example: urn:x_swe:stn:740000001, where 74 is the country code and 0000001: is the stop code.
Below is a NeTEx _stops.xml file from the Samtrafiken Sales NeTEx dataset, with all national stops as of
2023-11-07. The format is described here: NeTEx format adjustments - Samtrafiken sales export.
The value “sellable” will be true if the StopPlace is sellable through Samtrafiken systems, and false if not.
A new version of the Samtrafiken Sales NeTEx dataset is published on Samtrafikens FTP server every day, so in a production environment the latest version of the file should be used.
NeTEx _stop.xml file from Samtrafiken Sales NeTEx dataset 2023-11-07