Innhold
XML
Se komplette eksempler for datainnsending:
- Tidsbegrenset melding: https://github.com/rutebanken/profile-norway-examples/blob/master/siri/situation-exchange/siri-sx-timebound.xml
- Åpen melding: https://github.com/rutebanken/profile-norway-examples/blob/master/siri/situation-exchange/siri-sx-open-ended.xml
- Lukking av åpen melding: https://github.com/rutebanken/profile-norway-examples/blob/master/siri/situation-exchange/siri-sx-close.xml
Tidsbegrenset ved opprettelse
<EndTime> er satt
Meldingen vil vises i sanntidsdatastrøm/-tjenester frem til tidpunktet i <EndTime>. Etter tidspunktet i <EndTime> er passert vil ikke meldingen vises lenger i sanntidsdatastrøm/-tjenester
<PtSituationElement> <CreationTime>2018-02-11T11:29:31</CreationTime> <ParticipantRef>NSB</ParticipantRef> <SituationNumber>NSB:SituationNumber:status-53733</SituationNumber> <Version>1</Version> <Source> <SourceType>directReport</SourceType> </Source> <Progress>open</Progress> <ValidityPeriod> <StartTime>2018-02-11T11:33:11</StartTime> <EndTime>2018-04-22T22:55:00</EndTime> </ValidityPeriod> <UndefinedReason/> <Priority>18</Priority> <ReportType>general</ReportType> <Description xml:lang="NO">Plattform 2 er ikke i bruk. Vær oppmerksom på at det kan bli sporendringer.</Description> <Description xml:lang="EN">Platform 2 is closed. Track changes may occur.</Description> <Affects> <StopPoints> <AffectedStopPoint> <StopPointRef>NSR:StopPlace:652</StopPointRef> <StopPointName>Dovre</StopPointName> </AffectedStopPoint> </StopPoints> </Affects> </PtSituationElement>
Gyldig frem til ny melding avslutter den opprinnelige
<EndTime> er ikke satt
<Progress>open</Progress> <ValidityPeriod> <StartTime>2018-02-11T11:33:11</StartTime> </ValidityPeriod>
Meldingen vises i sanntidsdatastrøm/-tjenester inntil det sendes inn <progress>closed. (EndTime må være minimum 5 timer frem i tid)
<Progress>closed</Progress> <ValidityPeriod> <StartTime>2018-02-11T11:33:11</StartTime> <EndTime>2018-02-12T20:10:00</EndTime> </ValidityPeriod>
Når <Progress>closed</Progress> er mottat vil meldingen
- ikke vises ved reisesøk
- vises i sanntidsstrømmer, men med <Progress>closed</Progress>