<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">> It seems as it is areas with a lot
of one-directed streets that remain a problem. <br>
> What is the role of prepare.minOnewayNetworkSize? <br>
<br>
it removes exactly that one-way problem :)<br>
<br>
> I just realized that it is only available in 0.4 and not 0.3
as I am using. Or what else might be different from your setup for
the demo-api?<br>
<br>
GraphHopper Maps is using our Directions API where we run
0.4-SNAPSHOT, which is kind of stable but not yet polished
(feature complete) to be released.<br>
<br>
Regards,<br>
Peter<br>
<br>
On 17.12.2014 15:57, David Ödling wrote:<br>
</div>
<blockquote cite="mid:94FCC5D9-7596-4403-A2AE-BC706B43DBB1@me.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi Peter,
<div class=""><br class="">
</div>
<div class="">Thanks for the clarification! However, I, there are
still some areas in the middle of the city that do not work.</div>
<div class=""><br class="">
</div>
<div class="">I’ve increased the prepare.minNetworkSize to 1000
which seems to reduce the number of subnetworks down to one:</div>
<div class=""><br class="">
</div>
<div class="">edges: 1045141, nodes 847978, there were 8214
subnetworks. removed them => 26589 less nodes. Remaining
subnetworks:1</div>
<div class=""><br class="">
</div>
<div class="">It seems as it is areas with a lot of one-directed
streets that remain a problem. What is the role of
prepare.minOnewayNetworkSize? I just realized that it is only
available in 0.4 and not 0.3 as I am using. Or what else might
be different from your setup for the demo-api?</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class=""><br class="">
</div>
<div class="">David</div>
<div class=""><br class="">
</div>
<div class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">17 dec 2014 kl. 09:00 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">Hi David,<br class="">
<br class="">
more precise:<br class="">
<br class="">
<div class="">> prepare.minOnewayNetworkSize = 1</div>
<div class="">> prepare.minNetworkSize = 1<br
class="">
<br class="">
this both can be 200 and will remove all
disconnected roadnetworks with less than 200 nodes.<br
class="">
<br class="">
<div class="">> index.highResolution=10000</div>
<div class="">> index.maxRegionSearch=10000<br
class="">
<br class="">
this is not so good. For maximum speed use e.g.<br
class="">
<br class="">
<div class="">> index.highResolution=100</div>
<div class="">> index.maxRegionSearch=4<br
class="">
<br class="">
For max 'fault tolerance' use:<br class="">
<br class="">
<div class="">> index.highResolution=1000</div>
<div class="">> index.maxRegionSearch=8<br
class="">
<br class="">
which will search approx 1000m around the
query AND try around this location until it
reaches roughly 8*1000m!<br class="">
</div>
<br class="">
Regards,<br class="">
Peter<br class="">
</div>
<br class="">
</div>
<br class="">
</div>
<br class="">
On 16.12.2014 23:08, David Ödling wrote:<br class="">
</div>
<blockquote
cite="mid:69936A44-8293-497C-A8CC-8F612EF220C3@me.com"
type="cite" class="">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" class="">
<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 class="">
<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>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>