<div dir="ltr"><div><div><div><div>Now i have a different problem:<br></div>Is it possible that CH are not properly working in sub maps like bavaria (made from bayern.osm)?<br></div>I recognized strange phenomenons near the end of the map.<br>
</div>findClosest() finds some node and when i route to this node, i get a path with 0.0 length.<br></div><div>Is this a known problem or did i screw it up?<br></div><div><br></div><div>Thanks</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/10/14 Andreas Fischer <span dir="ltr"><<a href="mailto:fischer.andreas.atf@googlemail.com" target="_blank">fischer.andreas.atf@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you... that did it.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/14 Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Andeas,<br>
<br>
you'll have to do it via EdgeExplorer:<br>
<br>
EdgeExplorer explorer =
graph.createEdgeExplorer(/*optionalEdgeFilter*/);<br>
<br>
// new variable 'iter' not necessary, just to explain the concept<br>
EdgeIterator iter = explorer.setBaseNode(nodeId);<br>
while(iter.next()) {<br>
...<br>
}<br>
<br>
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<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Peter,<br>
<br>
</div>
Where did the Graph.getEdges(int nodeID) method go?<br>
</div>
How can i get all edges of a node in the current version?<br>
</div>
<br>
</div>
Thanks,<br>
Andreas<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>