<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 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 href="mailto:jan@komoot.de" target="_blank">jan@komoot.de</a><br></div><div class="">
<mailto:<a 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 href="mailto:tim@accelogress.com" target="_blank">tim@accelogress.com</a><br></div>
    <mailto:<a 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>
    ______________________________<u></u>_________________<br>
    GraphHopper mailing list<br></div>
    <a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a> <mailto:<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@<u></u>openstreetmap.org</a>><br>

    <a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/graphhopper</a><div class=""><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/graphhopper</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/graphhopper</a><br>
</div></div></blockquote></div><br></div></div>