...
The picture below shows the TripSpecification definition in OSDM v 3.0.2. Fields marked with a red star is mandatory in OSDM. In the Samtrafiken ACCESS implementation the mandatory fields are extended to the fields marked with yellow.
For detailed information on how Samtrafiken NeTEx files ar structured see
NeTEx format adjustments - Samtrafiken sales export
...
start
The stop and time for the start of the the trip.
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.
List of stops used in Samtrafiken ACCESS:
Codelist: Stops TimeTabledTime should be in local time
The stops to use in Samtrafiken ACCESS can be found in stops.xml in the daily NeTEx export from Samtrafiken.
See Codelist: Stops for more info and examples.
NeTEx - File: _stops.xml StopPlace.KeyValue.rikshallplatsNummerThe timeTabledTime should be in local time
end
The stop and time for the end of the the trip.
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.
List of stops used in Samtrafiken ACCESS:
The timeTabledtime should be in local time
timeTabledtime should be in local time
The stops to use in Samtrafiken ACCESS can be found in stops.xml in the daily NeTEx export from Samtrafiken.
See Codelist: Stops for more info and examples.
NeTEx - File: _stops.xml StopPlace.KeyValue.rikshallplatsNummer
mode
The transport mode for the leg. Use the OSDM ptMode enum. The list of transport modes used in Samtrafiken ACCESS with the corresponding NeTEx value:
...
When the tickets are created by NDS attributes needed for creating the tickets may be needed must be sent in the request . This must be specified furtherto be shown on the tickets.
Codelist: Attributes (service properties)
...