Content
Table of Contents |
---|
Simplified example
This document describes a simplified example for specifying tariff codes/tariff per Line and/or ServiceJourney using a key-value pair for tariff code.
Please note that the example, included in the XML file on GitHub (see below), is only meant to illustrate the concept and therefore lacks many data objects and references required to be a valid data submission in accordance with Nordic NeTEx Profile..
RoutepatternRoute pattern
Info |
---|
Same structure as in a normal submission of Line, see NeTEx examples catalogue. |
...
Info |
---|
Structured in the same way as a normal submission by of Line, see NeTEx examples catalogue. |
...
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 | ||
---|---|---|
| ||
<ServiceJourney version="1" id="UNI:ServiceJourney:1"> <keyList> <KeyValue> <Key>Tariffkode</Key> <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> |
...