Versions Compared

Key

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

Eksempel 1: <EndTime> er satt.

 Meldingen Innhold

Table of Contents


Info
titleXML

Se komplette eksempler for datainnsending:

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

Code Block
languagexml
<PtSituationElement>
    	<CreationTime>2018-02-22T1111T11:40:33+01:00<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-22T1111T11:40:11+01:00<33:11</StartTime>
        		<EndTime>2018-04-04T1622T22:55:40+02: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>
                		<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

Code Block
languagexml
<Progress>open</Progress>
<ValidityPeriod> 
	<StartTime>2018-02-22T1111T11:40:11+01:00<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)

Code Block
languagexml
<Progress>closed</Progress>
<ValidityPeriod>

	<StartTime>2018-02-22T1111T11:40:11+01:00<33:11</StartTime>

	<EndTime>2018-0402-04T16:55:40+0212T20:10:00</EndTime>
</ValidityPeriod>

...