You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case
Sometimes, some existing amenity/shop has lacking (e.g. no brand, brand:wikidata etc) details, or shortened (or slightly misspelled) name (e.g. Raiffaisen bank or RBA instead of correct Raiffeisen bank).
Nice way to quickly remedy that is Places Overlay, where one just searches for correct brand in NSI, and all the ideal data (correct most popular name, brand, wikidata etc.) is filled in automatically!
That works great when existing amenity does not have much extra details, e.g. it only has amenity=bank (and maybe name=*).
However, if amenity had extra details (e.g. amenity=bank + name=RBA + opening_hours + wheelchair + drive_through + bic) when NSI for "Raiffeisen bank" is selected, all those extra details (opening_hours, wheelchair, ...) are removed without question, which makes using NSI for such improvements unusable (as it breaks more stuff than it fixes)
I would suggest that in such cases when selected NSI does not change the type of the feature, user should be presented with confirmReplaceShop() dialog instead (that should happen automatically if shouldAlwaysReplaceShop is false), thus allowing them to choose to preserve all those pre-existing details like opening_hours etc.
Furher refinement to slightly reduce effort for mapper (but not strictly necessary) would be to set shouldNotReplaceShop instead if both the feature type and the name remain the same, which would automatically preserve pre-existing data without even asking the user.
The text was updated successfully, but these errors were encountered:
Feature.isSuggestion denotes whether it is a brand feature or not (e.g. Raiffeisen bank, ...)
a Feature doesn't know it's parent (Raiffeisen bank -> Bank), but it does have an id, which is basically a path. E.g. for "Raiffeisen Bank (Croatia)", we have as id"amenity/atm/raiffeisenbank-4d8c03". Just look at the presets.json.
Use case
Sometimes, some existing amenity/shop has lacking (e.g. no
brand
,brand:wikidata
etc) details, or shortened (or slightly misspelled) name (e.g.Raiffaisen bank
orRBA
instead of correctRaiffeisen bank
).Nice way to quickly remedy that is Places Overlay, where one just searches for correct brand in NSI, and all the ideal data (correct most popular name,
brand
, wikidata etc.) is filled in automatically!That works great when existing amenity does not have much extra details, e.g. it only has
amenity=bank
(and maybename=*
).However, if amenity had extra details (e.g.
amenity=bank
+name=RBA
+opening_hours
+wheelchair
+drive_through
+bic
) when NSI for "Raiffeisen bank" is selected, all those extra details (opening_hours
,wheelchair
, ...) are removed without question, which makes using NSI for such improvements unusable (as it breaks more stuff than it fixes)It seems to be because shouldAlwaysReplaceShop gets triggered.
(Inspired by Helium314#670 (comment))
Proposed Solution
I would suggest that in such cases when selected NSI does not change the type of the feature, user should be presented with confirmReplaceShop() dialog instead (that should happen automatically if
shouldAlwaysReplaceShop
isfalse
), thus allowing them to choose to preserve all those pre-existing details likeopening_hours
etc.Furher refinement to slightly reduce effort for mapper (but not strictly necessary) would be to set
shouldNotReplaceShop
instead if both the feature type and the name remain the same, which would automatically preserve pre-existing data without even asking the user.The text was updated successfully, but these errors were encountered: