removing super-flous returns in car profile
This commit is contained in:
parent
d24ba6d13d
commit
b584ba9149
@ -85,7 +85,6 @@ function node_function (node)
|
|||||||
node.bollard = true
|
node.bollard = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -93,19 +92,19 @@ function way_function (way)
|
|||||||
-- we dont route over areas
|
-- we dont route over areas
|
||||||
local area = way.tags:Find("area")
|
local area = way.tags:Find("area")
|
||||||
if ignore_areas and ("yes" == area) then
|
if ignore_areas and ("yes" == area) then
|
||||||
return 0
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- check if oneway tag is unsupported
|
-- check if oneway tag is unsupported
|
||||||
local oneway = way.tags:Find("oneway")
|
local oneway = way.tags:Find("oneway")
|
||||||
if "reversible" == oneway then
|
if "reversible" == oneway then
|
||||||
return 0
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check if we are allowed to access the way
|
-- Check if we are allowed to access the way
|
||||||
local access = Access.find_access_tag(way, access_tags_hierachy)
|
local access = Access.find_access_tag(way, access_tags_hierachy)
|
||||||
if access_tag_blacklist[access] then
|
if access_tag_blacklist[access] then
|
||||||
return 0
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Second, parse the way according to these properties
|
-- Second, parse the way according to these properties
|
||||||
@ -212,7 +211,7 @@ function way_function (way)
|
|||||||
way.ignore_in_grid = true
|
way.ignore_in_grid = true
|
||||||
end
|
end
|
||||||
way.type = 1
|
way.type = 1
|
||||||
return 1
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
||||||
|
Loading…
Reference in New Issue
Block a user