[OSRM-talk] How to get point location from NodeID?

Nikolay Redko nredko at gmail.com
Fri Jul 26 14:15:21 UTC 2013


Dennis,

Is there any chance to achieve this in current version?

I work in develop branch. 

Best regards,
Nikolay

Sent from iPhone.


26.07.2013, в 20:40, Dennis Luxen <dennis.luxen at gmail.com> написал(а):

> 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