Content
Table of Contents |
---|
Simplified example
This document describes a simplified example of for specifying tariff zone codes/tariff per Line and/or ServiceJourney using a key-value pair for tariff code.
Note Please note that in the example, included in the XML file added to on GitHub (see below), is only designed meant to illustrate this the concept and therefore lacks a number of many data objects and references required to be a valid data submission under NeTEx NORWEGIAN PROFILE.in accordance with Nordic NeTEx Profile.
...
Route pattern
Info |
---|
Structured in the same way as Same structure as in a normal submission by of Line, see NeTEx sample-directory (i arbeid)examples catalogue. |
Link
The entire XML sample file is located on the project's GitHub repository below XML example in it its entirety can be found in the GitHub repository: https://github.com/entur/profile-norway-examples/blob/master/netex/fares/tariff-code.xml
PublicationDelivery
Info |
---|
Structured in the same way as a normal submission by of Line, see NeTEx sample-directory (i arbeid)examples catalogue. |
Service Frame
Line
To define a tariff zonecode/tariff per Line, this is entered with . They are defined in a keyList containing a KeyValue pair:
Code Block | ||
---|---|---|
| ||
<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> |
Timetable Frame
ServiceJourney
To define a tariff zonetariff code/tariff per ServiceJourney (an individual departure), this is entered accordingly with 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>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> |
...