-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement ičo and vatin quests #669
base: modified
Are you sure you want to change the base?
Conversation
relevant discussion in StreetComplete repo streetcomplete#5933 |
app/src/main/java/de/westnordost/streetcomplete/quests/place_vatin/AddPlaceVatinForm.kt
Show resolved
Hide resolved
fullElementSelectionDialog(context, prefs, questPrefix(prefs) + PREF_ELEMENTS, R.string.quest_settings_element_selection, NAME_PLACES) | ||
} | ||
|
||
private val NAME_PLACES = mapOf( |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be made separate list, curated for the features that are actually likely to have ref:vatin
/ ref:ico
signed. I mean, it seems very unlikely to me that landuse=cemetery
or military=barracks
and military=training_area
would each have their own ref:vatin
, for example!
Better start with smaller list to avoid a lot of places where it less likely that VATIN would be signed... It can always be extended later...
So, if the lists are same for both ref:vatin
and ref:ico
, I'd create a new list (e.g. var VATIN_PLACES = mapOf(....
), put it in separate file (in same directory as the quests) and the import it in both quests; to avoid duplication and ease updating of the list in the future (if needed).
app/src/main/java/de/westnordost/streetcomplete/quests/place_ico/AddPlaceIco.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/place_ico/AddPlaceIco.kt
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/place_vatin/AddPlaceVatin.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/place_vatin/PlaceVatinAnswer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/place_vatin/AddPlaceVatin.kt
Outdated
Show resolved
Hide resolved
The quests should be limited to countries where they (reasonably) apply, i.e. CZ and SK for IČO, and EU and some more for vatin (here it also depends how easy it's to find, be it from outside or on receipts). Further, same as for contact quests, I do not want to push (nearly) unused (I'm also not happy about very country-specific quests of low importance, as I fear this will invite other people wanting to add such quests... While a few are fine (we also have the SC postbox cypher quest), this has potential to evolve into a huge list, making quest selection hard to use.) |
That one is easy @vfosnar; just search for
Yeah, I tend to agree. Even if *:signed prefix is defined, we should try not to spam it with newly invented values; especially in quests where it is not critical for using the data (like here).
Agreed.
Also I note conflicts in |
Certainly.
Yes, SC strings should ideally not be touched (only strings_ee). |
I used
place_name
quest as a template, I'm not sure if the element selection is okay and if it shouldn't be refactored in some way