Skip to content
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

Quest about defibrillator location appears even if local location already filled #6123

Closed
Wouter-M opened this issue Feb 6, 2025 · 4 comments

Comments

@Wouter-M
Copy link

Wouter-M commented Feb 6, 2025

I got asked to describe the location of a defibrillator (location Netherlands), even though defibrillator:location:nl was already filled in.

How to Reproduce
Example of the node where this happened: https://www.openstreetmap.org/node/11597869445#map=19/53.211012/6.565124

Expected Behavior
If the local language is already filled in, do not ask for filling in location.

Versions affected

V60.1
Android 14

@Wouter-M Wouter-M added the bug label Feb 6, 2025
@mcliquid
Copy link
Contributor

mcliquid commented Feb 6, 2025

Why is defibrillator:location:nl set when defibrillator:location is not set? And shouldn't the main tag represent the local language in the respective country? Osmose would throw an error as far as I know. Osmose would also throw an error if defibrillator:location:nl and defibrillator:location are set simultaneously in the Netherlands because it would be duplicated and redundant information.

@mnalis
Copy link
Member

mnalis commented Feb 6, 2025

I got asked to describe the location of a defibrillator (location Netherlands), even though defibrillator:location:nl was already filled in.

Yes, it checks only location and defibrilator:location tags:

Why is defibrillator:location:nl set when defibrillator:location is not set? And shouldn't the main tag represent the local language in the respective country?

I would expect that too, but there are different tagging practices. Netherlands itself is perhaps1 somewhat easy case where nl is known language default, but for other countries (and especially smaller regions!) which have multiple official languages, it is not that easy.

Osmose would throw an error as far as I know. Osmose would also throw an error if defibrillator:location:nl and defibrillator:location are set simultaneously in the Netherlands because it would be duplicated and redundant information.

I'd need to recheck, but I seem to recall the opposite - that Osmose was actually complaining when name and name:en were set in Croatia, but name:hr was not set (i.e. it expected duplicate information - that name:hr was set to the same value as name).

But then, I would always take Osmose warnings with grain of salt.


That being said, I do not see an easy solution for skipping the quest. While SC could skip asking the defibrilator location if any of the languages is provided; that is (to say the least) not optimal.

Given the importance of the AEDs, I'd say current situation of having user entering (possibly duplicate) location in case defibrilator:location tag is missing is preferred, even if it results in some duplication of information. Some data consumers might not have support for language-specific *:location tags, and you'd probably want this information to be quickly and readily available in any case.

As an alternative, Netherlands community could decide to do automated edit setting defibrilator:location on all object that have defibrilator:location:nl but miss defibrilator:location if they prefer that.

Footnotes

  1. or is it ? Wikipedia says Frisian language is also official in northern parts, in addition to Dutch? So I can envision situation where defibrilator:location is in Frisian, but defibrilator:location:nl is in Dutch, or there is defibrilator:location:fy but not defibrilator:location (in Dutch(, or defibrilator:location:fy and defibrilator:location:nl but no defibrilator:location etc.

@westnordost westnordost removed the bug label Feb 6, 2025
@mcliquid
Copy link
Contributor

mcliquid commented Feb 6, 2025

I'd need to recheck, but I seem to recall the opposite - that Osmose was actually complaining when name and name:en were set in Croatia, but name:hr was not set (i.e. it expected duplicate information - that name:hr was set to the same value as name).

Just checked, it's Item 5060.

Classes:

  1. Default and local language name not the same
  2. Local language name without default name
  3. Language name without default name
  4. Multilingual not matching
  5. Multilingual missing detailed name
  6. Multilingual missing main name

In these examples (Class 3 above), the name:en and name:hr subkeys are set, but not the main name tag:
https://osmose.openstreetmap.fr/en/issues/open?source=6569&item=5060&class=50602
https://www.openstreetmap.org/node/10025852460
https://www.openstreetmap.org/node/10025869872

But then, I would always take Osmose warnings with grain of salt.

I would always assume that reports from QA tools are about potential concerns, not bugs.

@westnordost
Copy link
Member

See @mnalis

@westnordost westnordost closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants