Motivation
There are many phone numbers in OSM which are not in the agreed format, which includes a country code and excludes most punctuation, and such numbers keep being mapped. This makes it difficult to find actual issues with phone numbers, such as where a number has been transcribed incorrectly in a way that makes it invalid.
I have created the Phone Report website which suggests fixes to phone numbers and identifies invalid phone numbers. This has been in use over recent weeks to fix many phone numbers. Some of those changes are very simple and similar to each other and could be made automatically.
Making automatic changes in simple cases saves mappersâ time and allows them to spend time on identifying and fixing actually invalid phone numbers.
Proposal
I propose to run an ongoing automated edit on objects with phone, contactËphone, mobile, contactËmobile, phoneËmobile, fax , contactËfax or contactËwhatsapp. in the UK to reformat phone numbers which have extra punctuation or are missing the country code remove the punctuation and add a country code.
This automated edit has already been discussed and accepted in the US community and is running there.
Edits
Edits will only be made if all of the following applyË
-
The value in the phone tag consists of only digits, spaces, brackets, dashes, hyphens, full stops or invisible formatting marks such as non-breaking spaces and zero-width spaces
-
The value can be parsed using libphonenumber-js assuming a UK country code
-
The new number is a valid phone number
-
The new number is a UK number with
+44country code -
The new number is different by more than just the addition or removal of spaces, for example a country code was added or punctuation was removed
-
The OSM element does not contain any duplicate phone numbers
-
The new phone number is not classified as a non-mobile phone number in a mobile tag
-
And only if all of the above applies to every phone tag on the object
This is a subset of the suggested fixes on Phone Report, in particular it excludes any tag with multiple numbers, the duplicate and non-mobile number checks, any numbers with extensions or any with letters.
Number of Objects Affected
Over the past months I have made many edits manually, so this does not affect many objects, but will save manual effort going forward. As of 2025-12-02, there wereË
-
387 OSM objects with invalid phone numbers
-
Of these, 89 have automatic fixes suggested on the website
-
Of these, 73 would be affected by by this edit
Once the first edit has been done, it would be only objects that had been edited in the past day that would be affected, likely fewer than 10 per day.
Grouping of Edits
Edits would be grouped by the regions shown on the website, such as East Midlands, Greater London, Wales, Scotland etc., with up to one changeset per region per day.
Examples of edits that would and would not be made
Example Edits
n1769294100: phone=020 7256 3240 to phone=+44 20 7256 3240
n697306695: phone=+4401200423267 to phone=+44 1200 423267
Edits suggested on the website but not made by the bot
w156454940 has a number that looks like a landline in a mobile tag, which is suggested to move to the main phone tag. In this case, it is a textphone number which may need other tagging.
-
mobileË
+44 3456 000 606 -
suggested fixË
phone = +44 345 774 0740; +44 345 600 0606(appending the number to the existing phone value).
w219231501 the phone value has extra text, which technically makes the number invalid, but it is still parseable with libphonenumber.
-
phoneË
+44 115 929 6251 'lower-school';+44 115 900 8624 'sixth form' -
suggested fixË
+44 115 929 6251; +44 115 900 8624
Such cases could be considered valid, or could show that more detailed mapping would be needed.
Objects not detected as issues
w589640152: phone =+441843 229 484
This does not have a space after the country code, so is not in the target format, but is still valid.
Full List of Edits
See here for the full list of edits that would be made by this proposal, as of 2025-12-02.
Timescale
I will wait at least 10 days, until 2025-12-12, for any comments before commencing this edit. The proposal will also be shared to be posted in weekly OSM.
Wiki Page
Reading this but not from the UK?
I am happy to extend this edit to other regions. Let me know if you think this would be accepted in your country and a further proposal could be made. Meanwhile, check the phone report website and look at the suggested fixes. Make some edits and report any errors with the tool.