Fix bicycle profile syntax
This commit is contained in:
parent
7ad52de2b1
commit
f04a3e3d2e
@ -269,8 +269,8 @@ function way_function (way, result)
|
|||||||
result.forward_speed = bicycle_speeds[highway]
|
result.forward_speed = bicycle_speeds[highway]
|
||||||
result.backward_speed = bicycle_speeds[highway]
|
result.backward_speed = bicycle_speeds[highway]
|
||||||
if unsafe_highway_list[highway] then
|
if unsafe_highway_list[highway] then
|
||||||
result.forward_speed *= safety_penalty
|
result.forward_speed = result.forward_speed * safety_penalty
|
||||||
result.backward_speed *= safety_penalty
|
result.backward_speed = result.backward_speed * safety_penalty
|
||||||
end
|
end
|
||||||
elseif access and access_tag_whitelist[access] then
|
elseif access and access_tag_whitelist[access] then
|
||||||
-- unknown way, but valid access tag
|
-- unknown way, but valid access tag
|
||||||
|
Loading…
Reference in New Issue
Block a user