Skip to content

Link with larger radius if we don't find results for all of the requested modes#7384

Open
optionsome wants to merge 3 commits intoopentripplanner:dev-2.xfrom
HSLdevcom:fix-multimode-linking-expansion
Open

Link with larger radius if we don't find results for all of the requested modes#7384
optionsome wants to merge 3 commits intoopentripplanner:dev-2.xfrom
HSLdevcom:fix-multimode-linking-expansion

Conversation

@optionsome
Copy link
Member

Summary

Linking with larger radius is done if we don't find results for all of the requested modes. Previously we only did it when we didn't find any results (which was a regression).

This is built on top of #7383

Issue

No issue, this is related to problems with existing multi-mode linking support that we started to use in #6972

Unit tests

Added and updated

Documentation

Added some more javadoc

Changelog

From title

@optionsome optionsome added this to the 2.9 (next release) milestone Mar 5, 2026
@optionsome optionsome requested a review from a team as a code owner March 5, 2026 13:56
@optionsome optionsome added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Mar 5, 2026
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 64.11290% with 89 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.91%. Comparing base (5fa4d25) to head (4bd26e7).

Files with missing lines Patch % Lines
...lanner/street/model/StreetTraversalPermission.java 0.00% 20 Missing ⚠️
...r/street/model/edge/StreetStationCentroidLink.java 0.00% 9 Missing ⚠️
.../vehiclerental/street/StreetVehicleRentalLink.java 0.00% 7 Missing ⚠️
.../street/model/edge/BoardingLocationToStopLink.java 0.00% 7 Missing ⚠️
...r/street/model/edge/StreetTransitEntranceLink.java 0.00% 7 Missing ⚠️
...anner/street/model/edge/StreetTransitStopLink.java 0.00% 7 Missing ⚠️
.../opentripplanner/routing/linking/VertexLinker.java 93.25% 2 Missing and 4 partials ⚠️
...er/street/model/edge/StreetVehicleParkingLink.java 14.28% 4 Missing and 2 partials ⚠️
...opentripplanner/street/search/TraverseModeSet.java 0.00% 6 Missing ⚠️
...aph_builder/module/OsmBoardingLocationsModule.java 75.00% 2 Missing and 2 partials ⚠️
... and 5 more
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #7384      +/-   ##
=============================================
- Coverage      70.96%   70.91%   -0.05%     
- Complexity     20806    20834      +28     
=============================================
  Files           2327     2328       +1     
  Lines          86539    86647     +108     
  Branches        8572     8595      +23     
=============================================
+ Hits           61409    61450      +41     
- Misses         22165    22225      +60     
- Partials        2965     2972       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@optionsome optionsome force-pushed the fix-multimode-linking-expansion branch from eb051ce to 4bd26e7 Compare March 5, 2026 15:17
* for request scoped linking when the first attempt didn't find
* link for all the requested modes.
*/
public DisposableEdgeCollection linkVertexForRequest(
Copy link
Member

Choose a reason for hiding this comment

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

Can it be package-private?

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants