<div dir="ltr"><div dir="ltr"><div>Thank you for your answer.</div><div><br></div><div>I have been changing the speeds in the car.lua profile and routing between different points with different distances. I have found that, for longer routes if I reduce all the speeds of the profile, there is a noticeable difference in the travel times, but it is not the same for shorter distances. From reading the code, I don't understand this behaviour, can someone point out possible causes?<br></div><div><br></div><div><pre><table><tbody><tr><td>Longer Route:<br><a href="http://localhost:5000/route/v1/driving/-2.130661,52.586363;-1.506500,52.408284?steps=true&alternatives=true&overview=full&geometries=geojson">http://localhost:5000/route/v1/driving/-2.130661,52.586363;-1.506500,52.408284?steps=true&alternatives=true&overview=full&geometries=geojson</a></td></tr></tbody></table></pre></div><div><pre><table><tbody><tr><td>Medium Route:<br><a href="http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true&alternatives=true&overview=full&geometries=geojson">http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true&alternatives=true&overview=full&geometries=geojson</a></td></tr></tbody></table></pre></div><div><pre><table><tbody><tr><td>Small Route:<br><a href="http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true&alternatives=true&overview=full&geometries=geojson">http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true&alternatives=true&overview=full&geometries=geojson</a></td></tr></tbody></table></pre></div><div><pre><table><tbody><tr><td><b>Longer Route </b></td><td><b>distance (Km)</b></td><td><b>time (min)</b></td></tr><tr><td>at original speed</td><td>59.6</td><td>60</td></tr><tr><td>at 2/3*speed</td><td>58.4-60.5</td><td>66-73.4</td></tr><tr><td>at 1/2*speed</td><td>58.4-60.7</td><td>71.4-78.8</td></tr><tr><td>at 1/3*speed</td><td>58.6-58.4</td><td>78-79</td></tr><tr><td><b>Medium Route</b></td><td><b>distance (Km)</b></td><td><b>time (min)</b></td></tr><tr><td>at original speed</td><td>11.6-12.4</td><td>15.6</td></tr><tr><td>at 2/3*speed</td><td>11.6-12.4</td><td>16-19</td></tr><tr><td>at 1/2*speed</td><td>11.6-12.4</td><td>16.3-20</td></tr><tr><td>at 1/3*speed</td><td>11.6-12.4</td><td>17-20</td></tr><tr><td><b>Small Route</b></td><td><b>distance (Km)</b></td><td><b>time (min)</b></td></tr><tr><td>at original speed</td><td>0.338-0.387</td><td>50.3-64.9</td></tr><tr><td>at 2/3*speed</td><td>0.338-0.387</td><td>50.3-64.9</td></tr><tr><td>at 1/2*speed</td><td>0.338-0.387</td><td>50.3-64.9</td></tr><tr><td>at 1/3*speed</td><td>0.338-0.387</td><td>50.3-64.9</td></tr></tbody></table></pre></div><div><br></div><div>Thank you.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie., 23 ago. 2019 a las 1:32, Florian Lohoff (<<a href="mailto:f@zz.de">f@zz.de</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Aug 16, 2019 at 02:15:07PM +0200, Silvia Oviedo wrote:<br>
> Hi everyone,<br>
> <br>
> I would like to have your input regarding this:<br>
> <br>
> In OSM there is tag: maxspeed. In my case, I find that the majority of the<br>
> primary roads have 30mph ~ 48 kph as a max speed. In the car.lua, I find<br>
> that the highway speed that has been set primary is 65 kph. Is the speed in<br>
> the OSM tag taken into consideration? I understand that the speed table is<br>
> accessed by WayHandlers.speed() function but I am not sure what's the<br>
> effect of WayHandlers.maxspeed().<br>
<br>
Hi,<br>
maxspeed, width, oneway, lanes and surface tags are used to determine the<br>
weight/cost/estimated speed to travel segment - A lanes=1 without<br>
any oneway will typically assume its typically speed is something like<br>
halve of the maxspeed. But the whole issue is more complex as lanes<br>
and maxspeed may carry :forward/:backward suffixes etc.<br>
<br>
So the car.lua with the help of lib/maxspeed.lua and others do that<br>
estimation. If there is no maxspeed osrm has some assumptions for<br>
road classes.<br>
<br>
Flo<br>
-- <br>
Florian Lohoff <a href="mailto:f@zz.de" target="_blank">f@zz.de</a><br>
UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away<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 clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Silvia Oviedo Castillo<br></div></div></div>