allowing access tags on unknown highways

This commit is contained in:
DennisOSRM 2012-10-11 10:01:54 +02:00
parent c83ab666d7
commit 64d14da0fa

View File

@ -166,7 +166,7 @@ function way_function (way, numberOfNodesInWay)
end
-- Set the avg speed on ways that are marked accessible
if speed_profile[highway] and access_tag_whitelist[access] and way.speed == -1 then
if "" ~= 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