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

Add experimental support for GTFS Fares V2 #4338

Merged
merged 74 commits into from
Sep 1, 2022

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Jul 29, 2022

Summary

Adds support for recently added GTFS Fares V2.

The full (unmerged) spec is very large but this PR only implements the part that is in the mainline GTFS repo plus a few additions. As of this PR, the list of supported features is:

  • fare products
  • fare containers
  • rider categories
  • fare leg rules
    • based on network
    • based duration
    • based on area

There are more features that I want to implement, namely fare_transfer_rules, but they will come in a later PR.

TODO before merge

  • Sandbox documentation
  • Restore Fares V1 UI in debug client

Issue

n/a

Unit tests

Lots of tests added.

Documentation

added

hannesj
hannesj previously approved these changes Aug 24, 2022
Co-authored-by: Hannes Junnila <hannes.junnila@gmail.com>
@leonardehrenfried
Copy link
Member Author

@vesameskanen Do you think you can provide a review for this PR? If not let us know and I will ask someone else.

@vesameskanen
Copy link
Contributor

Yes, working on it right now. I am going to test the feature by remodeling HSL fares into V2 format, in order to understand better how the setup works in real life. This final test should be ready by tomorrow.

Copy link
Contributor

@vesameskanen vesameskanen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current implementation does not seem to have enough fares v2 features for easy implementation of ordinary zone based ticketing, but is a good start for further development.

@leonardehrenfried leonardehrenfried merged commit 21b89e9 into opentripplanner:dev-2.x Sep 1, 2022
t2gran pushed a commit that referenced this pull request Sep 1, 2022
t2gran pushed a commit that referenced this pull request Sep 1, 2022
@leonardehrenfried leonardehrenfried deleted the fares-v2 branch September 1, 2022 06:29
mbsalvatore pushed a commit to camsys/OpenTripPlanner that referenced this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump serialization id Add this label if you want the serialization id automatically bumped after merging the PR New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants