[GraphHopper] Get all edges of a Node?
Andreas Fischer
fischer.andreas.atf at googlemail.com
Mon Oct 14 14:01:55 UTC 2013
Now i have a different problem:
Is it possible that CH are not properly working in sub maps like bavaria
(made from bayern.osm)?
I recognized strange phenomenons near the end of the map.
findClosest() finds some node and when i route to this node, i get a path
with 0.0 length.
Is this a known problem or did i screw it up?
Thanks
2013/10/14 Andreas Fischer <fischer.andreas.atf at googlemail.com>
> Thank you... that did it.
>
>
> 2013/10/14 Peter K <peathal at yahoo.de>
>
>> Hi Andeas,
>>
>> you'll have to do it via EdgeExplorer:
>>
>> EdgeExplorer explorer = graph.createEdgeExplorer(/*optionalEdgeFilter*/);
>>
>> // new variable 'iter' not necessary, just to explain the concept
>> EdgeIterator iter = explorer.setBaseNode(nodeId);
>> while(iter.next()) {
>> ...
>> }
>>
>> Reuse edgeExplorer as often as you can (note: not thread safe!) and just
>> set the new base node. With this change our none-CH algorithms are approx.
>> 8% faster. Usage -> see tests or XFirstSearch
>>
>> Regards,
>> Peter.
>>
>> Hi Peter,
>>
>> Where did the Graph.getEdges(int nodeID) method go?
>> How can i get all edges of a node in the current version?
>>
>> Thanks,
>> Andreas
>>
>>
>> _______________________________________________
>> GraphHopper mailing listGraphHopper at openstreetmap.orghttps://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131014/00e16f42/attachment.html>
More information about the GraphHopper
mailing list