<div dir="ltr">Hi Peter,<div><br></div><div>At small distances we also experience unsuitably long paths drawn due to various map artefacts that don't represent the on-ground situation fully. Example: people can cross the road, they don't need to go that far for the crossing (side question: is there an OSM tag for telling that this road has "free crossing" all along it and people do not need to go to a specific point just to cross?). Or, take the nearest entrance to the building - they don't need to go all around the place from the outside.</div><div><br></div><div>We decided to do some post-processing instead of trying to mess with the router.</div><div>Calculate D = Displacement by latitude-longitude pairs (as-the-crow-flies simple Euclidean geometry calculation)</div><div><br></div><div>If D <= 500m, {</div><div>    If the path given by OSRM is greater than D x 10 (or pick a suitable multiplier), {</div><div>        Then junk the path and just plot a dotted line from A to B. Assume half speed for this portion.</div><div>  }</div><div>}</div><div><br></div><div>In your case you may have to divide the path you have into chunks and evaluate each chunk.</div><div>But I have no clue on how to make this business accurate. All the best!</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>--<br>Cheers,<br>Nikhil VJ<br><a href="https://nikhilvj.co.in" target="_blank">https://nikhilvj.co.in</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 28, 2019 at 7:09 PM Peter Schneider-Kamp via OSRM-talk <<a href="mailto:osrm-talk@openstreetmap.org">osrm-talk@openstreetmap.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DA">
<div class="gmail-m_-2522839936658704064WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Hi everyone,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">We are starting to use OSRM in a research project for autonomous drones. The drones should normally fly along existing paths (i.e. ways from OpenStreetMap). But there are situations where the
 drone needs to fly without a path between two nodes (as it otherwise would have to make a detour of many kilometres).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">We have a custom profile that works well for routing along the kind of paths we want to route along. But is there any way that we can tell OSRM to just go from one node to another close-by node
 without a path?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">So far the only idea is a bit of a hack: add a new type of path between all close-by nodes and add this type of path to the profile (with a lower speed, enabling its use but discouraging it).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Any other ideas?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Any inputs/ideas/pointers are appreciated!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Peter<u></u><u></u></span></p>
</div>
</div>

_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
</blockquote></div>