<div dir="ltr">Use a wrigglefactor:<div><br></div><div>Say a persons needs to deviate from straight line with a factor of:</div><div><ul><li>x 1.2 on flat land<br></li><li>x 4.0 in mountains and swamps</li></ul>and calculate with a walking speed of:</div><div><ul><li>4.3 km/h road</li><li>3.5 km/h in fields</li><li>2.3 km/h in closed forests</li><li>1.2 km/h in jungle</li><li>0.025km/h if landmines</li></ul>Use dxdy to calculate the distance from nearest waypoint to the destination.</div><div><br></div><div>Doing this last step in a separate function will have very little overhead costs.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 19, 2016 at 8:39 PM, Steven M. Ottens <span dir="ltr"><<a href="mailto:steven@minst.net" target="_blank">steven@minst.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am working on a tool that will calculate the travel time from villages to for instance the nearest hospital for rural accessibility analysis. So far I have build a tool which will calculate this for 215.000 villages in a few minutes, thanks to the help of Daniel P. However I realized that not all villages are on a road, actually quite a few are at least an hour walk from the nearest drivable road see: <a href="http://stvno.github.io/img/OSRM-snapping.png" rel="noreferrer" target="_blank">http://stvno.github.io/img/OSRM-snapping.png</a><br>
The villages are typically connected to the roads by informal trails, which I do not have as a road network. So I was wondering if it would be possible to add a basic penalty to the distance of the point to the nearest road.<br>
I am aware that the nearest service will provide me with the distance: <a href="https://github.com/Project-OSRM/osrm-backend/wiki/New-Server-api#service-nearest" rel="noreferrer" target="_blank">https://github.com/Project-OSRM/osrm-backend/wiki/New-Server-api#service-nearest</a> but before I am going to calculate the extra traveltime for each village, I was wondering if it is possible to integrate this with an osrm.table request. I am aware this opens quite a can of worms: if there is a penalty to snapping, it might be worth it to snap to a road which is further away, but in the end quicker to get to the destination. But for the moment I'm happy with just the added traveltime for nearest road snapping.<br>
<br>
Any suggestions on how to handle this?<br>
<br>
Steven<br>
<br>
<br>
<br>
_______________________________________________<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><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:small">Bjorn Madsen, Ph.D., MIET</div><div style="font-size:small">Director, Global Operations</div><div style="font-size:small"><br></div><div style="font-size:small"><div><span style="font-size:13px">Multi-Agent Technology Ltd.</span></div><div><div style="font-size:13px">Bessemer Drive, </div></div><div style="font-size:13px">Stevenage, </div><div style="font-size:13px">SG1 2DX</div></div><div style="font-size:small"><br></div><div style="font-size:small"><a href="mailto:bm@multiagenttechnology.com" style="color:rgb(17,85,204)" target="_blank">bm@multiagenttechnology.com</a></div><div style="font-size:small"><div>Mobile: +44 779 20 307 20</div><div>Main Office: +44 1438 310 035</div></div></div></div></div></div></div></div></div>
</div>