Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4501ce5
Rename README.md to README.adoc
NicodeH Sep 3, 2025
b901e47
Update README.adoc
NicodeH Sep 3, 2025
2ca0855
Update README.adoc
NicodeH Sep 3, 2025
933971a
Update README.adoc
NicodeH Sep 3, 2025
2c2511a
Update README.adoc
NicodeH Sep 3, 2025
523de1d
Initialisation des docs
NicodeH Sep 4, 2025
9007f3f
Update doc_tech.adoc
NicodeH Sep 4, 2025
279d069
Update doc_user.adoc
NicodeH Sep 4, 2025
b9a4260
Changement du badge de licence
ElPoraz Sep 4, 2025
5ba5e00
Adding cr and odj folder
ElPoraz Sep 4, 2025
e877446
Ajout du lien vers le CR
ElPoraz Sep 4, 2025
8cb190a
Correction du lien vers cr de télétravail
ElPoraz Sep 4, 2025
4c9b2c4
Ajout du cr de tt du 04 septembre
ElPoraz Sep 4, 2025
1f61a05
Add the Devis to the docs
HugoTHOLLON Sep 5, 2025
abae682
Update du README.adoc
ElPoraz Sep 5, 2025
8a4f681
Adding CR and ODJ Sprint 1
ElPoraz Sep 11, 2025
bd2d066
Update ODJ/CR section with links and notes
ElPoraz Sep 11, 2025
8e0dd92
Merge branch 'streetcomplete:master' into master
HugoTHOLLON Sep 15, 2025
650926e
Create sprint 1 backlog
NariaReynhard Sep 15, 2025
accd989
Add links for CR AND ODJ part2 for Sprint 1 in README
ElPoraz Sep 15, 2025
2476c62
Adding the files
ElPoraz Sep 15, 2025
f22cb00
Update telework register with new entry and add last update date on t…
ElPoraz Sep 17, 2025
4036224
copy of oneway to adapt to bothway & updating of the first file
NariaReynhard Sep 18, 2025
d09a0c1
Quest should be done, but testing is not done yet
NariaReynhard Sep 18, 2025
0cd4572
Update README.adoc
ElPoraz Sep 19, 2025
ed0fc84
V1 without SVG pictures
RaphaLLamothe Sep 19, 2025
bb10ec2
Merge branch 'streetcomplete:master' into bothways-quest
NariaReynhard Sep 21, 2025
cd279b4
Merge pull request #30 from HugoTHOLLON/when-operates
RaphaLLamothe Sep 21, 2025
8fff4c9
Merge branch 'master' into bothways-quest
RaphaLLamothe Sep 21, 2025
6b2f302
Updating branch by pulling changes made to files in master.
HugoTHOLLON Sep 26, 2025
dbdc247
Restoring the README to it's original state and removing the docs fol…
HugoTHOLLON Sep 29, 2025
eacf924
Merge branch 'streetcomplete:master' into bothways-quest
HugoTHOLLON Sep 29, 2025
b7c95f7
Changing the app name constant to inform that we are working on a branch
HugoTHOLLON Sep 30, 2025
39a8a65
Updated little oopsies
NariaReynhard Oct 22, 2025
84c1ba4
Fixed a few bugs that went under radar during refactoring
NariaReynhard Oct 22, 2025
724db79
updated the wikiLink
NariaReynhard Oct 24, 2025
dda185b
taken down a few files that shouldn't have come back
NariaReynhard Oct 24, 2025
90be354
taken down a quest that shouldn't not have appear back in this PR
NariaReynhard Oct 24, 2025
1c9fdbc
Taken down the drag_lift from the filter
NariaReynhard Oct 24, 2025
ade3294
merged
paulklie Nov 10, 2025
9848ead
finished bothway quest for aerialways
paulklie Nov 10, 2025
dc401b6
rename
paulklie Nov 10, 2025
a430e32
removed duplicates
paulklie Nov 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ import de.westnordost.streetcomplete.quests.motorcycle_parking_capacity.AddMotor
import de.westnordost.streetcomplete.quests.motorcycle_parking_cover.AddMotorcycleParkingCover
import de.westnordost.streetcomplete.quests.note_discussion.OsmNoteQuestType
import de.westnordost.streetcomplete.quests.oneway.AddOneway
import de.westnordost.streetcomplete.quests.oneway.AddOnewayAerialway
import de.westnordost.streetcomplete.quests.opening_hours.AddOpeningHours
import de.westnordost.streetcomplete.quests.opening_hours_signed.CheckOpeningHoursSigned
import de.westnordost.streetcomplete.quests.orchard_produce.AddOrchardProduce
Expand Down Expand Up @@ -452,6 +453,7 @@ fun questTypeRegistry(

// aerial way: usually visible from looking at the aerial way, but not always...
184 to AddAerialwayBicycleAccess(),
187 to AddOnewayAerialway(),

103 to AddProhibitedForPedestrians(), // need to understand the pedestrian situation

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package de.westnordost.streetcomplete.quests.oneway

import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.data.elementfilter.toElementFilterExpression
import de.westnordost.streetcomplete.data.osm.geometry.ElementGeometry
import de.westnordost.streetcomplete.data.osm.mapdata.Element
import de.westnordost.streetcomplete.data.osm.mapdata.MapDataWithGeometry
import de.westnordost.streetcomplete.data.osm.mapdata.filter
import de.westnordost.streetcomplete.data.osm.osmquests.OsmElementQuestType
import de.westnordost.streetcomplete.data.quest.AndroidQuest
import de.westnordost.streetcomplete.data.user.achievements.EditTypeAchievement
import de.westnordost.streetcomplete.osm.Tags
import de.westnordost.streetcomplete.quests.oneway.OnewayAnswer.BACKWARD
import de.westnordost.streetcomplete.quests.oneway.OnewayAnswer.FORWARD
import de.westnordost.streetcomplete.quests.oneway.OnewayAnswer.NO_ONEWAY

class AddOnewayAerialway : OsmElementQuestType<OnewayAnswer>, AndroidQuest {

private val elementFilter by lazy { """
ways with
aerialway ~ gondola|mixed_lift|chair_lift|t-bar|j-bar|platter
and !oneway
""".toElementFilterExpression() }

override val changesetComment = "Specify whether aerial ways can be used both ways"
override val wikiLink = "Key:oneway"
override val icon = R.drawable.quest_oneway
override val hasMarkersAtEnds = true
override val achievements = listOf(EditTypeAchievement.PEDESTRIAN)

override val hint = R.string.quest_arrow_tutorial

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

override fun getApplicableElements(mapData: MapDataWithGeometry): Iterable<Element> = mapData.ways.filter { elementFilter.matches(it) }

override fun isApplicableTo(element: Element): Boolean? = elementFilter.matches(element)

override fun createForm() = AddOnewayForm()

override fun applyAnswerTo(answer: OnewayAnswer, tags: Tags, geometry: ElementGeometry, timestampEdited: Long) {
tags["oneway"] = when (answer) {
FORWARD -> "yes"
BACKWARD -> "-1"
NO_ONEWAY -> "no"
}
}

override fun getHighlightedElements(element: Element, getMapData: () -> MapDataWithGeometry) =
getMapData().filter("""
nodes, ways with aerialway
""".toElementFilterExpression())
}
2 changes: 2 additions & 0 deletions app/src/androidMain/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ Before uploading your changes, the app checks with a &lt;a href="https://www.wes
<string name="quest_bollard_type_fixed">Fixed (not removable)</string>
<string name="quest_bollard_type_not_bollard">Not a bollard, but some other barrier</string>

<string name="quest_bothway_title">In what direction can you ride this?</string>

<string name="quest_bridge_structure_title">What’s the structure of this bridge?</string>

<string name="quest_building_entrance_title">What kind of building entrance is this?</string>
Expand Down