<div dir="ltr">Hi Gunther,<div><br></div><div> You've got the start/end points opposite for those two queries - the routes aren't the same (and thus, are very different in duration.. If you swap the start/end points on the OSRM route, you'll get 6.7 minutes as the result, and the path matches what Google is returning.<br></div><div><br></div><div> Make sure you zoom in in the UI and make sure the coordinates have snapped to the same location for both routing engines if you're doing a comparison.</div><div><br></div><div> To answer the rest of your question, OSRM uses:</div><div><br></div><div> 1) Tag information available in OpenStreetMap to decide on road speeds.</div><div> 2) The OSRM demo server *also* has Mapbox traffic data loaded on top</div><div><br></div><div> If you run your own OSRM server, you will just get (1).</div><div><br></div><div> You can read through the script that decides on OSM-based speeds here: <a href="https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua">https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua</a> This script looks at tags on OSM ways and decides on a basic speed for every road.</div><div><br></div><div>daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 27, 2017 at 9:41 AM, Günther S <span dir="ltr"><<a href="mailto:guenther_slx@yahoo.de" target="_blank">guenther_slx@yahoo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">Hi there,</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">I would like to know how the "duration" is calculated exactly.</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">What is the data basis for this calculation?</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">- predefined speed per segment (where to get that speed)?</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">- is real traffic information somehow considered?</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">For instance:</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">this request returns 1037.9sec = 17.3 min</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><a href="http://router.project-osrm.org/route/v1/driving/5.39952890748535,52.1960411446193;5.4446426827156,52.1682341727178?overview=false" id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_9992" target="_blank">http://router.project-osrm.<wbr>org/route/v1/driving/5.<wbr>39952890748535,52.<wbr>1960411446193;5.4446426827156,<wbr>52.1682341727178?overview=<wbr>false</a><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">on the other hand, google calculates 7min for the fastest route:</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><a href="https://www.google.at/maps/dir/52.1682341727178+5.4446426827156/52.1960411,5.3995289/@52.1889039,5.387444,14z/data=!3m1!4b1!4m7!4m6!1m3!2m2!1d5.4446427!2d52.1682342!1m0!3e0?hl=en" id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_10007" target="_blank">https://www.google.at/maps/<wbr>dir/52.1682341727178+5.<wbr>4446426827156/52.1960411,5.<wbr>3995289/@52.1889039,5.387444,<wbr>14z/data=!3m1!4b1!4m7!4m6!1m3!<wbr>2m2!1d5.4446427!2d52.1682342!<wbr>1m0!3e0?hl=en</a><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr"><br></div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">thanks,</div><div id="m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803" dir="ltr">Guenther</div></div></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>