From 544e54894f9a7673bd0acb5db70794dea29f7fe2 Mon Sep 17 00:00:00 2001 From: yuryleb Date: Tue, 21 Feb 2017 16:46:27 +0300 Subject: [PATCH] Excluded 'bridge=*' from all profiles This commit fixes issue #3588 "OSRM uses man_made=bridge lines to route?" with exclusion of 'brigde' tag analisys from all profiles to disable routing on bridges countours (with no highway tags) --- profiles/bicycle.lua | 4 +--- profiles/car.lua | 1 - profiles/foot.lua | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index d66d08ba3..f5e609c79 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -270,15 +270,13 @@ function way_function (way, result) local railway = way:get_value_by_key("railway") local amenity = way:get_value_by_key("amenity") local public_transport = way:get_value_by_key("public_transport") - local bridge = way:get_value_by_key("bridge") if (not data.highway or data.highway == '') and (not route or route == '') and (not profile.use_public_transport or not railway or railway=='') and (not amenity or amenity=='') and (not man_made or man_made=='') and - (not public_transport or public_transport=='') and - (not bridge or bridge=='') + (not public_transport or public_transport=='') then return end diff --git a/profiles/car.lua b/profiles/car.lua index 1f5aea403..5c181110e 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -298,7 +298,6 @@ function way_function(way, result) local data = { -- prefetch tags highway = way:get_value_by_key('highway'), - bridge = way:get_value_by_key('bridge'), route = way:get_value_by_key('route') } diff --git a/profiles/foot.lua b/profiles/foot.lua index 8b477fefa..02e9ee979 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -177,7 +177,6 @@ function way_function(way, result) local data = { -- prefetch tags highway = way:get_value_by_key('highway'), - bridge = way:get_value_by_key('bridge'), route = way:get_value_by_key('route'), leisure = way:get_value_by_key('leisure'), man_made = way:get_value_by_key('man_made'),