Skip to content

Commit

Permalink
Drinking water: also ask for caravan sites (fixes #5238)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 20, 2023
1 parent 3d8a62d commit 231577a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ class AddCampDrinkingWater : OsmFilterQuestType<Boolean>() {
* values from other editors, and we don't want to damage them */
override val elementFilter = """
nodes, ways with
tourism = camp_site and (
!drinking_water
tourism ~ camp_site|caravan_site
and (
!drinking_water and !water_point
or drinking_water older today -4 years and drinking_water ~ yes|no
)
"""
override val changesetComment = "Specify whether there is drinking water at camp site"
override val changesetComment = "Specify whether there is drinking water at camp or caravan site"
override val wikiLink = "Key:drinking_water"
override val icon = R.drawable.ic_quest_drinking_water
override val achievements = listOf(OUTDOORS)

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

override fun getHighlightedElements(element: Element, getMapData: () -> MapDataWithGeometry) =
getMapData().filter("nodes, ways with tourism = camp_site")
getMapData().filter("nodes, ways with tourism ~ camp_site|caravan_site")

override fun createForm() = YesNoQuestForm()

Expand Down

0 comments on commit 231577a

Please sign in to comment.