Repository navigation
fix: Mapbox Arrival and Destinations assumptions - #3062
Conversation
There was a problem hiding this comment.
nit:
| * The first Intersection of the first step should only have 1 bearing and one "out" entry | |
| * The first Intersection of the first step should only have one "bearings" and one "out" entry |
There was a problem hiding this comment.
thanks done
There was a problem hiding this comment.
There is only job1, no job2? Maybe this comment should be removed, as it doesn't really help?
There was a problem hiding this comment.
removed outdfated comment
There was a problem hiding this comment.
I don't fully understand that. Why don't we copy the last element? The method is called fixFirstIntersectionDetail after all. We don't add a fixed version of the lat intersectionDetail here as well.
There was a problem hiding this comment.
moved the fixFirstIntersectionDetail one level up and it is now really doing only the first Intersection
boldtrn
left a comment
There was a problem hiding this comment.
Thanks for working on this and I agree, we should keep the results as close to the OSRM compatible equivalents as possible. I added a few remarks in the code that I think we should look at before merging this.
Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,
7ac06b1 to
99df45a
Compare
|
I think I adressed the comments, but the git fork got out of sync and I had to rewrite the PR. Sorry |
|
Are these changes compatible with the Maplibre SDK too? |
Yes they are, the change to the response format is pretty small as it only changes parts of the first and last intersection. |
|
Ok, thank you. |
We learned that there are some implicit assumptions about the structure of the Directions Reponse.
The Start has to have exactly one outgoing "entry" with a corresponding bearing, while the destination needs to have exactly one incoming "entry".
All test case setup should be done with "intersections" on, since bearings are mandatory for directions.