Fix bicycle profile syntax

This commit is contained in:
Patrick Niklaus 2015-05-15 15:35:48 +02:00
parent 7ad52de2b1
commit f04a3e3d2e

View File

@ -269,8 +269,8 @@ function way_function (way, result)
result.forward_speed = bicycle_speeds[highway]
result.backward_speed = bicycle_speeds[highway]
if unsafe_highway_list[highway] then
result.forward_speed *= safety_penalty
result.backward_speed *= safety_penalty
result.forward_speed = result.forward_speed * safety_penalty
result.backward_speed = result.backward_speed * safety_penalty
end
elseif access and access_tag_whitelist[access] then
-- unknown way, but valid access tag