<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2017-09-05 21:01, Lukas Sommer
wrote:<br>
</div>
<blockquote
cite="mid:CAFTrL-0=vwY51QiWfmYGT2_prWgabhd27ak02JmjrM8fdrBX+Q@mail.gmail.com"
type="cite">
<pre wrap="">It would likely yet help a lot if th editors would simply check if
- the number does not start with “+”
- the number (after the starting “+” sign) contains other characters
then digits, spaces (and maybe dashes).
This is quite simple and could nevertheless catch yet a lot of issues…</pre>
</blockquote>
Yes it is not too complicated.<br>
Typing this at Ubuntu or any Linux command line does what you say:<br>
<br>
$ read -p 'Phone number: ' number; [[ $number =~ ^[+][0-9\ \-]*$ ]]
&& echo GOOD<br>
Phone number: 866 356 8207<br>
Phone number: +1 866-356-8207<br>
GOOD<br>
<br>
It can be included in a program and easily improved to enforce a
separated country code, maximum of digits, etc.<br>
<br>
I'll suggest this to JOSM and they'll probably do it. They're the
best.<br>
<br>
Use JOSM. JOSM is the best.<br>
<br>
Using Ubuntu/Linux is fun. One can even use it without leaving
Windows:<br>
Install VirtualBox and use it to install Linux. Ubuntu MATE
recommended.<br>
<br>
Cheers
<br>
<br>
<table>
<tbody>
<tr>
<td>André.</td>
</tr>
</tbody>
</table>
<br>
<blockquote
cite="mid:CAFTrL-0=vwY51QiWfmYGT2_prWgabhd27ak02JmjrM8fdrBX+Q@mail.gmail.com"
type="cite">
<pre wrap="">2017-09-05 16:51 GMT, marc marc <a class="moz-txt-link-rfc2396E" href="mailto:marc_marc_irc@hotmail.com"><marc_marc_irc@hotmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
on the french-speaking mailing, a contributor noticed a high rate
of incorrect value for the tag "phone". the most common error is using
the national format number instead of the international format.
A monthly project 'll maybe fix some of those errors.
Some quality tool can help those fix.
But the best would be to avoid the mistake when a user fill
in the data in iD, josm or whatever.
Is anyone aware of a kind of "preset" that can be used for phone ?
Otherwise it would be useful to create with local communities a wiki
page containing a list of valid prefixes example + 322xxxxxxx is valid,
+331xxxxxxxx also but 01xxxxxxxx is not valid in France.
Or using something like <a class="moz-txt-link-freetext" href="https://github.com/googlei18n/libphonenumber/">https://github.com/googlei18n/libphonenumber/</a>
<a class="moz-txt-link-freetext" href="https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#where-do-we-get-information-from-to-determine-if-a-number-range-is-valid">https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#where-do-we-get-information-from-to-determine-if-a-number-range-is-valid</a>
Would it also be useful to put a corrective suggestion?
for example 01xxxxxxxx #+331xxxxxxxx
Of course, I am not talking about the exact form of the list,
nor the fact that some countries will have a list,
while others not.
nor the difficulty when a poi has several corresponding numbers
attached several countries.
I 'm talking about the general guideline.
The aim is not to forbid some values but to allow
common editor to guide the user to avoid a very common error.
_______________________________________________
Tagging mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/tagging">https://lists.openstreetmap.org/listinfo/tagging</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>