Skip to content

Commit

Permalink
disable prohibited-for-pedestrians quest in United Kingdom (#4998)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 10, 2024
1 parent 3eb3e0f commit cdd8a82
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package de.westnordost.streetcomplete.quests.foot
import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.data.osm.geometry.ElementGeometry
import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType
import de.westnordost.streetcomplete.data.quest.AllCountriesExcept
import de.westnordost.streetcomplete.data.quest.Countries

Check failure on line 7 in app/src/main/java/de/westnordost/streetcomplete/quests/foot/AddProhibitedForPedestrians.kt

View workflow job for this annotation

GitHub Actions / Kotlin

Unused import
import de.westnordost.streetcomplete.data.user.achievements.EditTypeAchievement.PEDESTRIAN
import de.westnordost.streetcomplete.osm.ROADS_ASSUMED_TO_BE_PAVED
import de.westnordost.streetcomplete.osm.Tags
Expand Down Expand Up @@ -45,6 +47,9 @@ class AddProhibitedForPedestrians : OsmFilterQuestType<ProhibitedForPedestriansA
override val wikiLink = "Key:foot"
override val icon = R.drawable.ic_quest_no_pedestrians
override val achievements = listOf(PEDESTRIAN)
override val enabledInCountries = AllCountriesExcept(
"GB" // see https://community.openstreetmap.org/t/poll-should-streetcomplete-disable-the-are-pedestrians-forbidden-to-walk-on-this-road-without-sidewalk-here-quest-in-the-uk/118387
)

override fun getTitle(tags: Map<String, String>) = R.string.quest_accessible_for_pedestrians_title_prohibited

Expand Down

0 comments on commit cdd8a82

Please sign in to comment.