Filtering fare_products to agency #633
RideSchedules
started this conversation in
GTFS Fares
Replies: 1 comment 2 replies
-
|
@RideSchedules there have been attempts to include mechanisms that would limit fare products, mainly fare product/fare media behaviour. Currently, there is no direct attribute that would filter fares by agency only. What I can think of is the following:
In all cases, there always is a dependence on The Fares Implementation Guide is a good resource for how to define these fares. We can also improve the spec examples at some point. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am wondering what people contemplated about how to narrow version 2 fares to a single agency in agency.txt?
The GTFS specification allows for multiple agencies per .zip file, but agency_id is not an attribute in fares v2. Multiple agencies in the same file set, often completely unrelated, is common.
It does appear to be possible, but it would require networks.txt and route_networks.txt to map route_id to agency_id in routes.txt, which in turn would require a dependency on fare_leg_rules.txt.
I don't see a problem with that other than it is not obvious and prone to error if the required multiple mappings are not present.
A simple solution would be to include specific instructions in Best Practices or Data examples in the documentation area on how to a limit fare products to a single agency in a multi-agency file set.
With the specific instructions in the documentation, we could then rely on route_networks.txt and fare_leg_rules.txt to avoid publishing fare products for the wrong agency.
In practical terms, the inability to narrow fares to a specific agency is a big hole in the current Fares v2 scheme.
Beta Was this translation helpful? Give feedback.
All reactions