-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Highlight invalid field values #2836
Comments
Thanks for the suggestion, but I'd prefer for users who are interested in OSM data quality and cleanups to use dedicated tools like Keepright or Osmose. While I don't know of any actual studies done, I suspect that there is a kind of 1% rule in OSM participation. E.g. for every 1000 casual mappers, we might get 100 who stick around as power mappers (creators), 10 who focus on cleanup (editors), and 1 who actually contributes code (creators). These numbers are completely made up, but they feel about right to me. iD's goal is to widen the mouth of this participation funnel, so we don't want to turn away the casual mappers by prompting them to cleanup tags (a task that, while important, relatively few OSM participants are interested in). I would rather get them addicted to mapping, knowing that a handful of of them will convert into users that will take ownership of the map where they live and keep it clean using a dedicated QA tool. So here are some things that I would support in iD:
I'll leave this issue open for discussion... |
My idea is that a mapper who is using iD is very likely a local. |
But splitting a buggy way and sort the right tags to the parts is probably not easy, too |
Yep, probablly that would need support by iD. In JOSM I check the history of the way to find the |
In view of existing Tags I agree. Fail safe validation is likely impossible and iD must not generate warnings on existing Tags which might be wrong. Such wrong warnings in JOSM are a real problem, because even some power mappers tend to simply delete reasonable Tags just because of the validator warning. With the less experieced iD users this would be much bigger problem. Tags added during the current edit session are a completely different thing. In this case a warning that something looks funny doesn't really hurt even if it is possibly wrong. Tags of new objects which have come from existing objects by spitting or copying must not be considered as objects being added during the current session. Therefore tags should be validated (or marked for validation) when they are manually added. |
A further usecase for highlighting invalid fields is: “Only basic phone number check” (#4338 has been closed in favor of this issue here):
|
Could checks like the phone numer check be implemented now using the new validation framework that is available since v2.14? |
@sommerluk Yep, see #5866. |
Okay. So for phone numbers, I propose checking against this regular expression: ^\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[0-9 \.-]*$ Maybe add support for multiple, semicolon-separated values? The corresponding wiki page mentions that this is used “sometimes”. |
This only controls if the phone number starts with an international prefix, and the rest of the number is simply free style (allowing arbitrary combinations of digits and separators like space or hyphen). |
Any news about phone number checking here? |
If I got it right, version 1.8.0 will not so easily produce
these invalid tags now, see
#2809
Would it also be possible to ask the mapper to correct existing
invalid tags ?
Example:
If I change a highway with oneway="yes;no" or "surface=asphalt;gravel"
could iD ask me to correct the wrong tags?
Something like a popup with the text
"If you are local, please try to correct (improve) the attribute xyz before saving"
The text was updated successfully, but these errors were encountered: