Skip to content

Conversation

@NicodeH
Copy link
Contributor

@NicodeH NicodeH commented Oct 2, 2025

Discussion : #6457
Adding first aid kit quest

@HolgerJeromin HolgerJeromin mentioned this pull request Oct 2, 2025
@HolgerJeromin
Copy link
Contributor

This has parts of #6538 and many more commits which do not belong here

Copy link
Collaborator

@paulklie paulklie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work so far!

@NicodeH NicodeH requested a review from paulklie October 7, 2025 09:32
Copy link
Collaborator

@paulklie paulklie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good. I think others might be better at giving feedback for the icon which I suspect might need some more work.

@paulklie
Copy link
Collaborator

paulklie commented Oct 7, 2025

Also if your icon is approved you should add it and your name to https://github.com/streetcomplete/StreetComplete/blob/master/res/graphics/authors.txt

@westnordost
Copy link
Member

westnordost commented Oct 8, 2025

Hmm, has it been discussed whether it would be better to make the AddDefibrillatorLocation quest generic enough that it can be asked for other things, too, as it is otherwise a complete duplicate of that quest? Otherwise, we might quickly end up with an array of quests like these, which each need

  • an own icon
  • an own title
  • about 40 lines of code

To generalize the AddDefibrillatorLocation quest instead, we'd need to

  • find a more generic icon
  • more generic title
  • change logic in getHighlightedElements() to only highlight the exact same feature
  • rename quest and form, rename quest also in database via DatabaseInitializer.kt once, add alias for the old name in EditTypeAliasesModule.kt so that the old quest also appears correctly in statistics

but only once, of course.


On the other hand, having had a look at taginfo, the *:location key is currently not used (in that way) for any other map feature than the defibrillator. Even first_aid_kit:location is basically unused now. Was this tag discussed in the community? It is also not mentioned in the wiki.
Anyhow, my point is that there may be more things for which it is currently not tagged with a description where they are. I don't know, are there? Can anyone come up with more things that could use a precise location description?


Independent of the above, does the AddDefibrillatorLocation (and then subsequently the AddFirstAidKit) even appear at all with the current filtering?

Both filter out any objects with location already tagged. Doesn't the quest that asks whether the amenity is indoor add exactly this tag (location=indoor/outdoor)?

@paulklie
Copy link
Collaborator

paulklie commented Oct 9, 2025

Both filter out any objects with location already tagged. Doesn't the quest that asks whether the amenity is indoor add exactly this tag (location=indoor/outdoor)?

No, it adds indoor=yes/no :

IsAmenityIndoorAnswer.INDOOR -> tags["indoor"] = "yes"
IsAmenityIndoorAnswer.OUTDOOR -> tags["indoor"] = "no"
IsAmenityIndoorAnswer.COVERED -> tags["covered"] = "yes"

@paulklie
Copy link
Collaborator

paulklie commented Oct 10, 2025

On the other hand, having had a look at taginfo, the *:location key is currently not used (in that way) for any other map feature than the defibrillator.
Anyhow, my point is that there may be more things for which it is currently not tagged with a description where they are. I don't know, are there? Can anyone come up with more things that could use a precise location description?

I see quite a bit of usage for:

Other than being useful, I feel like asking the location of an object should be done only if the following apply:

  1. The object should not be to common. The free text location quest is one of the most time consuming quests in the app, asking for to many objects wastes users time. for example the over 2 million fire hydrants would quickly overload this app.
  2. The object should be easily accessible. Changing tables, for example, would require surveying every toilet. In countries with gendered toilets this can be illegal. Also this might require paying a fee.
  3. The object should be in a complex, ideally indoor, environment: It does not make scene to ask for objects placed outdoors where their location will be obvious from its coordinates. since a description adds little additional information. For example, many post boxes are outdoors and especially in rural settings asking for them will quickly become very tedious.

I cannot think of any other objects that fulfill these requirements, other than the AED and first aid kit.

Even first_aid_kit:location is basically unused now. Was this tag discussed in the community? It is also not mentioned in the wiki.

I have not found any such discussion, however I would argue that since an first aid kit is very similar to a defibrillator, both in purpose and placement, that this tag makes a lot of sense here.

@westnordost
Copy link
Member

For fire hydrants, changing tables and post boxes, the key seems to be used in a different way, however. Look at the values. It's not a free-text description but some pre-defined values for e.g. changing tables, for post boxes it is some address and for fire hydrants it's mostly just the road... which doesn't make much sense.

Copy link
Member

@westnordost westnordost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I take from the earlier comment that other than defibrillators and first aid kits, there's probably not going to be anything else that should be asked for like this. So, let's leave this quest as-is.

I might also change the icon a little after merge.

@paulklie paulklie added the new quest accepted new quest proposal (if marked as blocked, it may require upstream work first) label Oct 19, 2025
@westnordost
Copy link
Member

I made the icon more similar to the defibrillator icon and better visible when displayed at a small size.

@westnordost westnordost merged commit 05b8c42 into streetcomplete:master Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new quest accepted new quest proposal (if marked as blocked, it may require upstream work first)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants