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

BostonInRoutingFareCalculator incorrectly calculates fare for Bus -> Subway -> Subway #588

Open
mattwigway opened this issue Apr 12, 2020 · 4 comments

Comments

@mattwigway
Copy link
Contributor

BostonInRoutingFareCalculator is reporting a fare for Route 442 (local bus) to Blue Line to Orange Line as costing $4.50, even though the bus to blue line transfer is a $0.55 upgrade to the $1.70 local bus fare, and the subsequent orange line transfer is free. It appears that we are only considering behond-the-gates transfers as a possibility when the original transfer allowance is from the subway, not from a local bus.

mattwigway added a commit to mattwigway/r5 that referenced this issue Apr 12, 2020
mattwigway added a commit to mattwigway/r5 that referenced this issue Apr 12, 2020
@ansoncfit
Copy link
Member

Thanks for reporting. Does the suggested fix correctly handle local bus to commuter rail to subway?

@mattwigway
Copy link
Contributor Author

Yes it does - issuing is kept separately from previous, and previous is only used for subway to subway transfers. For example, this route (link to Fareto running on localhost just to record parameters) takes local 436 to the Newburyport/Rockport line at Lynn to the green line at North Station, and correctly is charging $9.00: $1.70 for the bus, $6.75 Zone 2 from Lynn to N Station, and a $0.55 upgrade to the subway.

image

@mattwigway
Copy link
Contributor Author

Or this similar route which again takes local 436 to Lynn, Newburyport/Rockport to N Station, Green to Park, and Red to Broadway for $9.

image

@mattwigway
Copy link
Contributor Author

Or this similar route which shows that bus-subway-bus still works: local bus to Lynn, N/R to N Station, Orange to Tufts, 9 to Southie, also $9.

image

mattwigway added a commit to mattwigway/r5 that referenced this issue Nov 13, 2020
mattwigway added a commit to mattwigway/r5 that referenced this issue Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants