[OSRM-talk] car speed profile

didier2020 didier2020 at free.fr
Sat Jul 20 08:01:04 UTC 2013


hi,

for car.lua the code is

  -- Set the avg speed on the way if it is accessible by road class
  if (speed_profile[highway] ~= nil and way.speed == -1 ) then
    if maxspeed > speed_profile[highway] then
      way.speed = maxspeed


why not       way.speed = maxspeed * 0.8

ex:
the speed for a motorway without tag speed is 90
the speed for a motorway with tag speed 130 is 130
in this case 130*0.8 = 104 


didier




More information about the OSRM-talk mailing list