<div dir="ltr"><div>Hello!</div><div><br></div><div>I'm writing my own plugin to OSRM.</div>Trying to get second node of the edge and it's location.<div>This doesn't work:</div><div><br></div><div><div>NodeID nodeID = startPhantom.edgeBasedNode;</div>
<div>for(StaticGraph<QueryEdge::EdgeData>::EdgeIterator edge = graph->BeginEdges(nodeID); edge < graph->EndEdges(nodeID); ++edge ) {</div><div><span class="" style="white-space:pre">       </span>const QueryEdge::EdgeData & data = graph->GetEdgeData(edge);</div>
<div><span class="" style="white-space:pre">    </span>const NodeID to = graph->GetTarget(edge);</div><div><span class="" style="white-space:pre">       </span>_Coordinate coord;</div><div><span class="" style="white-space:pre"> </span>searchEnginePtr->GetCoordinatesForNodeID(it->first, coord);</div>
<div>//here coord is some weird thing...</div><div>}</div><div><br></div><div>Can anybody help?</div><div>Thanks,</div><div>Nikolay</div><div><span class="" style="white-space:pre">             </span></div></div><div><br></div></div>