<div dir="ltr"><div dir="ltr">I would verify that OSRM considers the highway routable at all - if OSRM has excluded it for some reason (e.g. HOV-only, under construction, etc), then it'll be forced to find the next best thing.</div><div dir="ltr"><br></div><div>Also remember - OSRM is just guessing on the travel speeds based on the tags present on ways in OSM - these guesses may not always be accurate.  OTP is making the same guesses, but has different opinions on how to interpret the OSM tags.  Google generates a travel speed model from other sources which is more realistic than OSM+OSRM out of the box.</div><div><br></div><div>Try moving the start/end coordinates around and see if you can confirm that the desired highway is even routable with OSRM.  The osrm-frontend project (<a href="https://github.com/Project-OSRM/osrm-frontend/">https://github.com/Project-OSRM/osrm-frontend/</a>) is handy for doing this.  You can also visualize OSRM's view of the routing graph using the debug viewer: <a href="https://github.com/Project-OSRM/osrm-frontend/tree/gh-pages/debug">https://github.com/Project-OSRM/osrm-frontend/tree/gh-pages/debug</a> (modify index.html to point to your own OSRM server) - if the highways have no coloring, then they're not routable.</div><div><br></div><div>daniel<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 3, 2020 at 12:48 PM Xavier Prudent <<a href="mailto:prudentxavier@gmail.com">prudentxavier@gmail.com</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 dir="ltr">Dear all,<br><br><div>I am comparing two routing machines: openTriplanner and OSRM on the OSM map of Québec city (Canada) when looking for the best route by car.<br></div><div><br></div><div>I get very puzzling differences, just running the default versions and configurations of OSRM and OTP for these coordinates:</div><div><br></div><div>origin</div><div>46.793187,-71.183014</div><div>destination</div><div>46.770641,-71.285499</div><div>at 8am, mode car.</div><div><br></div><div>The best route by OSRM is a 16km (18min) long, while the OTP recommandation is a 20km (24min) one. <br></div><div>Google map recommends the 20km one (21min), the 16km road having a duration of 25 min.<br></div><div><br></div><div>The 20km route goes along a highway, while the 16km one uses a primary road, I don't get why OSRM thinks this road is faster, while OTP points the opposite.</div><div><br></div><div>Are you able to reproduce this discrepancy? Does that make sense to you?</div><div><br></div><div>Thanks,</div><div><br></div><div>Xavier<br></div><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><i style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0B36xsKHULjaGdTNKMnJvcjk2bmc&revid=0B36xsKHULjaGY0xTSFJOcHlkOUtNUHVhTGdQSGZtSFhQOFNnPQ" width="96" height="68"></i><br></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><i><b>Xavier Prudent </b></i></div><div dir="ltr" style="font-size:12.8px"><i><b><br></b></i></div></div><div dir="ltr"><div><i style="font-size:12.8px">Data Scientist  - Data Mining - Machine Learning</i><br></div><div><i><br></i></div><div>Web    :<i> <a href="http://www.xavierprudent.com" target="_blank">www.xavierprudent.com</a></i></div><div>Tel (Québec)      : (514) 668 76 46</div><div>Skype : xavierprudent</div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div><div><br></div><div><br></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></div>