-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TariffZoneConstraint / SameZoneEnumeration should add support for new enum value "neighbouring" #654
Comments
How can a receiving system know that something is neighbouring? I would be much more happy with actual references. For example neighbouringTariffZones/TariffZoneContraintRef as a clean up in next. |
The |
@viliket if it already does, that works for me too. |
Rethinking the proposed name of the enum value to reduce ambiguity: probably "connected" would make more sense of the intention of this constraint (from graph theory). The intention of this proposed constraint is to state that the zone extension ticket could only be sold as an add on to a season pass where the zones extend the original season pass zones while forming a connected graph so that the traveller can travel between the season pass + extension ticket zones. <FareStructureElement id="tst:Tariff@Extension@prerequisites" version="1.0">
<Name>Prerequisites for zone extension ticket</Name>
<GenericParameterAssignment version="1.0" id="tst:Tariff@Extension@prerequisites" order="1">
<Name>Only available as Add on to season pass</Name>
<TypeOfAccessRightAssignmentRef version="fxc:v1.0" ref="fxc:prerequisites"/>
<LimitationGroupingType>AND</LimitationGroupingType>
<limitations>
<EntitlementRequired id="tst:Tariff@Extension@prerequisites@Period_pass" version="1.0">
<Name>Must have a season pass with connected tariff zones</Name>
<PreassignedFareProductRef version="1.0" ref="atc:Rail@Period_pass"/>
<EntitlementConstraint>
<PeriodConstraint>withinSamePeriod</PeriodConstraint>
<TariffZoneConstraint>connected</TariffZoneConstraint>
</EntitlementConstraint>
</EntitlementRequired>
</limitations>
</GenericParameterAssignment>
</FareStructureElement> Below is a visualization of various examples. Note that the ↔ symbol marks the neighbourhood between the tariff zones. As stated earlier, the neighourhood can already be expressed in NeTEx by the existing |
Looks Ok, to be double checked by @nick-knowles |
Can also be covered by a single step in a zone counting system |
Addition of neigbouring to SameZoneEnumeration for TariffZoneConstraint as decided in NeTEx-CEN#654
Solved by #823 |
* Addition of neigbouring to SameZoneEnumeration Addition of neigbouring to SameZoneEnumeration for TariffZoneConstraint as decided in #654 * Lint and update documentation tables * Update xsd/netex_part_3/part3_fares/netex_usageParameterEntitlement_support.xsd --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
SameZoneEnumeration
should add support for new enum value "neighbouring" to allow e.g. specifying aFareStructureElement
with aGenericParameterAssignment
with anEntitlementRequired
withEntitlementConstraint
withTariffZoneConstraint
asneighbouring
.This would allow defining e.g. that one is entitled to purchase a C-zone extension ticket for a season pass valid for zones A and B since zone C is adjacent to season pass zone B. Here is a concrete example:
The proposed naming follows
neighbours
("Adjacent FARE ZONEs.") field onFareZone
element.The text was updated successfully, but these errors were encountered: