Skip to content

Return correct heuristic values, when constrained transfers is turned on - #3841

Merged
hannesj merged 6 commits into
opentripplanner:dev-2.xfrom
entur:otp2_heuristic_test
Feb 3, 2022
Merged

hannesj merged 6 commits into
opentripplanner:dev-2.xfrom
entur:otp2_heuristic_test

Conversation

@hannesj

@hannesj hannesj commented Jan 31, 2022

Copy link
Copy Markdown
Contributor

Summary

As described in #3835 (comment), the Stops implementation of BestNumberOfTransfers returns an invalid number of transfers, making the path pruning excessive. This fixes the issue and adds a module test for making sure the heuristics are calculated correctly.

Unit tests

Added module test for heuristics

Code style

Documentation

None needed

Changelog

The changelog file
is generated from the pull-request title, make sure the title describe the feature or issue fixed.
To exclude the PR from the changelog add [changelog skip] in the title.

@hannesj
hannesj requested a review from a team as a code owner January 31, 2022 10:01
@hannesj
hannesj requested a review from t2gran January 31, 2022 10:01
@hannesj hannesj added !Bug Apply to issues describing a bug and PRs witch fixes it. Entur Test This is currently being tested at Entur labels Jan 31, 2022
@hannesj hannesj added this to the 2.1 milestone Jan 31, 2022
@hannesj

hannesj commented Jan 31, 2022

Copy link
Copy Markdown
Contributor Author

This needs an update in TestTransitData#getValidTransitDataEndTime, in order to account for egress times in order to make the heuristic request work with TestTransitData

@hannesj
hannesj marked this pull request as draft January 31, 2022 21:04
@hannesj
hannesj force-pushed the otp2_heuristic_test branch from 23b1210 to 6627bea Compare February 1, 2022 14:16
@hannesj
hannesj marked this pull request as ready for review February 1, 2022 14:24
@hannesj
hannesj force-pushed the otp2_heuristic_test branch from 6627bea to b85ab44 Compare February 1, 2022 14:24
@hannesj
hannesj merged commit f1afb1c into opentripplanner:dev-2.x Feb 3, 2022
@hannesj
hannesj deleted the otp2_heuristic_test branch February 3, 2022 14:39
t2gran pushed a commit that referenced this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it. Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants