Skip to content

fix wrong mode in navigation steps - #3207

Merged
karussell merged 5 commits into
graphhopper:masterfrom
binora:bugfix/navigation_mode
Oct 14, 2025
Merged

karussell merged 5 commits into
graphhopper:masterfrom
binora:bugfix/navigation_mode

Conversation

@binora

@binora binora commented Oct 12, 2025

Copy link
Copy Markdown
Contributor

Fixes #3206 . The idea here is to add mode to DistanceConfig class so as to leverage existing logic for mode determination. Please let me know if you have a different approach in mind.

@karussell

Copy link
Copy Markdown
Member

Thanks for this! Could you reduce the testing code a bit? E.g. to just a single test that the "driving" is fixed to "walking" and "cycling"? (usually I'm for many tests but in this case you'd only test the switch statement, I think :) )

@karussell karussell added the bug label Oct 13, 2025
@karussell
karussell merged commit bbddd8c into graphhopper:master Oct 14, 2025
@karussell karussell added this to the 11.0 milestone Oct 14, 2025
@binora

binora commented Oct 14, 2025

Copy link
Copy Markdown
Contributor Author

sorry I missed this. thanks for helping out!

@karussell

Copy link
Copy Markdown
Member

No worries. A new release is coming out and I wanted to have this PR in there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/navigate reports incorrect mode

2 participants