[OSRM-talk] How to get point location from NodeID?
Dennis Luxen
dennis.luxen at gmail.com
Fri Jul 26 13:40:53 UTC 2013
It is best at this point to wait a couple of days for an upcoming update that will solve this issue.
--Dennis
Am 26.07.2013 um 15:17 schrieb Nikolay Redko <nredko at gmail.com>:
> Hello!
>
> I'm writing my own plugin to OSRM.
> Trying to get second node of the edge and it's location.
> This doesn't work:
>
> NodeID nodeID = startPhantom.edgeBasedNode;
> for(StaticGraph<QueryEdge::EdgeData>::EdgeIterator edge = graph->BeginEdges(nodeID); edge < graph->EndEdges(nodeID); ++edge ) {
> const QueryEdge::EdgeData & data = graph->GetEdgeData(edge);
> const NodeID to = graph->GetTarget(edge);
> _Coordinate coord;
> searchEnginePtr->GetCoordinatesForNodeID(it->first, coord);
> //here coord is some weird thing...
> }
>
> Can anybody help?
> Thanks,
> Nikolay
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk
More information about the OSRM-talk
mailing list