This page describes the adjustments, additions and changes that have been made to the NeTEx traffic data that Samtrafiken will deliver to a limited number of timetable data consumers such as SJ. Some of the changes have also been introduced in Samtrafiken’s regular NeTEx exports.
...
Each of these values is interpreted as:
FromProducer:ToProducer:FromProductTransportMode:ToProductTransportMode:MinimumInterchangeTime
The value is taken from Samtrafiken's BRM-system, similar to what you can see here: https://brm.samtrafiken.se/showtimes?pta=-1&station=g%C3%B6teborg+centralstation.
The producer numbers in “FromProducer” and “ToProducer” refer to the producer responsible for sales, and prices and which is displayed to the public. This is the value “salesAuthorityNumber” on a Line (used to be called färdmedelsproducent in Petra).
...
The <ServiceJourney> element has been extended with a <KeyValue>
containing the productCode
, a <KeyValue>
fingerprint
to detect changes, as well as a <KeyValue>
with the attributes
defined for the <ServiceJourney>.
The <ServiceJourney> element also ALWAYS contains a <PublicCode>
element.
Below is an example:
Code Block | ||
---|---|---|
| ||
<ServiceJourney version="any" id="SE:074:ServiceJourney:30_300_300_1036_1036_J_RE_2"> <keyList> <KeyValue> <Key>productCode</Key> <Value>RE</Value> </KeyValue> <KeyValue> <Key>fingerprint</Key> <Value>nib84qjrt4p3pvaiatvag8u32cnjno8j</Value> </KeyValue> </keyList> <PrivateCode>1036</PrivateCode> <TransportMode>rail</TransportMode> <TransportSubmode> <RailSubmode>unknown</RailSubmode> </TransportSubmode> <dayTypes> <DayTypeRef ref="SE:074:DayType:ah0l8tejnuptnmgqvmp348sc3t8pmk72"/> </dayTypes> <JourneyPatternRef ref="SE:074:JourneyPattern:949400000000636569" version="any"/> <PublicCode>1036</PrivateCode> <OperatorRef ref="SE:074:Operator:9013300000100000"/> <trainNumbers> <TrainNumberRef>1036</TrainNumberRef> </trainNumbers> <passingTimes> ... </passingTimes> <facilities> <ServiceFacilitySet version="any" id="SE:074:ServiceFacilitySet:949400000001112786"> <keyList> <KeyValue> <Key>attributes</Key> <Value>KOMAB,BOKEJB,EVFEUJ,KOMEL,KOMIUK,KOMLYF</Value> </KeyValue> </keyList> <MobilityFacilityList>suitableForWheelchairs</MobilityFacilityList> <PassengerCommsFacilityList>powerSupplySockets internet</PassengerCommsFacilityList> <ServiceReservationFacilityList>noReservationsPossible</ServiceReservationFacilityList> </ServiceFacilitySet> </facilities> </ServiceJourney> |
ServiceJourney.PublicCode
This element is always present in the Samtrafiken Sales NeTEx export.
It is the announced journey code for the ServiceJourney. For a public transport bus (like a SL bus) this would normally be the same as the Line.PublicCode, while for an express bus it will probably be a unique trip number and for a train it would be the first train number of the train.
KeyValue: productCode
This contains the product code of the Service Journey. The possible values are defined in separate code lists shared by Samtrafiken here: Codelist: Product Category.
...