To revisit/revive this proposal:
It is true that the Google Transit importer does (currently) require an agency_id field in fare_attributes.txt for multi-agency feeds, however this is not compliant with the spec and is something we can work on changing.
Because any feeds that have an agency specified in fare_attributes already have those records as dataset-unique, it should not cause conflicts or bad data if we were to stop looking at that column.
It is a valid point that it might be possible to have cross-agency tickets/fares in a multi agency feed. To do this we need to remove the restriction on having this column in fare_attributes.
Here is the only case that I can think of that might affect existing data (but not sure if it does):
(current non-spec but used by Google) fare_attributes.txt
fare_id,agency_id,price,currency_type,payment_method,transfers,transfer_duration
1,AGENCY1,0.25,USD,0,0,0
2,AGENCY2,0.50,USD,0,0,0
fare_rules.txt
fare_id,route_id,origin_id,destination_id,contains_id
1,,ZONE1,ZONE2,
2,,ZONE1,ZONE2,
In such a case, a trip between ZONE1 and ZONE2 on a service by AGENCY1 would be .25, where as the same trip on a AGENCY2 service would be .50. If Google stopped using agency_id entirely in fare_attributes.txt, this would lead to incorrect calculations.
So, I propose the following:
- Adding an optional field to fare_rules.txt for agency_id. (as previously mentioned). When specified, the fare_rule would only apply to trips on that agency. This would be redundant for route_id based fares, but it would allow for zone-fares to be locked down to an agency. (If not specified, it means the fare rule could apply to any agency trips).
- Google will begin supporting this, but for back-wards compatibility, will consider fare_attributes that are locked to an agency to imply the agency_id in associate fare_rules columns (as mentioned above). (Or we will check to see if this impacts any existing feeds and take action directly.)
Does that work for everyone?
Jehiah, I understand your concern, but the benefits of multiple agency feeds do include some very valid points (fares, transfers, etc.). I think that a possible work around for you could be to write a script that simply splits multi agency feeds into smaller single-agency feeds. However, you would lose these cross-agency features.
Thanks,
Clancy
--
Clancy Childs
Sales Engineer
Google UK
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902
This information contained in this email may be confidential or
privileged. If you received this communication by mistake, please erase
all copies and attachments and let the sender know that it went to the
wrong person.
The above terms reflect a potential business arrangement, are provided
solely as a basis for further discussion, and are not intended to be
and do not constitute a legally binding obligation. No legally binding
obligations will be created, implied, or inferred until an agreement in
final form is executed in writing by all parties involved