Car profile does only route on known ways
This commit is contained in:
parent
c5b1cea58e
commit
c0287c0f2f
@ -166,7 +166,7 @@ function way_function (way, numberOfNodesInWay)
|
||||
end
|
||||
|
||||
-- Set the avg speed on ways that are marked accessible
|
||||
if access_tag_whitelist[access] and way.speed == -1 then
|
||||
if speed_profile[highway] and access_tag_whitelist[access] and way.speed == -1 then
|
||||
if (0 < maxspeed and not take_minimum_of_speeds) or maxspeed == 0 then
|
||||
maxspeed = math.huge
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user