diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/max_height/AddMaxHeight.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/max_height/AddMaxHeight.kt index 3ab350975d..481fd73421 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/max_height/AddMaxHeight.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/max_height/AddMaxHeight.kt @@ -59,10 +59,13 @@ class AddMaxHeight : OsmElementQuestType { private val bridgeFilter by lazy { """ ways with ( - highway ~ ${(ALL_ROADS + ALL_PATHS).joinToString("|")} - or railway ~ rail|light_rail|subway|narrow_gauge|tram|disused|preserved|funicular|monorail - ) and ( - bridge and bridge != no + ( + highway ~ ${(ALL_ROADS + ALL_PATHS).joinToString("|")} + or railway ~ rail|light_rail|subway|narrow_gauge|tram|disused|preserved|funicular|monorail + ) + and bridge and bridge != no + ) or ( + building = roof or man_made = pipeline and location = overhead ) and layer @@ -88,6 +91,7 @@ class AddMaxHeight : OsmElementQuestType { && tags["covered"] == null && tags["man_made"] != "pipeline" && tags["railway"] != "level_crossing" + && tags["building"] != "roof" // only the "below the bridge" situation may need some context return when { isBelowBridge -> R.string.quest_maxheight_sign_below_bridge_title