-
Notifications
You must be signed in to change notification settings - Fork 151
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
GTFS Fares V2 Leg rules amount #132
Comments
Thanks for the detailed note. When setting up the schema for fare_leg_rules.txt, I only implemented the fields defined in the Fares v2 adopted as part of the GTFS spec on https://gtfs.org/schedule/reference/#fare_leg_rulestxt - it looks like "amount" is not included. Can you share your GTFS file with me so I can see what fields are in each field? |
I had implemented it as per this document https://docs.google.com/document/d/19j-f-wZ5C_kYXmkLBye1g42U-kvfSVgYLkkG5oyBauY/edit#heading=h.xcn48t8xbmxb. This is the latest updated draft as far as i know. |
It looks like a subset of fares v2 was accepted into the GTFS spec earlier this year, but not all files/fields. Still, I'll work on adding support for all of the fields as identified in the google doc and ping you when they are added. If you know of any agencies using all of these fields, let me know so I can try it out. |
Have a look at this https://docs.google.com/spreadsheets/d/1jpKjz6MbCD2XPhmIP11EDi-P2jMh7x2k-oHS-pLf2vI/edit#gid=890539561. You'll see Interline (MTC Bay Area), Maryland Department Of Transportation & the transit app (a consumer) uses it. |
Hey man,
Thanks for your quick response and sorting out GTFS Fares V2 for me.
I'm facing 1 issue when trying to get the results of
fare_leg_rules
, it doesn't return anyamount
ormin_amount
ormax_amount
.When i run
await getFareLegRules({});
I get back something like this;
Without
amount
, even though it's in thefare_leg_rules.txt
file.I tried to add the
fields
as the 2nd argument togetFareLegRules
, something like thisawait getFareLegRules({}, ['amount']);
but there's still nothing. I even tried to run the raw SQL query. But is still don't get those fields.The text was updated successfully, but these errors were encountered: