diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-06-24 17:03:33 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:54:05 +0300 |
commit | 4f9a84f2ab7cd0813bb0f25a57a55c4260b8e252 (patch) | |
tree | e91ac7deb34535eba33b0ac1625dd9728a8be871 /3party/osrm | |
parent | dec9bd485c4d51c6ca7672cb67c74b2e8403e49a (diff) |
OSRM pedestrian edges filtering fix
Diffstat (limited to '3party/osrm')
-rwxr-xr-x | 3party/osrm/osrm-backend/profile.lua | 9 | ||||
-rwxr-xr-x | 3party/osrm/osrm-backend/profiles/car.lua | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/3party/osrm/osrm-backend/profile.lua b/3party/osrm/osrm-backend/profile.lua index 813afd19c4..ce762f12fa 100755 --- a/3party/osrm/osrm-backend/profile.lua +++ b/3party/osrm/osrm-backend/profile.lua @@ -310,10 +310,11 @@ function way_function (way, result) end else -- Set the avg speed on ways that are marked accessible - if access_tag_whitelist[access] then - result.forward_speed = speed_profile["default"] - result.backward_speed = speed_profile["default"] - end + -- OMIM does not support not highway classes + -- if access_tag_whitelist[access] and "yes" ~= access then + -- result.forward_speed = speed_profile["default"] + -- result.backward_speed = speed_profile["default"] + --end end if 0 == max_speed then max_speed = math.huge diff --git a/3party/osrm/osrm-backend/profiles/car.lua b/3party/osrm/osrm-backend/profiles/car.lua index 813afd19c4..2880e44683 100755 --- a/3party/osrm/osrm-backend/profiles/car.lua +++ b/3party/osrm/osrm-backend/profiles/car.lua @@ -310,10 +310,11 @@ function way_function (way, result) end else -- Set the avg speed on ways that are marked accessible - if access_tag_whitelist[access] then - result.forward_speed = speed_profile["default"] - result.backward_speed = speed_profile["default"] - end + -- OMIM does not support non highway classes + --if access_tag_whitelist[access] and "yes" ~= access then + -- result.forward_speed = speed_profile["default"] + -- result.backward_speed = speed_profile["default"] + --end end if 0 == max_speed then max_speed = math.huge |