Skip to content

Commit

Permalink
ask barrier width opening quest only for paths (fixes #6002)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Nov 13, 2024
1 parent 2318bfc commit da92451
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import de.westnordost.streetcomplete.data.osm.mapdata.MapDataWithGeometry
import de.westnordost.streetcomplete.data.osm.osmquests.OsmElementQuestType
import de.westnordost.streetcomplete.data.user.achievements.EditTypeAchievement.BICYCLIST
import de.westnordost.streetcomplete.data.user.achievements.EditTypeAchievement.WHEELCHAIR
import de.westnordost.streetcomplete.osm.ALL_PATHS
import de.westnordost.streetcomplete.osm.Tags
import de.westnordost.streetcomplete.quests.width.AddWidthForm
import de.westnordost.streetcomplete.quests.width.WidthAnswer
Expand All @@ -27,11 +28,11 @@ class AddBarrierOpening(
and (!width or source:width ~ ".*estimat.*")
and (!maxwidth or source:maxwidth ~ ".*estimat.*")
and access !~ private|no|customers|agricultural
""".toElementFilterExpression() }
""".toElementFilterExpression() }

private val waysFilter by lazy { """
ways with
highway
highway ~ ${ALL_PATHS.joinToString("|")}
and area != yes
and (access !~ private|no or (foot and foot !~ private|no))
""".toElementFilterExpression() }
Expand Down

0 comments on commit da92451

Please sign in to comment.