Skip to content

Change the placeholder to a country code that no other country uses.#1491

Merged
tordans merged 5 commits intoopenstreetmap:mainfrom
youssefelzedy:Change-the-Placeholder
Sep 15, 2025
Merged

Change the placeholder to a country code that no other country uses.#1491
tordans merged 5 commits intoopenstreetmap:mainfrom
youssefelzedy:Change-the-Placeholder

Conversation

@youssefelzedy
Copy link
Copy Markdown
Contributor

Description, Motivation & Context

After a misunderstanding about the +31 code, which represents a phone number for the country of Holden, @tyrasd suggested changing this code to any other code that doesn't belong to any country. He then suggested the code +876. After searching Wikipedia, it turned out to be for the country of North America.

After some thought, he realized that after choosing a random number, it's possible that one day another country will come and take it, and in that case, we wouldn't have done anything about it. So, he suggested changing this from a number to a symbol like +XX, so that it doesn't represent any country. Thus, we would have solved the problem once and for all, and we wouldn't need to change it again.

Related issues

#10917

Links and data

https://en.wikipedia.org/wiki/Area_codes_876_and_658

@Vectorial1024
Copy link
Copy Markdown
Contributor

Alternatively, some sort of zero-value might just work. Like, "+000 0000 0000 0000". Then, it communicates there should be some sort of country phone prefix, followed by the local format of the phone number.

I was not there when the previous PR was drafted, but indeed, the problem was somehow selecting specifically +31 (the Netherlands) instead of admitting "the schema/system doesn't know". Let's see how others feel about whether "XX" or "00" should be used.

@youssefelzedy
Copy link
Copy Markdown
Contributor Author

@Vectorial1024 It is a perfect idea to use +00. I found that there is no country using +00 as a country code.
What about you @tyrasd ?

Here is the list of all the code countries:
https://en.wikipedia.org/wiki/List_of_telephone_country_codes

@Vectorial1024
Copy link
Copy Markdown
Contributor

Whether using 0 or X, 3 digit is recommended because some phone prefixes are 3 digits (eg Hong Kong +852).

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2025

🍱 Your pull request preview is ready

Please use this preview to check your changes. Ideally use the test documentation template and document your test results by commenting on the PR. This will speed up the review process for everyone.

FYI, once this PR is merged, you can use the iD Editor Preview to test your changes in interaction with all other changes.

Comment thread data/fields/phone.json Outdated
@tordans
Copy link
Copy Markdown
Collaborator

tordans commented Sep 15, 2025

Lets go with @Vectorial1024's suggestion and merge this as +000 0000 0000 0000

@tordans tordans merged commit 0a19961 into openstreetmap:main Sep 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants