Example
Netex_51.2_Bus_SimpleFares_PointToPoint_MultipleOffers.xml
functions/fares/Netex_51.2_Bus_SimpleFares_PointToPoint_MultipleOffers.xml
Element names link to their declarations.
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==== Simple Point to Point Fare with different media offers Example ======
This example shows the encoding of a point to point tariff for a simple bus timetable for a linear route in NeTex XML
There are separate packages for with different prices for paper and mobile tickets
There are separate prices for first and second class
Data is Fictional
(C) CEN & Crown Copyright 2018, 2019
Free to use under a Creative Commons license.
v1.1 Revised & corrected to use Tariff and simpler ids
===================================================
1. OVERVIEW
============
Network has just one line with three stops A - B - C
Point to point Fare matrix
From To Adult Price
A B C
A - A_B A_C
B - - B_C
C - - -
paper ticket
From To Adult Price Child price 1st Class
DME1: A B 1.00 EUR 50% 1.50 EUR
DME2 A C 3.00 EUR 50% 5.00 EUR
DME3: B C 2.00 EUR 50% 3.00 EUR
mobile app
From To Adult Price Child price 1st Class
DME1: A B 0.90 EUR 50% 1.40 EUR
DME2 A C 2.70 EUR 50% 4.80 EUR
DME3: B C 1.90 EUR 50% 280 EUR
==================================
2. DETAILS
There is one LINE : mybus:LN_24 on which the fare is valid this is assigned to a GROUP OF LINES
SCHEDULED STOP POINTs
A) mybus:ssp_001 Alpha
B) mybus:ssp_002 Bravo
C) mybus:ssp_077 Charley
TARIFF There is a single tariff: myfares:PointToPoint
The fare structure has fiur elements
(i) FARESTRUCTURE ELEMENT myfares:PointToPoint@access
There are DISTANCE MATRIX ELEMENTs for each origin /destination
AB DISTANCE MATRIX ELEMENT: myfares:SSP_001+SSP_002
AC DISTANCE MATRIX ELEMENT: myfares:SSP_001+SSP_077
BC DISTANCE MATRIX ELEMENT: myfares:SSP_002+SSP_077
(ii) FARESTRUCTURE ELEMENT myfares:PointToPoint@eligibility
There is a GENERIC PARAMETER ASSIGNMENT with a choice of two parameters
USER PROFILE myfares:adult
USER PROFILE myfares:child
(iii) FARESTRUCTURE ELEMENT myfares:PointToPoint@classes_of_use
There is a GENERIC PARAMETER ASSIGNMENT with a choice of two parameters
CLASSES OF USE myfares:standard
CLASSES OF USE myfares:fisrt
(iiv FARE STRUCTURE ELEMENT myfares:PointToPoint@conditions_of_use
ROUND TRIP : myfares:PointToPoint@conditions_of_travel@trip Single
FREQUENCY OF USE myfares:PointToPoint@conditions_of_travel@frequency"> single use
INTERCHANGING myfares:PointToPoint@conditions_of_travel@interchanging not allowed
There is a SINGLE FARE PRODUCT myfares:Single_trip
It has a VALIDABLE ELEMENT myfares:Single_trip@travel that references the four FARE STRUCTURE ELEMENTs
There are two SALES OFFER PACKAGEs, one for printed tickets, one for mobbiles; they use teh same fare PRODUCTs that use the same TARIFF of FARE STRUCTURE ELEMENts
SALES OFFER PACKAGEs myfares:Single_trip-SOP@p-ticket
It has a SALES OFFER PACKAGE ELEMENT myfares:Single_trip-SOP@p-ticket that references SINGLE FARE PRODUCT myfares:Single_trip
it uses TYPE OF TRAVEL DOCUMENT paper myfares:paper_ticket"
SALES OFFER PACKAGEs myfares:Single_trip-SOP@m-ticket
It has a SALES OFFER PACKAGE ELEMENT myfares:Single_trip-SOP@m-ticket that references SINGLE FARE PRODUCT myfares:Single_trip
it uses TYPE OF TRAVEL DOCUMENT paper myfares:mobile_app
There is a FARE TABLE myfares:Line_1 containg sub FARETABLEs to organise fare prices by SALES OFFER PACKAGE / CLASS OF USE / DISTANCE MATRIX ELEMENT
There a price for each DISTANCE MATRIX ELEMENT
AB DISTANCE MATRIX ELEMENT: myfares:SSP_001+SSP_002
FARE STRUCTURE ELEMENT PRICE: myfares:SSP_001+SSP_002 1.00 EUR
AC DISTANCE MATRIX ELEMENT: myfares:SSP_001+SSP_077
FARE STRUCTURE ELEMENT PRICE: myfares:SSP_001+SSP_077 3.00 EUR
BC DISTANCE MATRIX ELEMENT: myfares:SSP_002+SSP_077
FARE STRUCTUR ELEMENT PRICE: myfares:SSP_002+SSP_077 2.00 EUR
A COMPOSITE FRAME is used to group the component FRAMEs
- It has a VALIDITY CONDITION that specifies it is valid between hiven dates
A SERVICE FRAME is used to contain the STOP POINT elements LINE, etc
A FARE FRAME is used to contain the FARE product elements
A separate FARE FRAME is used to contain the FARE price elements
A RESOURCE FRAME is used to contain common code values
-->
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<PublicationTimestamp>2010-12-17T09:30:47.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<!--- ======WHAT WAS REQUESTED ========== -->
<PublicationRequest version="1.0">
<RequestTimestamp>2010-12-17T09:30:47.0Z</RequestTimestamp>
<ParticipantRef>SYS002</ParticipantRef>
<topics>
<NetworkFrameTopic>
<selectionValidityConditions>
<AvailabilityCondition version="any" id="hde:range">
<FromDate>2011-01-01T00:00:00Z</FromDate>
</AvailabilityCondition>
</selectionValidityConditions>
<FareFrameRef ref="myfares:FF01">REQUEST</FareFrameRef>
</NetworkFrameTopic>
</topics>
</PublicationRequest>
<PublicationRefreshInterval>P1M</PublicationRefreshInterval>
<Description>Example of simple point to point fares</Description>
<!--- =============== RESULTS =========== -->
<dataObjects>
<CompositeFrame version="1" id="myfares:DTA@Line24">
<validityConditions>
<ValidBetween>
<FromDate>2011-01-01T00:00:00Z</FromDate>
<ToDate>2011-07-01T00:00:00Z</ToDate>
</ValidBetween>
</validityConditions>
<!--- ======= CODESPACEs======== -->
<codespaces>
<Codespace id="mybus">
<Xmlns>mybus</Xmlns>
<XmlnsUrl>http://www.mybuses.eu/stuff</XmlnsUrl>
<Description>My buses</Description>
</Codespace>
<Codespace id="myfares">
<Xmlns>myfares</Xmlns>
<XmlnsUrl>http://www.myfares.com/fares</XmlnsUrl>
<Description>Fare data</Description>
</Codespace>
</codespaces>
<!--- =======FRAME DEFAULTS======== -->
<FrameDefaults>
<DefaultCodespaceRef ref="myfares"/>
<DefaultCurrency>EUR</DefaultCurrency>
</FrameDefaults>
<frames>
<ServiceFrame version="1.0" id="mybus:DTA@Line24@network">
<Name>Stops for Winter timetable for route 24 </Name>
<prerequisites>
<ResourceFrameRef version="1.0" ref="mybus:DTA@Common_resources"/>
</prerequisites>
<!--- =========LINEs=========== -->
<lines>
<Line version="any" id="mybus:LN_24">
<Name>Line 24 Alpha to Charley</Name>
<PublicCode>24</PublicCode>
<OperatorRef version="any" ref="mybus:DTA"/>
</Line>
</lines>
<!--- === GROUPs OF LINEs ========= -->
<groupsOfLines>
<GroupOfLines version="any" id="mybus:my_lines">
<Name>Express routes</Name>
<members>
<LineRef version="any" ref="mybus:LN_24"/>
</members>
</GroupOfLines>
</groupsOfLines>
<!--- =========STOP POINTs============ -->
<scheduledStopPoints>
<ScheduledStopPoint version="any" id="mybus:SSP_001">
<Name>Alpha & Castle</Name>
<Location>
<Longitude>53.0000</Longitude>
<Latitude>0.1000</Latitude>
</Location>
<ShortName>Alpha</ShortName>
<PublicCode>ALPH</PublicCode>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="mybus:SSP_002">
<Name>Bravo Street</Name>
<Location>
<Longitude>53.2000</Longitude>
<Latitude>0.2000</Latitude>
</Location>
<ShortName>Bravo</ShortName>
<PublicCode>BRAV</PublicCode>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="mybus:SSP_077">
<Name>Charley Crescent</Name>
<Location>
<Longitude>53.3000</Longitude>
<Latitude>0.3000</Latitude>
</Location>
<ShortName>Charley</ShortName>
<PublicCode>CHAS</PublicCode>
</ScheduledStopPoint>
</scheduledStopPoints>
</ServiceFrame>
<!--- =============== FAREs =========== -->
<FareFrame version="1.0" id="myfares:DTA@Line24@products">
<prerequisites>
<ServiceFrameRef version="1.0" ref="mybus:DTA@Line24@network"/>
</prerequisites>
<!--- ====Fare Structure======= -->
<tariffs>
<Tariff version="1.0" id="myfares:PointToPoint_01">
<Name>Point to Point Tariff</Name>
<OperatorRef version="any" ref="mybus:DTA"/>
<TypeOfTariffRef version="ntx:v1.0" ref="ntx:point_to_point"/>
<fareStructureElements>
<FareStructureElement version="1.0" id="myfares:PointToPoint_01@access">
<distanceMatrixElements>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_002"/>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_077"/>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_002+SSP_077"/>
</distanceMatrixElements>
<GenericParameterAssignment order="1" id="myfares:PointToPoint_01@access" version="1.0">
<TypeOfAccessRightAssignmentRef version="ntx:v1.0" ref="ntx:can_access"/>
<ValidityParameterGroupingType>XOR</ValidityParameterGroupingType>
<validityParameters>
<GroupOfLinesRef version="any" ref="mybus:my_lines"/>
</validityParameters>
</GenericParameterAssignment>
</FareStructureElement>
<FareStructureElement version="1.0" id="myfares:PointToPoint_01@eligibility">
<Name>Eligible user types</Name>
<GenericParameterAssignment order="1" id="myfares:PointToPoint_01@eligibility" version="1.0">
<TypeOfAccessRightAssignmentRef version="ntx:v1.0" ref="ntx:eligible"/>
<LimitationGroupingType>XOR</LimitationGroupingType>
<limitations>
<!--- ===ELIGIBILITY USAGE PARAMETERS ========= -->
<UserProfile version="any" id="myfares:adult">
<Name>Child Fare</Name>
<TypeOfConcessionRef version="any" ref="myfares:adult"/>
<MaximumAge>16</MaximumAge>
</UserProfile>
<UserProfile version="any" id="myfares:child">
<Name>Child Fare</Name>
<TypeOfConcessionRef version="any" ref="myfares:child"/>
<MaximumAge>16</MaximumAge>
</UserProfile>
</limitations>
</GenericParameterAssignment>
</FareStructureElement>
<FareStructureElement version="1.0" id="myfares:PointToPoint_01@classes_of_use">
<Name>Available classes of use</Name>
<GenericParameterAssignment order="1" id="myfares:PointToPoint_01@classes_of_use" version="1.0">
<TypeOfAccessRightAssignmentRef version="ntx:v1.0" ref="ntx:can_access"/>
<ValidityParameterGroupingType>XOR</ValidityParameterGroupingType>
<validityParameters>
<ClassOfUseRef version="any" ref="myfares:standard"/>
<ClassOfUseRef version="any" ref="myfares:first"/>
</validityParameters>
</GenericParameterAssignment>
</FareStructureElement>
<FareStructureElement id="myfares:PointToPoint_01@conditions_of_travel" version="1.0">
<Name>Conditions of travel</Name>
<GenericParameterAssignment version="1.0" order="1" id="myfares:PointToPoint_01@conditions_of_travel">
<TypeOfAccessRightAssignmentRef version="ntx:v1.0" ref="ntx:condition_of_use"/>
<LimitationGroupingType>AND</LimitationGroupingType>
<limitations>
<RoundTrip version="1.0" id="myfares:PointToPoint_01@conditions_of_travel@trip">
<Name>Single Trip</Name>
<TripType>single</TripType>
</RoundTrip>
<FrequencyOfUse version="1.0" id="myfares:PointToPoint_01@conditions_of_travel@frequency">
<Name>One trip no transfers</Name>
<FrequencyOfUseType>single</FrequencyOfUseType>
<MaximalFrequency>1</MaximalFrequency>
</FrequencyOfUse>
<Interchanging version="1.0" id="myfares:PointToPoint_01@conditions_of_travel@interchanging">
<FromMode>bus</FromMode>
<ToMode>bus</ToMode>
<MaximumNumberOfInterchanges>0</MaximumNumberOfInterchanges>
</Interchanging>
</limitations>
</GenericParameterAssignment>
</FareStructureElement>
</fareStructureElements>
<distanceMatrixElements>
<DistanceMatrixElement version="any" id="myfares:SSP_001+SSP_002">
<Name>A to B</Name>
<StartStopPointRef version="any" ref="mybus:SSP_001"/>
<EndStopPointRef version="any" ref="mybus:SSP_002"/>
<prices>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_002@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_002@first"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_002@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_002@first"/>
</prices>
</DistanceMatrixElement>
<DistanceMatrixElement version="any" id="myfares:SSP_001+SSP_077">
<Name>A to C</Name>
<StartStopPointRef version="any" ref="mybus:SSP_001"/>
<EndStopPointRef version="any" ref="mybus:SSP_077"/>
<prices>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_077@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_077@first"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_077@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_077@first"/>
</prices>
</DistanceMatrixElement>
<DistanceMatrixElement version="any" id="myfares:SSP_002+SSP_077">
<Name>B to C</Name>
<StartStopPointRef version="any" ref="mybus:SSP_002"/>
<EndStopPointRef version="any" ref="mybus:SSP_077"/>
<prices>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_002+SSP_077@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@p-ticket@SSP_002+SSP_077@first"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_002+SSP_077@standard"/>
<DistanceMatrixElementPriceRef version="1.0" ref="myfares:PointToPoint_01@m-ticket@SSP_002+SSP_077@first"/>
</prices>
</DistanceMatrixElement>
</distanceMatrixElements>
<!-- == Prices === -->
<priceGroups>
<PriceGroupRef version="1.0" ref="myfares:Line24@discounts"/>
</priceGroups>
<fareTables>
<FareTableRef version="1.0" ref="myfares:Line24"/>
</fareTables>
</Tariff>
</tariffs>
<!--- ====Fare Product======= -->
<fareProducts>
<PreassignedFareProduct version="1.0" id="myfares:Trip">
<Name>Standard Point To Point Trip fare </Name>
<TypeOfFareProductRef version="ntx:v1.0" ref="ntx:trip"/>
<OperatorRef version="any" ref="mybus:DTA"/>
<!--- ====VALIDABLE ELEMENTs====== -->
<validableElements>
<ValidableElement version="1.0" id="myfares:Trip@travel">
<Name>Single ride</Name>
<fareStructureElements>
<FareStructureElementRef version="1.0" ref="myfares:PointToPoint_01@access"/>
<FareStructureElementRef version="1.0" ref="myfares:PointToPoint_01@eligibility"/>
<FareStructureElementRef version="1.0" ref="myfares:PointToPoint_01@classes_of_use"/>
<FareStructureElementRef version="1.0" ref="myfares:PointToPoint_01@conditions_of_travel"/>
</fareStructureElements>
</ValidableElement>
</validableElements>
<!--- ====ACCESS RIGHTs======= -->
<accessRightsInProduct>
<AccessRightInProduct version="1.0" id="myfares:Trip" order="1">
<Name>First ride</Name>
<IsFirstInSequence>true</IsFirstInSequence>
<IsLastInSequence>true</IsLastInSequence>
<ValidableElementRef version="1.0" ref="myfares:Trip@travel"/>
</AccessRightInProduct>
</accessRightsInProduct>
</PreassignedFareProduct>
</fareProducts>
<!--==== Sales Packages==== -->
<salesOfferPackages>
<SalesOfferPackage version="1.0" id="myfares:Trip-SOP@p-ticket">
<Name/>
<distributionAssignments>
<DistributionAssignment version="10" id="myfares:Trip-SOP@p-ticket@atStop" order="1">
<Name>Onboard</Name>
<Description>Pay for ticket onboard</Description>
<DistributionChannelType>atStop</DistributionChannelType>
<TicketingServiceFacilityList>purchase</TicketingServiceFacilityList>
<PaymentMethods>cashAndCard</PaymentMethods>
<FulfilmentMethodRef ref="ntx:collect_on_board" versionRef="ntx:v1.0"/>
</DistributionAssignment>
<DistributionAssignment version="1.0" id="myfares:Trip-SOP@p-ticket@onBoard" order="2">
<Name>Onboard</Name>
<Description>Pay for ticket onboard</Description>
<DistributionChannelType>onBoard</DistributionChannelType>
<TicketingServiceFacilityList>purchase</TicketingServiceFacilityList>
<PaymentMethods>cashAndCard</PaymentMethods>
<FulfilmentMethodRef ref="ntx:collect_on_board" versionRef="ntx:v1.0"/>
</DistributionAssignment>
</distributionAssignments>
<salesOfferPackageElements>
<SalesOfferPackageElement version="1.0" id="myfares:Trip-SOP@p-ticket" order="1">
<TypeOfTravelDocumentRef version="any" ref="myfares:printed_ticket"/>
<PreassignedFareProductRef version="1.0" ref="myfares:Trip"/>
</SalesOfferPackageElement>
</salesOfferPackageElements>
</SalesOfferPackage>
<SalesOfferPackage version="1.0" id="myfares:Trip-SOP@m-ticket">
<Name/>
<distributionAssignments>
<DistributionAssignment version="10" id="myfares:Trip-SOP@m-ticket@online" order="1">
<Name>Online</Name>
<DistributionChannelType>mobileDevice</DistributionChannelType>
<PaymentMethods>cardsOnly</PaymentMethods>
<FulfilmentMethodRef ref="ntx:mobile_app" versionRef="ntx:v1.0"/>
</DistributionAssignment>
</distributionAssignments>
<salesOfferPackageElements>
<SalesOfferPackageElement version="1.0" id="myfares:Trip-SOP@m-ticket" order="1">
<TypeOfTravelDocumentRef version="any" ref="myfares:mobile_app"/>
<PreassignedFareProductRef version="1.0" ref="myfares:Trip"/>
</SalesOfferPackageElement>
</salesOfferPackageElements>
</SalesOfferPackage>
</salesOfferPackages>
</FareFrame>
<!--- =============== FAREs =========== -->
<FarePriceFrame version="1.0" id="myfares:DTA@Line24@prices">
<Name>Prices for Line 24</Name>
<prerequisites>
<FareFrameRef version="1.0" ref="myfares:DTA@Line24@products"/>
</prerequisites>
<!--- ====Pricing Parmaters======= -->
<PricingParameterSet version="1.0" id="myfares:Line24">
<pricingRules>
<DiscountingRule version="1.0" id="myfares:0%">
<DiscountAsPercentage>0</DiscountAsPercentage>
</DiscountingRule>
<DiscountingRule version="1.0" id="myfares:50%">
<DiscountAsPercentage>50</DiscountAsPercentage>
</DiscountingRule>
</pricingRules>
</PricingParameterSet>
<priceGroups>
<PriceGroup version="1.0" id="myfares:Line24@discounts">
<members>
<UsageParameterPrice version="1.0" id="myfares:adult">
<Name>Adult price</Name>
<DiscountingRuleRef version="1.0" ref="myfares:0%"/>
<UserProfileRef version="any" ref="myfares:adult"/>
</UsageParameterPrice>
<UsageParameterPrice version="1.0" id="myfares:child">
<Name>Child discount - all fares</Name>
<DiscountingRuleRef version="1.0" ref="myfares:50%"/>
<UserProfileRef version="any" ref="myfares:child"/>
</UsageParameterPrice>
</members>
</PriceGroup>
</priceGroups>
<!--- ====Fare Prices======= -->
<fareTables>
<FareTable version="1.0" id="myfares:Line24">
<Name>Prices for Point to Point Trip Product</Name>
<pricesFor>
<PreassignedFareProductRef version="1.0" ref="myfares:Trip"/>
</pricesFor>
<usedIn>
<TariffRef version="1.0" ref="myfares:PointToPoint_01"/>
</usedIn>
<limitations>
<UserProfileRef version="any" ref="myfares:adult"/>
</limitations>
<includes>
<FareTable version="1.0" id="myfares:Line24@p-ticket">
<Name>Prices for Point to Point Trip Product - paper ticket</Name>
<pricesFor>
<SalesOfferPackageRef version="1.0" ref="myfares:Trip-SOP@p-ticket"/>
</pricesFor>
<includes>
<FareTable version="1.0" id="myfares:PointToPoint_01@p-ticket@standard">
<Name>Prices for Point to Point Trip Product - Standard</Name>
<specifics>
<ClassOfUseRef version="any" ref="myfares:standard"/>
</specifics>
<cells>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_002@standard">
<Name>Alpha to Beta - Price</Name>
<Amount>1.00</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_002"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_077@standard">
<Name>Alpha to Charley - Price</Name>
<Amount>3.00</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_077"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_002+SSP_077@standard">
<Name>Beta to Charley - Price</Name>
<Amount>2.00</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_002+SSP_077"/>
</DistanceMatrixElementPrice>
</cells>
</FareTable>
<FareTable version="any" id="myfares:PointToPoint_01@p-ticket@first">
<Name>Prices for Point to Point Fare Product - First Class</Name>
<specifics>
<ClassOfUseRef version="any" ref="myfares:first"/>
</specifics>
<cells>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_002@first">
<Name>Alpha to Beta - Price</Name>
<Amount>1.50</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_002"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_001+SSP_077@first">
<Name>Alpha to Charley - Price</Name>
<Amount>5.00</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_077"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@p-ticket@SSP_002+SSP_077@first">
<Name>Beta to Charley - Price</Name>
<Amount>3.00</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_002+SSP_077"/>
</DistanceMatrixElementPrice>
</cells>
</FareTable>
</includes>
</FareTable>
<FareTable version="1.0" id="myfares:Line24@m-ticket">
<Name>Prices for Point to Point Trip Product - Mobile app</Name>
<pricesFor>
<SalesOfferPackageRef version="1.0" ref="myfares:Trip-SOP@m-ticket"/>
</pricesFor>
<includes>
<FareTable version="1.0" id="myfares:PointToPoint_01@m-ticket@standard">
<Name>Prices for Point to Point Trip Product - Mobile app - Standard</Name>
<specifics>
<ClassOfUseRef version="any" ref="myfares:standard"/>
</specifics>
<cells>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_002@standard">
<Name>Alpha to Beta - Price</Name>
<Amount>0.90</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_002"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_077@standard">
<Name>Alpha to Charley - Price</Name>
<Amount>2.70</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_077"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_002+SSP_077@standard">
<Name>Beta to Charley - Price</Name>
<Amount>1.90</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_002+SSP_077"/>
</DistanceMatrixElementPrice>
</cells>
</FareTable>
<FareTable version="any" id="myfares:PointToPoint_01@m-ticket@first">
<Name>Prices for Point to Point Fare Product - Mobile app - First Class</Name>
<specifics>
<ClassOfUseRef version="any" ref="myfares:first"/>
</specifics>
<cells>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_002@first">
<Name>Alpha to Beta - Price</Name>
<Amount>1.40</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_002"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_001+SSP_077@first">
<Name>Alpha to Charley - Price</Name>
<Amount>4.80</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_001+SSP_077"/>
</DistanceMatrixElementPrice>
<DistanceMatrixElementPrice version="1.0" id="myfares:PointToPoint_01@m-ticket@SSP_002+SSP_077@first">
<Name>Beta to Charley - Price</Name>
<Amount>2.80</Amount>
<DistanceMatrixElementRef version="any" ref="myfares:SSP_002+SSP_077"/>
</DistanceMatrixElementPrice>
</cells>
</FareTable>
</includes>
</FareTable>
</includes>
</FareTable>
</fareTables>
</FarePriceFrame>
<!-- ==== COMMON RESOURCES == -->
<ResourceFrame version="1.0" id="mybus:DTA@Common_resources">
<codespaces>
<Codespace id="ntx">
<Xmlns>ntx</Xmlns>
<XmlnsUrl>http://netex.org.uk/</XmlnsUrl>
<Description>Netex built in value</Description>
</Codespace>
</codespaces>
<typesOfValue>
<ValueSet version="ntx:v1.0" id="ntx:Types_of_Tariff" classOfValues="TypeOfTariff">
<Name>Types of Tariff</Name>
<values>
<!--- ====Types OfTariff ========= -->
<TypeOfTariff version="ntx:v1.0" id="ntx:Distance_kilometers">
<Name>Kilometer Distance Kilometers</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:flat">
<Name>Flat</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:point_to_point">
<Name>Point to point</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:zone_to_zone">
<Name>Zone to Zone</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:zonal">
<Name>Zonal</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:section">
<Name>Section</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:banded">
<Name>Section</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:stored_value">
<Name>Stored value</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:discount">
<Name>Discount value</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:multitrip">
<Name>Multitrip carnet</Name>
</TypeOfTariff>
<TypeOfTariff version="ntx:v1.0" id="ntx:identity_card">
<Name>SIdentity</Name>
</TypeOfTariff>
</values>
</ValueSet>
<ValueSet version="ntx:v1.0" id="ntx:Types_of_FareProduct" classOfValues="TypeOfFareProduct">
<Name>Types of Fare Product</Name>
<values>
<TypeOfFareProduct version="ntx:v1.0" id="ntx:trip">
<Name>Trip product</Name>
</TypeOfFareProduct>
<TypeOfFareProduct version="ntx:v1.0" id="ntx:multi_trip">
<Name>Multitrip / carnet product</Name>
</TypeOfFareProduct>
<TypeOfFareProduct version="ntx:v1.0" id="ntx:period_pass">
<Name>Peroid pass product</Name>
</TypeOfFareProduct>
<TypeOfFareProduct version="ntx:v1.0" id="ntx:day_pass">
<Name>Day pass product</Name>
</TypeOfFareProduct>
<TypeOfFareProduct version="ntx:v1.0" id="ntx:discount_card">
<Name>Discount product</Name>
</TypeOfFareProduct>
</values>
</ValueSet>
<ValueSet version="any" id="myfares:Classes_of_Use" classOfValues="ClassOfUse">
<values>
<!--- ==== ClassOfUse========= -->
<ClassOfUse version="any" id="myfares:first">
<Name>First</Name>
</ClassOfUse>
<ClassOfUse version="any" id="myfares:standard">
<Name>Standard</Name>
</ClassOfUse>
</values>
</ValueSet>
<ValueSet version="any" id="myfares:Types_of_Concession" classOfValues="TypeOfConcession">
<Name>Types of concession</Name>
<values>
<!--- ====TypeOfConcession method========= -->
<TypeOfConcession version="any" id="myfares:adult">
<Name>Adult</Name>
</TypeOfConcession>
<TypeOfConcession version="any" id="myfares:child">
<Name>Student</Name>
</TypeOfConcession>
</values>
</ValueSet>
<ValueSet version="any" id="myfares:Types_of_TravelDocument" classOfValues="TypeOfTravelDocument">
<Name>Types of concession</Name>
<values>
<!--- ====TypeOfConcession method========= -->
<TypeOfTravelDocument version="any" id="myfares:printed_ticket">
<Name>Paper ticket</Name>
</TypeOfTravelDocument>
<TypeOfTravelDocument version="any" id="myfares:mobile_app">
<Name>Mobile app</Name>
</TypeOfTravelDocument>
</values>
</ValueSet>
<ValueSet version="ntx:v1.0" id="ntx:Types_of_AccessRightAssignment" classOfValues="TypeOfAccessRightAssignment">
<Name>Types of Access Right Assignment</Name>
<values>
<TypeOfAccessRightAssignment version="ntx:v1.0" id="ntx:eligible">
<Name>Eligible for a product or discount</Name>
</TypeOfAccessRightAssignment>
<TypeOfAccessRightAssignment version="ntx:v1.0" id="ntx:can_access">
<Name>Grants access rights to use or travel on</Name>
</TypeOfAccessRightAssignment>
<TypeOfAccessRightAssignment version="ntx:v1.0" id="ntx:condition_of_use">
<Name>Defines a condition or restriction on use</Name>
</TypeOfAccessRightAssignment>
</values>
</ValueSet>
</typesOfValue>
<organisations>
<!--- =====Agency========= -->
<Operator version="any" id="mybus:DTA">
<Name>Demo Transit Authority</Name>
</Operator>
</organisations>
</ResourceFrame>
</frames>
</CompositeFrame>
</dataObjects>
</PublicationDelivery>