Skip to content

Add experimental support for GTFS Fares V2#4338

Merged
leonardehrenfried merged 74 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:fares-v2
Sep 1, 2022
Merged

Add experimental support for GTFS Fares V2#4338
leonardehrenfried merged 74 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:fares-v2

Conversation

@leonardehrenfried

@leonardehrenfried leonardehrenfried commented Jul 29, 2022

Copy link
Copy Markdown
Member

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

@leonardehrenfried leonardehrenfried force-pushed the fares-v2 branch 3 times, most recently from 11064cc to 1910d1d Compare August 22, 2022 14:48
Comment thread src/client/js/otp/modules/planner/Itinerary.js Outdated
Comment thread src/ext/java/org/opentripplanner/ext/fares/impl/GtfsFaresV2Service.java Outdated
Comment thread src/ext/java/org/opentripplanner/ext/fares/model/FareLegRule.java
Comment thread src/client/js/otp/modules/planner/Itinerary.js Outdated
hannesj
hannesj previously approved these changes Aug 24, 2022
Co-authored-by: Hannes Junnila <hannes.junnila@gmail.com>
@leonardehrenfried

Copy link
Copy Markdown
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
Copy Markdown
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.

@vesameskanen vesameskanen left a comment

Copy link
Copy Markdown
Contributor

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 A functional feature targeting the end user.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants