Skip to content

Fares - Support LineType as validityparameter #1072

Description

@hegedreiem

LineRef and TypeOfLineRef can be used as validityParameters when describing access rights for fare products, but using LineType which is backed by LineTypeEnumeration is at the moment not an option in the xsd.

Context: Some Norwegian authorities have separate fare products for different types of services, distinguished via LineType.
When the number of lines that need to be included or excluded in a fare product become large (>50) and the lines are redone quite often, it is awkward to use the direct LineRef to describe access rights in a FareProduct.

What they are asking: As there is an enumeration for LineType it should be possible to use the enumerated values to describe access rights in fare products, rather than the custom TypeOfLineRef or individual LineRefs.

Example:
An operator that use two different fare products for regular lines and lines with fixed routes that do not run unless there are actual bookings (LineType=fixed)
We would like the PreassignedFareProduct to specify access rights using the LineType as a validity parameter. It could look something like the following snippet for the access rights description:

<FareStructureElement id="INN:FareStructureElement:access" version="1">
  <validityParameterAssignments>
    <GenericParameterAssignment id="INN:GenericParameterAssignment:includedLines" version="1">
      <IsAllowed>true</IsAllowed>
      <validityParameters>
        <LineType>fixed</LineType>
      </validityParameters>
    </GenericParameterAssignment>
  </validityParameterAssignments>
</FareStructureElement>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions