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)
This commit is contained in:
yuryleb
2017-02-21 16:46:27 +03:00
committed by Patrick Niklaus
parent 046d3128c4
commit 544e54894f
3 changed files with 1 additions and 5 deletions
+1 -3
View File
@@ -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