Repository navigation
fix: enable last intersection of last step before a via point - #3176
Conversation
There was a problem hiding this comment.
The comments should be updated as well :)
There was a problem hiding this comment.
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.
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.
boldtrn
left a comment
There was a problem hiding this comment.
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.
c5d43e1 to
5631847
Compare
boldtrn
left a comment
There was a problem hiding this comment.
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
5631847 to
86213ce
Compare
|
Rebased and fixed an edge case |
| request.addPoint(new GHPoint(42.505144, 1.526113)); | ||
| request.addPoint(new GHPoint(42.50529, 1.527218)); | ||
| request.setProfile(profile); | ||
| request.setProfile(profile).setPathDetails(Collections.singletonList("intersection")); |
There was a problem hiding this comment.
minor: can you check the formatting here and elsewhere in this file?
|
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? |
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) |
|
Sorry, I am not sure why this slipped through. And agree to @boldtrn , it shouldn't have a modifier. Looking into why that happend |
|
Hm, this is now just as it was before the merge of this PR: |
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. |
|
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 |
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 ?