Versions Compared

Key

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

...

This document describes a simplified example for specifying tariff codes/tariff per Line and/or ServiceJourney using a key-value pair for tariff code.

...

Info

Same structure as in a normal submission of Line, see NeTEx sample-directory (i arbeid)examples catalogue.

The entire XML sample file can be found in our GitHub repository: https://github.com/entur/profile-norway-examples/blob/master/netex/fares/tariff-code.xml

...

Info

Structured in the same way as normal submission by Line, see NeTEx sample-directory (i arbeid)examples catalogue.

Service Frame

Line

To define a tariff code/tariff per Line. They are defined in a keyList containing a KeyValue pair:

Code Block
languagexml
<Line version="1" id="RUT:Line:1">
	<keyList>
		<KeyValue>
			<Key>Tariffkode</Key>
			<Value>Dagtakst<<Value>Day_tariff</Value>
		</KeyValue>
	</keyList>
	<Name>Line-name</Name>
	<TransportMode>bus</TransportMode>
	<TransportSubmode>
		<BusSubmode>localBus</BusSubmode>
	</TransportSubmode>
	[...]
</Line>

...

To define a tariff code/tariff per ServiceJourney (an individual departure), define the codes in a keyList containing a KeyValue pair for each affected ServiceJourney:

Code Block
languagexml
<ServiceJourney version="1" id="UNI:ServiceJourney:1">
	<keyList>
		<KeyValue>
			<Key>Tariffkode</Key>
			<Value>Nattakst<<Value>Night_tariff</Value>
		</KeyValue>
	</keyList>
	[...]
	<DepartureTime>00:00:00</DepartureTime>
	<passingTimes>
		<TimetabledPassingTime version="1" id="RUT:TimetabledPassingTime:1">
			<ArrivalTime>00:00:00</ArrivalTime>
		</TimetabledPassingTime>
	</passingTimes>
</ServiceJourney>

...