From c0287c0f2f052aaaec7940f181a42a47502287e9 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 8 Oct 2012 12:05:49 +0200 Subject: [PATCH] Car profile does only route on known ways --- profiles/car.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/car.lua b/profiles/car.lua index 6e46bcd89..e7d8f0238 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 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