Car profile does only route on known ways

This commit is contained in:
DennisOSRM 2012-10-08 12:05:49 +02:00
parent c5b1cea58e
commit c0287c0f2f

View File

@ -166,7 +166,7 @@ function way_function (way, numberOfNodesInWay)
end end
-- Set the avg speed on ways that are marked accessible -- 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 if (0 < maxspeed and not take_minimum_of_speeds) or maxspeed == 0 then
maxspeed = math.huge maxspeed = math.huge
end end