<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,<br>
<br>
there is a simplification going on at import time:<br>
hopper.setWayPointMaxDistance or via config:
osmreader.wayPointMaxDistance<br>
<br>
and additionally at query time:<br>
setSimplifyRequest(true/false) or with more detail:
"douglas.minprecision" as ghRequest hint.<br>
<br>
The defaults should be good enough and e.g. it will be avoided at
query time for desktop and mobile usage. See the GraphHopper
class.<br>
<br>
Kind Regards,<br>
Peter.<br>
<br>
<br>
On 05.08.2014 08:42, Timothy Lehner wrote:<br>
</div>
<blockquote
cite="mid:CAF_FyGcYRyowLQbi-UDCd0WmYoME0sG=nqJQBwx1zGaU_dyAuA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
What is the best way to suppress the Douglas-Peucker filter?
<div>If I am using the routing in one of my java applications,
and I open it using:</div>
<div><br>
</div>
<div>
<div style="font-family:arial,sans-serif;font-size:13px">
hopper = new GraphHopper().</div>
<div style="font-family:arial,sans-serif;font-size:13px">hopper.setInMemory(true);
</div>
<div style="font-family:arial,sans-serif;font-size:13px">hopper.setOSMFile(osmFile);</div>
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px">//
where to store graphhopper files?</div>
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
hopper.setGraphHopperLocation(graphFolder); </div>
<div style="font-family:arial,sans-serif;font-size:13px">hopper.setEncodingManager(new
EncodingManager("car"));</div>
<div style="font-family:arial,sans-serif;font-size:13px">
</div>
<div style="font-family:arial,sans-serif;font-size:13px">//
now this can take minutes if it imports or a few seconds for
loading</div>
<div style="font-family:arial,sans-serif;font-size:13px">// of
course this is dependent on the area you import </div>
<div style="font-family:arial,sans-serif;font-size:13px">hopper.importOrLoad();</div>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Do I
need to stop the map getting simplified before this? That is
to say, should this setting be changed BEFORE the contents of
graphFolder are generated? (should I re-generate the graph?)</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">It is vital that I don't lose any
information on the customised .osm maps that I give, the nodes
all need to be accounted for. Luckilly I am not doing large
scale routing (city - scale only) so I think any performance
hits this takes should be manageable. Please advise where to
go next / what to read to better familiarise myself with
GraphHopper</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Many thanks!</div>
<div class="gmail_extra">Tim</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 4 August 2014 17:08, Nop <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ekkehart@gmx.de" target="_blank">ekkehart@gmx.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi!<br>
<br>
As Timothy said, the result is simplified by default. Most
likely those points were removed, as additional points
along a straigt line are not needed.<br>
<br>
So I think everything is working fine. If you want ALL
points, you need to disable the Douglas-Peucker or set the
tolerance to a very small value.<br>
<br>
<br>
bye<br>
Nop<br>
<br>
<br>
Am 04.08.2014 16:38, schrieb Timothy Lehner:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
Hello All,<br>
<br>
Sorry for the confusion, I'll try to be clearer.<br>
<br>
I have an open street map with a section that may look
like this:<br>
<br>
<br>
<br>
</div>
<div class="">
I want to travel along the green path. When routing,
the route is<br>
returned as a list of co-ordinate points.<br>
<br>
For the stretch of road with the circles, the route
says I should travel<br>
from the co-ordinate of the green circle, to that of
the blue circle,<br>
however it has missed out the three nodes in between
(red).<br>
<br>
As a result I cannot traverse the route, as I see no
way to travel from<br>
the green circle, directly to the blue circle, I must
travel via the red<br>
circles which have been omitted.<br>
<br>
I was wondering if there was a way to have the route
returned detailing<br>
every node that needs to be visited, and in the order
it needs visiting,<br>
(so instead of getting 2 points, here I'd expect to
get 5)<br>
<br>
Does this make things clearer?<br>
<br>
Many thanks,<br>
<br>
Tim<br>
<br>
<br>
<br>
On 4 August 2014 15:20, Jan Torben Heuer <<a
moz-do-not-send="true" href="mailto:jan@komoot.de"
target="_blank">jan@komoot.de</a><br>
</div>
<div class="">
<mailto:<a moz-do-not-send="true"
href="mailto:jan@komoot.de" target="_blank">jan@komoot.de</a>>>
wrote:<br>
<br>
<br>
Am 04.08.2014 um 15:22 schrieb Timothy Lehner <<a
moz-do-not-send="true"
href="mailto:tim@accelogress.com" target="_blank">tim@accelogress.com</a><br>
</div>
<mailto:<a moz-do-not-send="true"
href="mailto:tim@accelogress.com" target="_blank">tim@accelogress.com</a>>>:
<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
For example, if my OpenStreetMap has a few close
packed nodes, the<br>
route calulcated will have maybe two latLong
points. The lat long<br>
points of the nodes in between are missed.<br>
</blockquote>
<br>
Not sure what „close packed nodes“ are but:<br>
- There is a maximum accuracy (10e-6?) due to
packing the<br>
coordinates into integer values.<br>
- There is a default douglas peucker hat
simplifies geometries.<br>
<br>
Maybe one of it is the reason.<br>
<br>
Ja<br>
<br>
</div>
</blockquote>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>