Skip to content
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] Add rider_categories.txt #511

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tzujenchanmbd
Copy link
Collaborator

@tzujenchanmbd tzujenchanmbd commented Oct 16, 2024

The rider_categories.txt file is part of the GTFS-Fares v2 proposal, aimed at modeling rider categories that are eligible for certain fares.

In the August and September meetings, the working group reached the following consensus:

  • rider_category_id will be referenced in fare_products.txt
  • Not include min_age and max_age fields for now
  • Add a field to indicate the default rider category

Changes in this PR

  • Add rider_categories.txt file
  • Add fare_products.rider_category_id field and update the primary key of fare_products.txt
  • Add content to the description of fare_product_id

For previous discussions please see the working group meeting note
Comments and questions welcome!

Side note: Currently the fares working group is primarily discussing fare use cases. However, in the future this file may be used for use cases such as service eligibility.

@tzujenchanmbd tzujenchanmbd added Extension: GTFS-Fares Issues and Pull Requests that focus on GTFS-Fares Extension Change: Addition New function proposed to the specification. Support: Needs Review Needs support to review proposal. labels Oct 16, 2024
@tzujenchanmbd tzujenchanmbd linked an issue Oct 16, 2024 that may be closed by this pull request
gtfs/spec/en/reference.md Outdated Show resolved Hide resolved
@tzujenchanmbd
Copy link
Collaborator Author

Quick updates:

@sberkley
Copy link

sberkley commented Jan 9, 2025

Nice. Sound Transit has a semi-complete production of Fares v2 data that we'll be making fully complete in the next couple months. We can add rider_categories.txt as well since it applies to several of our fare products.

@drewda
Copy link

drewda commented Jan 9, 2025

Hi @tzujenchanmbd, the SF Bay Area Regional Feed includes a rider_categories.txt file:

rider_category_id,rider_category_name,min_age,max_age,eligibility_url
adult,Adult (18-65),18,65,
adult-2,Adult,,,
youth,Youth (5-18),5,18,
youth-2,Youth (6-18),6,18,
child,Child (Under 5),0,4,
child-2,Child (Under 6),0,5,
smd,Senior,65,,
smd,Person with disabilities,,,
smd,Medicare recipient,,,
smdy,Senior,65,,
smdy,Person with disabilities,,,
smdy,Medicare recipient,,,
smdy,Youth,5,18,
AM:discount,Capitol Corridor (Disabled),,,https://www.capitolcorridor.org/disabled-passenger-discount/
AM:discount,Capitol Corridor (Senior),62,,https://www.capitolcorridor.org/senior-discounts/
MA:muir-youth,Marin Transit (15 and under),,15,
SR:veteran,Santa Rosa CityBus (U.S. Veteran),,,https://srcity.org/1658/Fares
ST:super-senior,SolTrans (Super Senior),80,,
AF:senior,Angel Island Tiburon Ferry (Senior),65,,
AF:child,Angel Island Tiburon Ferry (Child),6,12,
AF:small-child,Angel Island Tiburon Ferry (Small Child),3,5,
AF:toddler,Angel Island Tiburon Ferry (Toddler),,2,
AF:adult,Angel Island Tiburon Ferry (Adult),13,64,

@tzujenchanmbd
Copy link
Collaborator Author

Thanks @sberkley & @drewda!

@drewda any plan to update the file to include the is_default_fare_category field?

@drewda
Copy link

drewda commented Jan 14, 2025

@tzujenchanmbd yes, we can add the is_default_fare_category column when this PR is adopted

Also in case it's useful to others, we maintain a list of the Fares-v2 tables in the SF Bay Area Regional Feed, which we can update as the remaining proposed tables are adopted: https://www.interline.io/blog/mtc-regional-gtfs-feed-fares-updates/#gtfs-fares-v2-base-implementation-and-future-additions-to-the-specification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Change: Addition New function proposed to the specification. Extension: GTFS-Fares Issues and Pull Requests that focus on GTFS-Fares Extension Support: Needs Review Needs support to review proposal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add rider_category_id to fare_products.txt
5 participants