return early if way is not either highway=* or route=* in car profile. Estimated cost saving 10%
This commit is contained in:
parent
bbe440cacd
commit
1508874ebc
@ -112,6 +112,14 @@ function node_function (node)
|
||||
end
|
||||
|
||||
function way_function (way)
|
||||
|
||||
local is_highway = way.tags:Holds("highway")
|
||||
local is_route = way.tags:Holds("route")
|
||||
|
||||
if not (is_highway or is_route) then
|
||||
return
|
||||
end
|
||||
|
||||
-- we dont route over areas
|
||||
local is_area = way.tags:Holds("area")
|
||||
if ignore_areas and is_area then
|
||||
|
Loading…
Reference in New Issue
Block a user