Motivation
There are many phone numbers in OSM which are not in the agreed format, which includes a country code and excludes most punctuation. 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 or phoneËmobile in the USA and territories to reformat phone numbers which have extra punctuation or are missing the country code to the format +1-555-555-5555
Edits
Edits will only be made if all of the following applyË
-
The value in the phone tag consists of only digits, spaces, parentheses, dashes, hyphens, periods or invisible formatting marks such as non-breaking spaces, zero-width spaces
-
The value can be parsed using libphonenumber-js assuming a
+1country code -
The new number is a valid phone number
-
The new number is a US number with
+1country code -
The new number is different by more than just the addition or removal of spacing characters (spaces and hyphens), 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.
The target formatting of the numbers would be +1-555-555-5555 after discussion with members of the US community.
Number of Objects Affected
As of 2025-11-16, in the United States Of America there wereË
-
33,749 OSM objects with invalid phone numbers
-
Of these, 31,530 have automatic fixes suggested on the website
-
Of these, 28,656 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 state per day.
If accepted, I would start with a single changeset for a single state, probably Alabama since it is alphabetically first, and post it here for verification before continuing with the rest of the states.
Grouping of Edits
Edits would be grouped by state, with up to one changeset per state per day.
Examples
Example Edits
n13298223257: phone = 3349231048 to phone = +1-334-923-1048
w1450897471: phone = (256) 870-3424 to phone = +1-256-870-3424
Edits suggested on the website but not made by the bot
n9947820920 has multiple phone numbers with an incorrect separator. To be safe, objects with multiple phone numbers in one tag are not included in this proposal.
-
phoneË
+1 800 838 9647 / +1 800 835 4386 -
suggested fixË
+1-800-838-9647; +1-800-835-4386
n2581950490 the phone value has extra text, which technically makes the number invalid, but it is still parseable with libphonenumber.
-
phone:
+1 605-397-8100 "non emergency calls" -
suggested fixË
+1-605-397-8100
Objects not detected as issues
w971256647: phone = +1 410-390-7029
This is not in the agreed 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-11-16.
Timescale
I will wait at least two weeks, until 2025-11-30, 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 USA?
Once this is accepted and running, I would be happy to extend it 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.