Skip to content

Commit

Permalink
add building=roofs to the maxheight quest; fix pipelines not being fi…
Browse files Browse the repository at this point in the history
…ltered correctly
  • Loading branch information
RubenKelevra authored and westnordost committed Sep 21, 2024
1 parent f99db3d commit e311c63
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ class AddMaxHeight : OsmElementQuestType<MaxHeightAnswer> {

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
Expand All @@ -88,6 +91,7 @@ class AddMaxHeight : OsmElementQuestType<MaxHeightAnswer> {
&& 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
Expand Down

0 comments on commit e311c63

Please sign in to comment.