[GraphHopper] EdgeIterator, Node-Information
Andreas Fischer
fischer.andreas.atf at googlemail.com
Thu Sep 26 13:21:13 UTC 2013
Let's say i implement a new routing weight calculator
and i want to access the node via the given EdgeIteratorState in
getWeight(EdgeIteratorState iter).
It is not possible to access the node via the graph, because there is no
graph given.
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!
Thanks for the fast answer!
2013/9/26 Peter K <peathal at yahoo.de>
> Hi Andreas,
>
> > Hi Peter,
> >
> > Is it possible to access the latitude/longitude of the base node or
> > adjacent node via a given edge?
> you can do
> graph.getLatitude(iter.getBaseNode())
>
> > Wouldn't it be convenient when the EdgeIterator knows it's graph?
>
> Why would you need that?
>
> Regards,
> Peter.
>
> _______________________________________________
> 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/20130926/54d07c07/attachment.html>
More information about the GraphHopper
mailing list