<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div><div></div><div>Thanks Peter, that's fixed the issue. </div><div><br></div><div>Best regards, Phil</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Samsung Mobile</div></div></div> <br><br><br>-------- Original message --------<br>From: Peter <graphhopper@gmx.de> <br>Date: <br>To: graphhopper@openstreetmap.org <br>Subject: Re: [GraphHopper] Disconnected zero-degree nodes not being removed? <br> <br><br>
<div class="moz-cite-prefix"><div class="moz-cite-prefix">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.<br>
prepare.minOnewayNetworkSize=200<br>
<br>
It should then snap to other roads like graphhopper maps does:<br>
<a class="moz-txt-link-freetext" href="http://graphhopper.com/maps/?point=52.407995%2C-1.505722&point=52.410365%2C-1.49236">http://graphhopper.com/maps/?point=52.407995%2C-1.505722&point=52.410365%2C-1.49236</a><br>
<br>
Regards,<br>
Peter.<br>
<br>
On 14.08.2014 18:29, <a class="moz-txt-link-abbreviated" href="mailto:me@pgwelch.info">me@pgwelch.info</a> wrote:<br>
</div>
<blockquote cite="mid:cdc925839796022e4f610b6616ee054a@pgwelch.info" type="cite">
<p>Hi,</p>
<p>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.</p>
<p>When the graph was being built it output this information:<br>
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)</p>
<p>Which I presume means it has removed any dodgy disconnected
areas but didn't remove the zero-degree nodes I'm finding?</p>
<p>The following self-contained example tries to route but fails.</p>
<p>public static void noRouteExample(){<br>
// this is the problem position<br>
GHPoint a = new GHPoint(52.407995203838 ,-1.50572174886011);<br>
<br>
// the second position can be anywhere....<br>
GHPoint b = new GHPoint(52. ,-1.3); <br>
<br>
GraphHopper hopper = new GraphHopper().forDesktop();<br>
hopper.setInMemory(true);<br>
hopper.setGraphHopperLocation("C:\\Demo\\Graphhopper");<br>
hopper.importOrLoad();<br>
<br>
GHRequest req = new GHRequest(a,b);<br>
GHResponse rsp = hopper.route(req);<br>
<br>
System.out.println("Found = " + rsp.isFound());</p>
<p>}<br>
<br>
I've uploaded the built graph to
<a class="moz-txt-link-freetext" href="http://www.opendoorlogistics.com/wp-content/uploads/temp/europe_great-britain.zip">http://www.opendoorlogistics.com/wp-content/uploads/temp/europe_great-britain.zip</a></p>
<p>Any ideas where I'm going wrong? All help would be appreciated!</p>
<p>Many thanks</p>
<p>Phil</p>
<p> </p>
<div> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br></div>
</body>