Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For detailed information on how Samtrafiken NeTEx files ar structured see Samtrafiken NeTEx export and NeTEx format adjustments - Samtrafiken sales export.

...

start

The stop and time for the start of the the trip.

...

NeTEx - ServiceJourney.KeyValue.productCode

vehicleNumbers

The vehicleNumber should be the published train number when possible. For buses without unique id:s use the line number. If the bus needs a unique published id, then use that value. In Samtrafiken’s NeTEx dataset, the value is (almost) always found in the ServiceJourney.PublicCode element.

Trains: NeTEx - TrainNumber.ForAdvertisment

Buses /trains without unique id:sand other traffic: NeTEx - LineServiceJourney.PublicCode

carriers

...

Info

There is an exception for this, and that is for trains that change their train numbers during their journey. In those cases it must be taken into consideration that the train number will be different depending on the departure stop of the TripSpecification.
For these trains the vehicleNumber should be the train number that is advertised at the stop of the departure.
In Samtrafiken’s NeTEx dataset, trains that change their train numbers during their journey is expressed as a single ServiceJourney with multiple JourneyParts that refer to TrainNumber-elements with different ForAdvertisment values. The corresponding ForAdvertisment value from these JourneyParts should be used as the vehicleNumber, in this exceptional case.

carriers

In the Samtrafiken ACCESS API, the carrier IDs are used according to the codelist urn:x_swe:carrier:nnn, where nnn is the carrier ID.

...

NeTEx - Line.KeyValue.salesAuthorityNumber

publishedServiceName

Bör vi kräva att även det här fältet fylls i? Är väl oftast samma som vehicleNumbers

lineNumbers

Sammas om ovan. Men bör kanske anges vid RKM-trafik mm där linjebegreppet är centraltOptional and not used today to identify trips. If the field is filled in, it must contain the same value as vehicleNumbers.

lineNumbers

Optional and not used today to identify trips. If the field is filled in, it must contain the same value as vehicleNumbers.

attributes

When the tickets are created by NDS attributes must be sent in the request to be shown on the tickets.

...