Skip to content

Add 'maxStopCountForMode' to the router config - #6383

Merged
optionsome merged 2 commits into
opentripplanner:dev-2.xfrom
HSLdevcom:mode-specific-maxstopcount
Jan 23, 2025
Merged

optionsome merged 2 commits into
opentripplanner:dev-2.xfrom
HSLdevcom:mode-specific-maxstopcount

Conversation

@VillePihlava

Copy link
Copy Markdown
Contributor

Summary

This PR adds a mode-specific version of the maxStopCount parameter (maxStopCountForMode) to the router config. This can be useful for setting higher limits for modes that can travel larger distances such as cars. Setting the parameter to a higher value has the downside of requiring more computation.

Issue

This is a follow-up PR related to issue #5875

Unit tests

No unit tests created, manual testing has been performed

Documentation

Changes to RouteRequest.md

@VillePihlava
VillePihlava requested a review from a team as a code owner January 14, 2025 14:17
@VillePihlava VillePihlava changed the title Add maxStopCountForMode to the router config Add 'maxStopCountForMode' to the router config Jan 14, 2025
@codecov

codecov Bot commented Jan 14, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.73%. Comparing base (d9398b6) to head (e179d02).
Report is 175 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6383      +/-   ##
=============================================
- Coverage      69.80%   69.73%   -0.08%     
- Complexity     17944    18017      +73     
=============================================
  Files           2046     2057      +11     
  Lines          76678    76981     +303     
  Branches        7830     7845      +15     
=============================================
+ Hits           53526    53680     +154     
- Misses         20411    20551     +140     
- Partials        2741     2750       +9     

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

@optionsome optionsome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add an example to the standalone router-config.json file.

@VillePihlava

Copy link
Copy Markdown
Contributor Author

Add an example to the standalone router-config.json file.

I added an example

@optionsome
optionsome self-requested a review January 21, 2025 10:02
@optionsome
optionsome merged commit aeac1d0 into opentripplanner:dev-2.x Jan 23, 2025
@optionsome
optionsome deleted the mode-specific-maxstopcount branch January 23, 2025 13:06
t2gran pushed a commit that referenced this pull request Jan 23, 2025
@t2gran t2gran added this to the 2.7 (next release) milestone Jan 29, 2025
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

Successfully merging this pull request may close these issues.

4 participants