[GraphHopper] Disconnected zero-degree nodes not being removed?
Peter
graphhopper at gmx.de
Mon Aug 18 08:24:45 UTC 2014
get the errors from the ghrespond object and see what is going wrong.
probably it is due to disconnected area (route not found), then you can
remove such area via e.g.
prepare.minOnewayNetworkSize=200
It should then snap to other roads like graphhopper maps does:
http://graphhopper.com/maps/?point=52.407995%2C-1.505722&point=52.410365%2C-1.49236
Regards,
Peter.
On 14.08.2014 18:29, me at pgwelch.info wrote:
>
> Hi,
>
> I've built a graphhopper graph for Great Britain following the
> instructions and calling ./graphhopper.sh web europe_great-britain.osm
> from cygwin. The graph builds fine. However I'm finding when I try to
> create routes between 150 points in the UK then 2 of them - both
> mainland - don't route from. The rest route fine. Following the
> Graphopper code through for one of the points, I think its snapping to
> a node with no edges, which is why it won't route. I'm using the
> latest code.
>
> When the graph was being built it output this information:
> 2014-08-14 16:36:30,849 [main] INFO
> routing.util.PrepareRoutingSubnetworks - optimize to remove
> subnetworks (49285), zero-degree-nodes (0),
> unvisited-dead-end-nodes(0), maxEdges/node (15)
>
> Which I presume means it has removed any dodgy disconnected areas but
> didn't remove the zero-degree nodes I'm finding?
>
> The following self-contained example tries to route but fails.
>
> public static void noRouteExample(){
> // this is the problem position
> GHPoint a = new GHPoint(52.407995203838 ,-1.50572174886011);
>
> // the second position can be anywhere....
> GHPoint b = new GHPoint(52. ,-1.3);
>
> GraphHopper hopper = new GraphHopper().forDesktop();
> hopper.setInMemory(true);
> hopper.setGraphHopperLocation("C:\\Demo\\Graphhopper");
> hopper.importOrLoad();
>
> GHRequest req = new GHRequest(a,b);
> GHResponse rsp = hopper.route(req);
>
> System.out.println("Found = " + rsp.isFound());
>
> }
>
> I've uploaded the built graph to
> http://www.opendoorlogistics.com/wp-content/uploads/temp/europe_great-britain.zip
>
> Any ideas where I'm going wrong? All help would be appreciated!
>
> Many thanks
>
> Phil
>
>
>
>
>
>
> _______________________________________________
> 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/20140818/efbd9c9b/attachment.html>
More information about the GraphHopper
mailing list