Versions Compared

Key

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

InnholdContent

Table of Contents

Forenklet eksempel

Dette dokumentet beskriver et forenklet eksempel på spesifisering av takstkode/tariff per Line og/eller ServiceJourney ved hjelp av et Key-Value par for Tariffkode.

Merk at det i eksempelet, inkludert i XML-fil lagt på GitHub (se under), kun er laget for å illustrere dette konseptet og derfor mangler en rekke dataobjekter og referanser som kreves for å være gyldig datainnsending i henhold til NeTEx NORWEGIAN PROFILE.

Rutemønster

...

Simplified example

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

Note that in the example, included in the XML file added to GitHub (see below), is only designed to illustrate this concept and therefore lacks a number of data objects and references required to be valid data submission under  NeTEx NORWEGIAN PROFILE..

Routepattern

Info

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

...


Hele XML eksempelfilen ligger på prosjektets GitHub-repository under The entire XML sample file is located on the project's GitHub repository below https://github.com/entur/profile-norway-examples/blob/master/netex/fares/tariff-code.xml

PublicationDelivery

Info

Struktureres på samme måte som normal innsending av Line, se Sample-directory NeTEx Structured in the same way as normal submission by Line, see NeTEx sample-directory (i arbeid).

Service Frame

Line

For å definere en takstkode To define a tariff zone/ tariff per per Line, legges dette inn med en keyList som inneholder et KeyValue-parthis is entered with a keyList containing a KeyValue pair:

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

Timetable Frame

ServiceJourney

For å definere en takstkode To define a tariff zone/ tariff per ServiceJourney (enkeltvise avgang), legges dette inn tilsvarende med en keyList som inneholder et KeyValue-par for hver berørte individual departure), this is entered accordingly with 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>
		</KeyValue>
	</keyList>
	[...]
	<DepartureTime>00:00:00</DepartureTime>
	<passingTimes>
		<TimetabledPassingTime version="1" id="RUT:TimetabledPassingTime:1">
			<ArrivalTime>00:00:00</ArrivalTime>
		</TimetabledPassingTime>
	</passingTimes>
</ServiceJourney>

...