<div dir="ltr"><div><div><div><div>Let's say i implement a new routing weight calculator<br></div>and i want to access the node via the given EdgeIteratorState in getWeight(EdgeIteratorState iter).<br></div>It is not possible to access the node via the graph, because there is no graph given.<br>
</div>That's why it would be more convenient if the iterator holds a pointer to it's graph to have access to any information at any time!<br><br></div>Thanks for the fast answer!<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/9/26 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">
Hi Andreas,<br>
<div class="im"><br>
> Hi Peter,<br>
><br>
> Is it possible to access the latitude/longitude of the base node or<br>
> adjacent node via a given edge?<br>
</div>you can do<br>
graph.getLatitude(iter.getBaseNode())<br>
<div class="im"><br>
> Wouldn't it be convenient when the EdgeIterator knows it's graph?<br>
<br>
</div>Why would you need that?<br>
<br>
Regards,<br>
Peter.<br>
<br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
</blockquote></div><br></div>