[GraphHopper] How to find all the roads leading around a point

Peter graphhopper at gmx.de
Fri Mar 6 07:24:24 UTC 2015


On 06.03.2015 07:13, Gp P wrote:
> As you can see above , i trying get all edges with distance 

you will need to use a graph exploration algorithm like Dijkstra with a
shortest weighting and specify the weight limit to the distance you want

> edgeIterator.setDistance(*distance*);

oh, that should throw an exception if called before 'next' as this sets
the distance for one specific edge not for the iterator

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150306/070fb949/attachment.html>


More information about the GraphHopper mailing list