From 64d14da0fa66d476a17dd3285972ab795c1676ee Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Thu, 11 Oct 2012 10:01:54 +0200 Subject: [PATCH] allowing access tags on unknown highways --- profiles/car.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/car.lua b/profiles/car.lua index e7d8f0238..8988208e4 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -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