<div dir="ltr">Hi Bryan,<div><br></div><div> OSRM stores the road network in memory. When you supply a coordinate to start/finish a route, the first thing that happens is that the nearest point on the road network is found. Routing then happens from those "snapped" points.</div><div><br></div><div> If you've got big rural areas, and you're using large regional centroids, then I suspect the snapping is starting or finishing your routes on roads you don't expect.</div><div><br></div><div> Several hundred KM is pretty weird though, unless your road network is *really* sparse. Do you have your coordinate the correct way around in your requests? The order should be <longitude>,<latitude> for every pair - getting this wrong is often the source of really weird results.</div><div><br></div><div> Try making a single request with `overview=full&geometries=geojson`, then plot the full route geometry on <a href="http://geojson.io/">http://geojson.io/</a> or something to see if it even looks reasonable.</div><div><br></div><div>daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 16, 2018 at 1:43 PM, Sayer, Bryan <span dir="ltr"><<a href="mailto:BSayer@s-3.com" target="_blank">BSayer@s-3.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_2888795376369566274divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">We are calculating distances between an U.S. census tract centroid and hospitals. A tract averages about 4,000 people, but can vary in area. Obviously, the centroid is likely to not be on a street, and thus a jump distance
has to be calculated to get to a street. </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Our question is what is the general algorithm for getting to the starting point? We definitely end up with some very large numbers (several hundred kilometers) on some jump distances, which seems incorrect.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Bryan Sayer</p>
</div>
<br>
****WARNING**** This information may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this information in error, please destroy the information and notify the sender of the error. Thank you.
</div>
<br>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>