<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1511812338164_6541">Ah, great!</div><div id="yui_3_16_0_ym19_1_1511812338164_6541">Thanks Daniel for the detailed answer! </div><div id="yui_3_16_0_ym19_1_1511812338164_6541"><br></div><div id="yui_3_16_0_ym19_1_1511812338164_6541">G</div><div id="yui_3_16_0_ym19_1_1511812338164_6542"><br></div><div id="yui_3_16_0_ym19_1_1511812338164_6543"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Daniel Patterson <daniel@mapbox.com> schrieb am 20:30 Montag, 27.November 2017:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1569444876"><div><div dir="ltr">Hi Gunther,<div><br clear="none"></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 clear="none"></div><div><br clear="none"></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 clear="none"></div><div>  To answer the rest of your question, OSRM uses:</div><div><br clear="none"></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 clear="none"></div><div>  If you run your own OSRM server, you will just get (1).</div><div><br clear="none"></div><div>  You can read through the script that decides on OSM-based speeds here:  <a rel="nofollow" shape="rect" target="_blank" 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 clear="none"></div><div>daniel</div></div><div class="yiv1569444876gmail_extra"><br clear="none"><div class="yiv1569444876gmail_quote">On Mon, Nov 27, 2017 at 9:41 AM, Günther S <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:guenther_slx@yahoo.de" target="_blank" href="mailto:guenther_slx@yahoo.de">guenther_slx@yahoo.de</a>></span> wrote:<br clear="none"><blockquote class="yiv1569444876gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv1569444876yqt6243254242" id="yiv1569444876yqt16148"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">Hi there,</div><div id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">I would like to know how the "duration" is calculated exactly.</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">What is the data basis for this calculation?</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">- predefined speed per segment (where to get that speed)?</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">- is real traffic information somehow considered?</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">For instance:</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">this request returns 1037.9sec = 17.3 min</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><a rel="nofollow" shape="rect" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_9992" target="_blank" href="http://router.project-osrm.org/route/v1/driving/5.39952890748535,52.1960411446193;5.4446426827156,52.1682341727178?overview=false">http://router.project-osrm. org/route/v1/driving/5. 39952890748535,52. 1960411446193;5.4446426827156, 52.1682341727178?overview= false</a><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">on the other hand, google calculates 7min for the fastest route:</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><a rel="nofollow" shape="rect" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_10007" target="_blank" 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">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</a><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803"><br clear="none"></div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">thanks,</div><div dir="ltr" id="yiv1569444876m_209626867402523270yui_3_16_0_ym19_1_1511803400979_4803">Guenther</div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
OSRM-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:OSRM-talk@openstreetmap.org" target="_blank" href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.openstreetmap.org/listinfo/osrm-talk">https://lists.openstreetmap. org/listinfo/osrm-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><div class="yqt6243254242" id="yqt47886">_______________________________________________<br clear="none">OSRM-talk mailing list<br clear="none"><a shape="rect" ymailto="mailto:OSRM-talk@openstreetmap.org" href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br clear="none"><a shape="rect" href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>