- Notifications
You must be signed in to change notification settings - Fork1.9k
fix: enable last intersection of last step before a via point#3176
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| /** | ||
| * fix the first IntersectionDetail. | ||
| * <p> | ||
| * The first Intersection of the first step should only have one "bearings" and one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The comments should be updated as well :)
| * "out" entry | ||
| */ | ||
| privatestaticvoidfixFirstIntersectionDetail(List<PathDetail>intersectionDetails) { | ||
| privatestaticvoidfixDepartIntersectionDetail(List<PathDetail>intersectionDetails,intpos) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I don't like the name pos, can you rename this to something that explains what pos is?
boldtrn left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I did setup this PR on a test server and tried to use the routing in combination with Maplibre-Navigation-Android. This worked fine as well, so we haven't broken anything here as well.
navigation/src/main/java/com/graphhopper/navigation/NavigateResponseConverter.javaShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
boldtrn left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Sorry, I just found this issue that can occur in some situations when using Maplibre Navigation, this can lead to a nullpointer because the modifier is missing.
boldtrn left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, just gave this another try with Maplibre after the latest change.
* announce ferry in instructions* extra instruction sign needed* Update maps to 34acd30e* fix* ensure never NPE* use mode==ferry for mapbox response
OlafFlebbeBosch commentedJul 22, 2025
Rebased and fixed an edge case |
| request.addPoint(newGHPoint(42.505144,1.526113)); | ||
| request.addPoint(newGHPoint(42.50529,1.527218)); | ||
| request.setProfile(profile); | ||
| request.setProfile(profile).setPathDetails(Collections.singletonList("intersection")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
minor: can you check the formatting here and elsewhere in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
done
karussell commentedAug 7, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There is a now test failure in master. And if I change it runs fine. Is this expected or did I something wrong when merging? |
boldtrn commentedAug 7, 2025
Actually depart usually has no modifier IIRC. I am not sure this will break anything, if there is a modifier - I would not expect it to (at least for Maplibre I would expect the impact to be rather low) |
OlafFlebbeBosch commentedAug 8, 2025
Sorry, I am not sure why this slipped through. And agree to@boldtrn , it shouldn't have a modifier. Looking into why that happend |
karussell commentedAug 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hm, this is now just as it was before the merge of this PR: graphhopper/navigation/src/test/java/com/graphhopper/navigation/NavigateResponseConverterTest.java Line 85 ina148d51
|
boldtrn commentedAug 8, 2025
Ah sorry, I must have missed this, OK, if we have always added a modifier here, then this is probably not an issue, so all good from my side then. |
oflebbe commentedAug 8, 2025
Looks like i introduced the change with a previous attempt fixing and somehow the test didnt trigger w/o a mvn clean on my side |
Uh oh!
There was an error while loading.Please reload this page.
We noticed that intersections are not populated on the arrival intersection on both OSRM and mapbox directions creating issues to pass VIA points in navigation.
@boldtrn would you please have a look ?