Versions Compared

Key

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

...

This example correctly references an affected vehicle journey, but will be ignored by samtrafiken since a Summary is missing. Make sure to deliver information like this in the SIRI-ET feed as well.

Code Block
breakoutModewide
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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> <!-- subscriberRef as provided when samtrafiken registers for a pub/sub connection, not used for synchronous data transfer -->
    <ns5:SubscriptionRef>situation_exchange-1728919101</ns5:SubscriptionRef> <!-- subscriptionRef as provided when samtrafiken registers for a pub/sub connection, not used for synchronous data transfer -->
    <ns5:Status>true</ns5:Status>
    <ns5:Situations>
        <ns5:PtSituationElement>
            <ns5:CreationTime>2024-10-02T07:28:25.17+02:00</ns5:CreationTime>
            <ns5:ParticipantRef>OrganisationName</ns5:ParticipantRef>
            <ns5:SituationNumber>INTERNALID123</ns5:SituationNumber>
            <ns5:References>
                <ns5:RelatedToRef>
                    <ns5:CreationTime>2024-10-02T05:28:25.327+02:00</ns5:CreationTime>
                    <ns5:SituationNumber>INTERNALID123456</ns5:SituationNumber>
                    <ns5:RelatedAs>associated</ns5:RelatedAs>
                </ns5:RelatedToRef>
            </ns5:References>
            <ns5:Source>
                <ns5:SourceType>directReport</ns5:SourceType>
                <ns5:Other>RT1234567</ns5:Other>
                <ns5:Name>ORG\USER</ns5:Name>
                <ns5:ExternalCode>RT1234567-DI1234567</ns5:ExternalCode>
            </ns5:Source>
            <ns5:Progress>open</ns5:Progress>
            <ns5:ValidityPeriod>
                <ns5:StartTime>2024-10-02T07:21:00+02:00</ns5:StartTime>
            </ns5:ValidityPeriod>
            <ns5:UndefinedReason></ns5:UndefinedReason>
            <ns5:Language>en</ns5:Language>
            <ns5:Affects>
                <ns5:VehicleJourneys>
                    <ns5:AffectedVehicleJourney>
                        <ns5:FramedVehicleJourneyRef>
                            <ns5:DataFrameRef>2024-10-02</ns5:DataFrameRef>
                            <ns5:DatedVehicleJourneyRef>000500555003</ns5:DatedVehicleJourneyRef>
                        </ns5:FramedVehicleJourneyRef>
                        <ns5:Route>
                            <ns5:StopPoints>
                                <ns5:AffectedOnly>true</ns5:AffectedOnly>
                                <ns5:AffectedStopPoint>
                                    <ns5:StopPointRef>SE:022:Quay:9022022000001001</ns5:StopPointRef>
                                </ns5:AffectedStopPoint>
                            </ns5:StopPoints>
                        </ns5:Route>
                    </ns5:AffectedVehicleJourney>
                </ns5:VehicleJourneys>
            </ns5:Affects>
            <ns5:Consequences>
                <ns5:Consequence>
                    <ns5:Condition>cancelled</ns5:Condition>
                    <ns5:Severity>normal</ns5:Severity>
                </ns5:Consequence>
            </ns5:Consequences>
        </ns5:PtSituationElement>
    </ns5:Situations>
</situationExchangeDeliveryStructure>