Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Translated to English

InnholdContent

Table of Contents


Info
titleXML

Se komplette eksempler for datainnsending

Av- og påstigning:  

See complete examples:

Melding vises avhengig av stopCondition

Image Removed

Melding som vises kun ved av- eller påstigning på spesifisert stopp og avgang/kjøretøy

Melding som skal vises når kunden søker til eller fra dette stoppet.

...

Messages depending on stopCondition

Gliffy
imageAttachmentIdatt742392170
baseUrlhttps://enturas.atlassian.net/wiki
macroIdd255f1a7-4ec2-4218-b39e-1ba1722e483f
namestopConditionExample
diagramAttachmentIdatt742818141
containerId637370785
timestamp1553250580683

The message is only shown when the affected stop is the target or origin of a travel search request

The message is displayed depending on the search request parameters, time and StopConditions.

Code Block
firstline1
titlestopCondition
linenumberstrue
<!---For kjøretøyVehicle 1--->
<AffectedStopPoint>                          
	<StopPointRef>NSR:Quay:1067</StopPointRef> 
    <StopPointName>Dovre</StopPointName>
    <StopCondition>destination</StopCondition>
    <StopCondition>startPoint</StopCondition>
</AffectedStopPoint>

Meldingen vil vises for søk til eller fra Dovre.

For søk angitt i tegningen:

Søk 1 vil ikke gi denne meldingen

Søk 2 vil gi denne meldingen

Søk 3 vil ikke gi denne meldingen

Søk 4 vil gi denne meldingen

Søk 5 vil ikke gi denne meldingen

Melding som vises kun ved påstigning på spesifisert stopp og avgang/kjøretøy

Meldingen legges på flere stoppesteder som ikke er etter hverdandre på ett kjøretøy (<VehicleJourneyRef>) på en spesifikk dato <OriginAimedDepartureTime>

...

The message will be displayed when searching from- or to Dovre.

The following is true for the illustration:

  • Search 1 will not show the message
  • Search 2 will show the message
  • Search 3 will not show the message
  • Search 4 will show the message due to startPoint at Dovre
  • Search 5 will not show the message

The message is only shown when boarding a specific vehicle (departure) on a specific stop

The message is referenced by multiple stops on the same specific VehicleJourney (specific departure on a specific date set with <VehicleJourneyRef> and <OriginAimedDepartureTime>).

stopConditions are set to 'startPoint' for all stops, and the message will only be shown when searching a journey on the specific date, with the specific departure, from one of the specific stops.

Code Block
firstline1
titlestopCondition
linenumberstrue
<!---For kjøretøyVehicle 1--->
<StopPoints>
	<AffectedStopPoint>
    	<StopPointRef>NSR:Quay:629</StopPointRef>
        <StopPointName>Kvam</StopPointName>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
    <AffectedStopPoint>
    	<StopPointRef>NSR:Quay:652</StopPointRef>
        <StopPointName>Dovre</StopPointName>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
    <AffectedStopPoint>
    	<StopPointRef>NSR:Quay:316</StopPointRef>
        <StopPointName>Oppdal</StopPointName>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
</StopPoints>

For søk angitt i tegningenThe following is true for the illustration:

Søk 1 vil ikke gi denne meldingen

Søk 2 vil ikke gi denne meldingen

Søk 3 vil ikke gi denne meldingen

Søk 4 vil gi denne meldingen pga startPoint på Dovre

Søk 5 vil ikke gi denne meldingen

Melding som vises ved alle søk til, fra og/eller forbi de spesifiserte stoppene på en avgang/kjøretøy

Meldingen legges på flere stoppesteder etter hverandre på ett kjøretøy (<VehicleJourneyRef>) på en spesifikk dato <OriginAimedDepartureTime>

...

  • Search 1 will not show the message
  • Search 2 will not show the message
  • Search 3 will not show the message
  • Search 4 will show the message
  • Search 5 will not show the message

The message is shown for all searches to-, from, or past the specified stops on a vehicle (departure)

The message is applied to multiple successive stops on a VehicleJourney, on a specific OriginAimedDepartureTime.

The message is shown in search responses where the particular vehicle, stop, and date appears but depends on the stopConditions on the stops.

Code Block
firstline1
titlestopCondition
linenumberstrue
<!---For kjøretøyVehicle 1--->
<StopPoints>
	<AffectedStopPoint>
    	<StopPointRef>NSR:Quay:4</StopPointRef>
        <StopPointName>Otta</StopPointName>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
    <AffectedStopPoint>
    	<StopPointRef>NSR:Quay:652</StopPointRef>
        <StopPointName>Dovre</StopPointName>
        <StopCondition>notStopping</StopCondition>
        <StopCondition>destination</StopCondition>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
    <AffectedStopPoint>
    	<StopPointRef>NSR:Quay:645</StopPointRef>
        <StopPointName>Dombås</StopPointName>
        <StopCondition>notStopping</StopCondition>
        <StopCondition>destination</StopCondition>
        <StopCondition>startPoint</StopCondition>
	</AffectedStopPoint>
    <AffectedStopPoint>
    	<StopPointRef>NSR:Quay:316</StopPointRef>
        <StopPointName>Oppdal</StopPointName>
        <StopCondition>destination</StopCondition>
	</AffectedStopPoint>
</StopPoints>

For søk angitt i tegningenThe following is true for the illustration:

Søk 1 vil ikke gi denne meldingen

Søk 2 vil gi denne meldingen 1 gang pga destination på Dovre

Søk 3 vil gi denne meldingen 2 ganger pga notStopping på Dovre og notStopping på Dombås

Søk 4 vil gi denne meldingen 3 ganger pga startPoint på Dovre, notStopping på Dombås og destination på Oppdal

Søk 5 vil ikke gi denne meldingen da søket ikke vil gi kjøretøy 1 i svaret

Melding som vises ved søk forbi det spesifiserte stoppet på en avgang/kjøretøy

Meldingen legges på ett stoppested på ett kjøretøy (<VehicleJourneyRef>) på en spesifikk dato <OriginAimedDepartureTime>

...

  • Search 1 will not show the message
  • Search 2 will show the message due to Dovre being the destination
  • Search 3 will show the message twice, due to notStopping at Dovre and notStopping at Dombås
  • Search 4 will show the message three times, due to startPoint at Dovre, notStopping at Dombås and destination at Oppdal
  • Search 5 will not show the message

The message is shown when searching past a specific stop on a vehicle (departure)

The message is applied to multiple successive stops on a VehicleJourney, on a specific OriginAimedDepartureTime.

The message is shown in search responses where the particular vehicle- and stop.

Code Block
firstline1
titlestopCondition
linenumberstrue
<!---For kjøretøyVehicle 1--->
<AffectedStopPoint>
	<StopPointRef>NSR:Quay:652</StopPointRef>
    <StopPointName>Dovre</StopPointName>
    <StopCondition>notStopping</StopCondition>
</AffectedStopPoint>

For søk angitt i tegningenThe following is true for the illustration:

Søk 1 vil ikke gi denne meldingen

Søk 2 vil ikke gi denne meldingen

Søk 3 vil gi denne meldingen

Søk 4 vil ikke gi denne meldingen

...

  • Search 1 will not show the message
  • Search 2 will not show the message
  • Search 3 will show the message
  • Search 4 will not show the message
  • Search 5 will not show the message