<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi David,<br>
<br>
more precise:<br>
<br>
<div class="">> prepare.minOnewayNetworkSize = 1</div>
<div class="">> prepare.minNetworkSize = 1<br>
<br>
this both can be 200 and will remove all disconnected
roadnetworks with less than 200 nodes.<br>
<br>
<div class="">> index.highResolution=10000</div>
<div class="">> index.maxRegionSearch=10000<br>
<br>
this is not so good. For maximum speed use e.g.<br>
<br>
<div class="">> index.highResolution=100</div>
<div class="">> index.maxRegionSearch=4<br>
<br>
For max 'fault tolerance' use:<br>
<br>
<div class="">> index.highResolution=1000</div>
<div class="">> index.maxRegionSearch=8<br>
<br>
which will search approx 1000m around the query AND try
around this location until it reaches roughly 8*1000m!<br>
</div>
<br>
Regards,<br>
Peter<br>
</div>
<br>
</div>
<br>
</div>
<br>
On 16.12.2014 23:08, David Ödling wrote:<br>
</div>
<blockquote cite="mid:69936A44-8293-497C-A8CC-8F612EF220C3@me.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="">Looks good, but having played around with the
settings I still do not get them to work. My current config
looks as follows:</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">prepare.chWeighting=fastest</div>
<div class="">prepare.minOnewayNetworkSize = 1</div>
<div class="">prepare.minNetworkSize = 1</div>
<div class="">graph.flagEncoders=car</div>
<div class="">index.highResolution=10000</div>
<div class="">index.maxRegionSearch=10000</div>
<div class="">routing.defaultAlgorithm=dijkstrabi</div>
</div>
<div class=""><br class="">
</div>
<div class="">I believe I’m doing something wrong as the demo-api
manages all the routes. </div>
<div class=""><br class="">
</div>
<div class="">I’’m thankful for all suggestions! </div>
<div class=""><br class="">
</div>
<div class="">//</div>
<div class=""><br class="">
</div>
<div class="">David</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">16 dec 2014 kl. 15:08 skrev Peter <<a
moz-do-not-send="true" href="mailto:graphhopper@gmx.de"
class="">graphhopper@gmx.de</a>>:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
<div class="moz-cite-prefix">See if this answer helps:<br
class="">
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://stackoverflow.com/a/26433076/194609">http://stackoverflow.com/a/26433076/194609</a><br
class="">
<br class="">
Peter<br class="">
<br class="">
On 16.12.2014 15:03, David Ödling wrote:<br class="">
</div>
<blockquote
cite="mid:CA466382-82CF-4D07-A786-16ACC4B09B42@me.com"
type="cite" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" class="">
<br class="">
Hi!
<div class="">I have encountered a problem in finding
routes between a few number of addresses. Most work
well, but it seems like some addresses on one way
streets and in areas with restricted access it fails
to find a route. I have implemented a quick-fix for
this by adjusting the coordinates in a outgoing
spiral until a route is found. But this is not a good
solution in densely populated areas, so, is there any
better solution?</div>
<div class=""><br class="">
</div>
<div class="">Hopefully, I’m simply doing something
wrong by getting this problem, as I do not get the
same problem on the test-server:</div>
<div class=""><a moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=10%20Lilla%20Nygatan,%2011129,%20Stockholm,%20Sweden&point=10A%20Arsenalsgatan,%20103%2027,%20Stockholm,%20Sweden&layer=Lyrk"
class="">https://graphhopper.com/maps/?point=10%20Lilla%20Nygatan%2C%2011129%2C%20Stockholm%2C%20Sweden&point=10A%20Arsenalsgatan%2C%20103%2027%2C%20Stockholm%2C%20Sweden&layer=Lyrk</a></div>
<div class=""><br class="">
</div>
<div class="">In essence my setup looks like this:</div>
<div class=""><br class="">
</div>
<div class="">Init:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""> hopper = new
CustomGraphHopper(settings);</div>
<div class="">
hopper.setPreciseIndexResolution(1000);</div>
<div class=""> hopper.forDesktop();</div>
<div class=""> hopper.setInMemory(true);</div>
<div class=""> hopper.setOSMFile(osmPath);</div>
<div class="">
hopper.setGraphHopperLocation("GraphData");</div>
<div class=""> hopper.setEncodingManager(new
EncodingManager("car"));</div>
<div class=""> hopper.importOrLoad();</div>
</div>
<div class=""><br class="">
</div>
<div class="">Req: </div>
<div class=""><br class="">
</div>
<div class="">
<div class=""> GHRequest req = new
GHRequest(graph.getNode(from).address.getLatitude(),
graph.getNode(from).address.getLongitude(),
graph.getNode(to).address.getLatitude(),
graph.getNode(to).address.getLongitude())</div>
<div class=""> .setWeighting("custom")</div>
<div class="">
.setLocale("SE").setLocale("sv_SE")</div>
<div class="">
.setVehicle("car").setAlgorithm("dijkstrabi");</div>
<div class=""> GHResponse rsp =
hopper.route(req);</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thanks in advance, </div>
<div class=""><br class="">
</div>
<div class="">David</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre class="" wrap="">_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">
GraphHopper mailing list<br class="">
<a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org" class="">GraphHopper@openstreetmap.org</a><br
class="">
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
<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>
</body>
</html>