...
The tables below list which fields are supported by Samtrafiken. Any fields or attributes which are not on the list listed are ignored.
Element | Required | Notes |
---|---|---|
Situations | Required | Contains one or more |
...
Element | Required | Notes | ||
---|---|---|---|---|
SituationNumber | Required | An internal identifier for a situation. May contain characters, but the number obtained by removing the characters should be unique for the situation | ||
SummariesSummary | Required | Short summary text PtSituationElement items without any summaries summary are ignored. Only In case multiple elements are present, only the first summary is read | ||
DescriptionsDescription | Optional | Complete text note for the message Only In case multiple elements are present, only the first description is read | ||
CreationTime | Required | The time when this situation was created | ||
Source.SourceType | Required | Required by the format specification, but not used by Samtrafiken | ||
Source.ExternalCode | Optional | Code for this deviation in external systems | ||
Source.Other | Optional | External system id | ||
Source.Name | Optional | The name of the source. Currently never exported by Samtrafiken | ||
Progress | Required |
| ||
ValidityPeriod | Required | Only the first validity period is read | ||
ValidityPeriod.StartTime | Required | From which time the message applies | ||
ValidityPeriod.EndTime | Optional | At which time the message no longer applies | ||
UndefinedReason | Required | Reason should always be The field is mandatory due to format specification, but is not used. | ||
Affects > StopPlaces > AffectedStopPlace | Optional | Currently unsupported If affected stop places are set, no other type of affects should be set | ||
Affects > StopPoints > AffectedStopPoints | Optional | If affected stop places are set, no other type of affects should be set | ||
Affects > Networks > AffectedNetwork | Optional | If affected networks are set, no other type of affects should be set | ||
Affects > VehicleJourneys > AffectedVehicleJourney | Optional | If affected vehicle journeys are set, no other type of affects should be set |
...
Element | Required | Notes |
---|---|---|
FramedVehicleJourneyRef > DatedVehicleJourneyRef | Required | One or more.
|
FramedVehicleJourneyRef > DataFrameRef | Required | Trip start date in YYYY-MM-DD format. Used to match with static data |
VehicleJourneyRefs | Forbidden | Not supported. Messages containing one or more references will be rejected to prevent incorrect output. |
DatedVehicleJourneyRefs | Forbidden | Not supported. Messages containing one or more references will be rejected to prevent incorrect output. |
Route | Optional | Ignored by Samtrafiken - AffectedVehicleJourneys are applied to the entire vehicle journey |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<situationExchangeDeliveryStructure xmlns:ns5="http://www.siri.org.uk/siri" xmlns:ns2="http://www.ifopt.org.uk/acsb" xmlns:ns4="http://datex2.eu/schema/2_0RC1/2_0" xmlns:ns3="http://www.ifopt.org.uk/ifopt"> <ns5:ResponseTimestamp>2024-10-14T15:18:23.917+02:00</ns5:ResponseTimestamp> <ns5:SubscriberRef>Samtrafiken</ns5:SubscriberRef> <!-- as specified by Samtrafiken when the subscription is created, not required when publish/subscribe is not used for data transfer --> <ns5:SubscriptionRef>situation_exchange-1728919101</ns5:SubscriptionRef> <!-- as specified by Samtrafiken when the subscription is created, not required when publish/subscribe is not used for data transfer --> <ns5:Situations> <ns5:PtSituationElement> <ns5:CreationTime>2024-10-07T13:57:38.53+02:00</ns5:CreationTime> <ns5:ParticipantRef>OrganisationName</ns5:ParticipantRef> <ns5:SituationNumber>TX1234567</ns5:SituationNumber> <ns5:Source> <ns5:Other>RT1234567</ns5:Other> <ns5:Name>ORG\USER</ns5:Name> <ns5:ExternalCode>RT1234567-TX1234567</ns5:ExternalCode> </ns5:Source> <ns5:Progress>open</ns5:Progress> <ns5:ValidityPeriod> <ns5:StartTime>2024-10-07T13:57:00+02:00</ns5:StartTime> </ns5:ValidityPeriod> <UndefinedReason/> <ns5:Summary>Hållplats Västra Saltvik</ns5:Summary> <ns5:Description>Hållplats Västra Saltvik i Härnösand är färdigbyggd och trafikeras från och med 7 oktober av linje 501, 532 och 534. Med anledning av detta trafikeras hållplats Hamnleden fortsättningsvis endast i riktning från stan.</ns5:Description> <ns5:Affects> <ns5:Networks> <ns5:AffectedNetwork> <ns5:AffectedLine> <ns5:LineRef>SE:022:Line:9011022050100000</ns5:LineRef> </ns5:AffectedLine> </ns5:AffectedNetwork> <ns5:AffectedNetwork> <ns5:AffectedLine> <ns5:LineRef>SE:022:Line:9011022053200000</ns5:LineRef> <ns5:Routes> <ns5:AffectedRoute> <ns5:StopPoints> <ns5:AffectedOnly>true</ns5:AffectedOnly> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022000898005</ns5:StopPointRef> </ns5:AffectedStopPoint> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022001948002</ns5:StopPointRef> </ns5:AffectedStopPoint> <!-- more stoppoints --> </ns5:StopPoints> </ns5:AffectedRoute> </ns5:Routes> </ns5:AffectedLine> </ns5:AffectedNetwork> <ns5:AffectedNetwork> <ns5:AffectedLine> <ns5:LineRef>SE:022:Line:9011022053400000</ns5:LineRef> <ns5:Routes> <ns5:AffectedRoute> <ns5:StopPoints> <ns5:AffectedOnly>true</ns5:AffectedOnly> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022000898004</ns5:StopPointRef> </ns5:AffectedStopPoint> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022001948002</ns5:StopPointRef> </ns5:AffectedStopPoint> <!-- more points --> </ns5:StopPoints> </ns5:AffectedRoute> </ns5:Routes> </ns5:AffectedLine> </ns5:AffectedNetwork> </ns5:Networks> <ns5:StopPoints> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022080290001</ns5:StopPointRef> </ns5:AffectedStopPoint> <ns5:AffectedStopPoint> <ns5:StopPointRef>SE:022:Quay:9022022080290002</ns5:StopPointRef> </ns5:AffectedStopPoint> </ns5:StopPoints> </ns5:Affects> </ns5:PtSituationElement> </ns5:Situations> </situationExchangeDeliveryStructure> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<situationExchangeDeliveryStructure xmlns:ns5="http://www.siri.org.uk/siri" xmlns:ns2="http://www.ifopt.org.uk/acsb" xmlns:ns4="http://datex2.eu/schema/2_0RC1/2_0" xmlns:ns3="http://www.ifopt.org.uk/ifopt">
<ns5:ResponseTimestamp>2024-10-14T15:18:23.917+02:00</ns5:ResponseTimestamp>
<ns5:SubscriberRef>Samtrafiken</ns5:SubscriberRef> <!-- as specified by Samtrafiken when the subscription is created, not required when publish/subscribe is not used for data transfer -->
<ns5:SubscriptionRef>situation_exchange-1728919101</ns5:SubscriptionRef> <!-- as specified by Samtrafiken when the subscription is created, not required when publish/subscribe is not used for data transfer -->
<ns5:Situations>
<ns5:PtSituationElement>
<ns5:CreationTime>2024-10-07T13:57:38.53+02:00</ns5:CreationTime>
<ns5:ParticipantRef>OrganisationName</ns5:ParticipantRef>
<ns5:SituationNumber>TX1234567</ns5:SituationNumber>
<ns5:Source>
<ns5:Other>RT1234567</ns5:Other>
<ns5:Name>ORG\USER</ns5:Name>
<ns5:ExternalCode>RT1234567-TX1234567</ns5:ExternalCode>
</ns5:Source>
<ns5:Progress>open</ns5:Progress>
<ns5:ValidityPeriod>
<ns5:StartTime>2024-10-07T13:57:00+02:00</ns5:StartTime>
</ns5:ValidityPeriod>
<UndefinedReason/>
<ns5:Summary>Hållplats Västra Saltvik</ns5:Summary>
<ns5:Description>Hållplats Västra Saltvik i Härnösand är färdigbyggd och trafikeras från och med 7 oktober av linje 501, 532 och 534. Med anledning av detta trafikeras hållplats Hamnleden fortsättningsvis endast i riktning från stan.</ns5:Description>
<ns5:Affects>
<ns5:VehicleJourneys>
<ns5:AffectedVehicleJourney>
<ns5:FramedVehicleJourneyRef>
<ns5:DataFrameRef>2024-10-02</ns5:DataFrameRef>
<ns5:DatedVehicleJourneyRef>SE:022:ServiceJourney:000500555003</ns5:DatedVehicleJourneyRef>
</ns5:FramedVehicleJourneyRef>
<ns5:Route> <!-- currently ignored by Samtrafiken -->
<ns5:StopPoints>
<ns5:AffectedStopPoint>
<ns5:StopPointRef>SE:022:Quay:9022022000001001</ns5:StopPointRef>
</ns5:AffectedStopPoint>
</ns5:StopPoints>
</ns5:Route>
</ns5:AffectedVehicleJourney>
</ns5:VehicleJourneys>
</ns5:Affects>
</ns5:PtSituationElement>
</ns5:Situations>
</situationExchangeDeliveryStructure> |