Proposed automated edit of phone numbers in Türkiye

I have a website to detect and offer fixes for phone numbers in OSM data. Türkiye was added by @hakan in December and since then quite a few of the issues have been fixed. However, there are currently 7693 values detected as invalid, almost 16% of all phone values tagged. Most of these are very easy to fix as they are simply a case of no country code being recorded or someone putting part of the number in brackets.

Take a look at the suggested fixes and let me know what you think.

I have an ongoing bot edit for simple cases and I would like to propose enabling that in Türkiye.

As of today, out of the 7094 suggested fixes, 6896 would be made by the bot. I can provide a list of the exact changes if that is desired. The fixes not made are cases like where there are multiple phone numbers or there is text in the tag value.

Note: I am happy to use the translate button for your replies.

1 Like

Hi.

I see that you change numbers with the form of 444 abcd to +90 444 abcd. I am almost sure that these numbers are not callable when prefixed with the country code. Therefore they are only callable within Turkey. I think that change should not be made.

3 Likes

We have the same problem here in Germany, only the other way round, please have a look here:

This calls for international cooperation…

Greetings from Herborn, Hesse, Germany

Andreas

Thank you for taking a look.

I can’t find a lot of information on such numbers, after a quick search (in English). However, Wikipedia says (without listing a source for this) that they can be dialled from other countries, with a country code. Additionally, Akbank claim that they can be reached via +90 444… from abroad.

If you can find any more information on this, please let me know.

Their website says so, but my phone cannot reach that number. This happens *in Turkey* though, I don’t know whether it works abroad.

The only related web source I found is from a turkish forum: 444'lü numaraları Yurtdışından nasıl arayabilirim? | DonanımHaber Forum

Their situation is same as mine. But there is no solution provided in that topic: Apparently the author “fixed” their problem by using a phone in Turkey…

Thank you for checking that, in which case I will leave such numbers in without +90 and also ensure that if there are any numbers like that with +90 that the suggestion is to remove the +90.

I will give a few more days for any feedback, then I plan to enable the bot in Türkiye

If you will start the conversion, I guess the id editor’s phone number layout suggestion ( iD/data/phone_formats.json at e547da5bf78bf61ff9bfe60eb5a348bcad210679 · openstreetmap/iD · GitHub ) should be changed as well. I am saying this because I “fixed” 10s of phone numbers in order to comply with that spacing suggestion…


Bu arada, id editöründeki değişikliği yapan kişi de ingilizce vikipedi’den bir örnek alarak yapmış ( Add Turkish phone format by mertemin · Pull Request #3736 · openstreetmap/iD · GitHub ). Telaffuz ederken +90 123 456 78 90 gibi söylüyoruz. Bunun bir standardı yok mu peki? +90 123 456 78 90 mi +90 123 456 7890 mi?

I don’t see that spacing matters at the end like that, +90 123 456 78 90 doesn’t need changing to +90 123 456 7890 or the other way round, and that’s not what the edit is about at all.

is this an unwanted side effect then? Node: ‪Only Blue Mansion‬ (‪2463696569‬) | OpenStreetMap

I see, thank you. At some point I decided that if we were doing one edit to an element then we may as well format the other numbers while we’re there, on the basis that something like+901234567890 is fairly unreadable and unhelpful for mappers.

Note that the specific edit you point out there would not be made by the bot since it involves a duplicate number. However, in some other case it could happen.

I will therefore remove that reformatting of other numbers so that it only touches actually invalid values.

Correction, having checked over the code, this reformatting only happens when there is a duplicate number, not for any other sort of edit. It’s a little tricky to unpick and so I am tempted to leave it as it is. As I said, these edits would not be made by the bot and people have options for if and how they edit a suggestion shown on the website.

1 Like

The bot edit commenced today, and will continue to run and clean up new issues as they appear.

Everything left on the website are issues that the bot will not fix. The suggested fixes left are largely multiple numbers in a tag or some cases of duplicate numbers. Most of these edits are likely to be safe, but be sure to report of any issues that you notice.

There are now 802 invalid numbers, of which 199 have fixes suggested. The truly invalid ones are the interesting ones in my opinion, but they do require a bit more work to fix.