Update bicycle profile to ignore crossing nodes

This commit is contained in:
Patrick Niklaus 2015-05-30 19:26:56 +02:00
parent 039d6acd3e
commit 7d73501b87

View File

@ -135,9 +135,14 @@ end
function node_function (node, result) function node_function (node, result)
-- parse access and barrier tags -- parse access and barrier tags
local highway = node:get_value_by_key("highway")
local is_crossing = highway and highway == "crossing"
local access = find_access_tag(node, access_tags_hierachy) local access = find_access_tag(node, access_tags_hierachy)
if access and access ~= "" then if access and access ~= "" then
if access_tag_blacklist[access] then -- access restrictions on crossing nodes are not relevant for
-- the traffic on the road
if access_tag_blacklist[access] and not is_crossing then
result.barrier = true result.barrier = true
end end
else else