Skip to content

Commit

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

override fun getTitle(tags: Map<String, String>) = R.string.quest_camp_power_supply_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 c2a29b5

Please sign in to comment.