Replies: 1 comment
-
Hi! The short answer as I understand is: Why? What I've learned on osrm prepare procedure is:
I found that the order of nodes can be weird to see, but as we said before, geometry is not a equals to node list. It instead lists the OSM node IDs at the boundaries of each route segment OSRM calculates, often based on the OSM graph, not on the polyline geometry. It's possible (and common) for the same node to appear multiple times, especially if the algorithm splits the way at that node for different logical graph edges (e.g., U-turns, intersections, or way membership). In your case, i found only one position, that really can looks weird - a presence of 202132925 node at the beginnig of node list after 11074276640. For 11074276640, that appears so many times it seems, that it is due to virtual nodes and segments that OSRM created on preprocessing stage and the 11074276640 used as some mark or segment boundary on this virtual nodes/segments ( i've mention this process early in internal edge splitting ). Seems like that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running into some strange behavior regarding nodes that I can't find a great explanation for.
When I query with annotations on, a lot of times I will get duplicated node ids with geometries that don't match each other.
For example when querying ...driving/...?annotations=true&geometries=geojson&overview=full
I get 9/19 unique nodes: [A, A, B, A, A, C, A, A, A, D, A, A, E, F, F, G, F, H, I] and 19/19 unique Geometries
Plotting and color coding for node id I get a strange looking result that shows the same node appearing at different locations sometimes disjoint from one another. One of these locations does match the location associated with the node at openstreetmap.org but the rest are a mystery to me.
Someone who knows how the annotations work, please help me out!
Beta Was this translation helpful? Give feedback.
All reactions