MeridianMERIDIAN

International Calling Code

geography.contact.calling_code

International dialing code for a country (e.g., +1 for USA/Canada, +44 for UK, +33 for France). May include +, may not.

Worked samples

DuckDB 1.5.5 · finetype 0.6.64

ValueAs VARCHARcode
+1+11
+44+4444
+33+3333
+81+8181
111
Scope
Locale-specific
Locales
EN, EN_AU, EN_GB, EN_CA, EN_US, DE, FR, ES, IT, NL, PL, RU, JA, ZH, KO, AR, ZA, PT_BR, ES_MX, HI, ES_AR, ES_CL, ES_CO, ES_PE, SE, NO, DK, FI, CZ, HU, RO, GR, TR, IL, TH, MY, SG, PH, ID, TW, NZ, NG, PT, AT, CH, BE, IE
Per-locale rule
AR^\+?966$
AT^\+?43$
BE^\+?32$
CH^\+?41$
CZ^\+?420$
DE^\+?49$
DK^\+?45$
EN^\+?1$
EN_AU^\+?61$
EN_CA^\+?1$
EN_GB^\+?44$
EN_US^\+?1$
ES^\+?34$
ES_AR^\+?54$
ES_CL^\+?56$
ES_CO^\+?57$
ES_MX^\+?52$
ES_PE^\+?51$
FI^\+?358$
FR^\+?33$
GR^\+?30$
HI^\+?91$
HU^\+?36$
ID^\+?62$
IE^\+?353$
IL^\+?972$
IT^\+?39$
JA^\+?81$
KO^\+?82$
MY^\+?60$
NG^\+?234$
NL^\+?31$
NO^\+?47$
NZ^\+?64$
PH^\+?63$
PL^\+?48$
PT^\+?351$
PT_BR^\+?55$
RO^\+?40$
RU^\+?7$
SE^\+?46$
SG^\+?65$
TH^\+?66$
TR^\+?90$
TW^\+?886$
ZA^\+?27$
ZH^\+?86$

Shape

Pattern
^\+?[0-9]{1,4}$
ValueLengthShape
+12matches
+443matches
+333matches
+813matches
11matches
+1rejected: one character short

Background

Origin

Recommendation E.164 is published by the Telecommunication Standardization Sector of the International Telecommunication Union (ITU-T).[1] The version of E.164 in force is E.164 (02/26).[2]

E.164 recommends that the national (significant) number be at most 15 – n digits, where n is the number of digits in the country code.[1] E.164 defines the country code for Global Services as a 3-digit country code.[1]

ITU-T Recommendation E.123 says the international prefix symbol should be + (plus) and should precede the country code in the international number.[3] E.123 explains that the plus sign reminds the subscriber to dial the international prefix, which differs from country to country.[3] E.123 also says the plus sign identifies the number following it as the international telephone number.[3]

Use

The ITU publishes a List of ITU-T Recommendation E.164 assigned country codes, in numerical and alphabetical order.[4] The 2005 edition of the ITU list gives code 7 to both Kazakhstan and the Russian Federation.[4] The 2005 edition of the ITU list marks country code 0 as reserved.[4]

Wikipedia writes the members of the North American Numbering Plan as 1 followed by a three-digit area code, such as 1 (684) for American Samoa.[5] GeoNames' countryInfo.txt gives American Samoa's phone code as +1-684.[6] GeoNames' countryInfo.txt gives the Dominican Republic's phone code as +1-809 and 1-829.[6] Before validating a calling-code column, look for these area-code variants and multi-value cells, and decide whether to keep the area code or reduce each value to the bare country code. (Meridian's view)

The 2005 edition of the ITU list shows Vatican City State under both 39 and 379.[4] GeoNames' countryInfo.txt gives Vatican's phone code as 379.[6]

In the libphonenumber README, a Swiss number parsed with region CH yields a country_code of 41.[7] The libphonenumber README shows the same Swiss number formatted in E.164 as +41446681800.[7] Store calling codes as text, strip any leading plus before comparing, and keep the plus only for display. (Meridian's view)

Detection notes

v1 migration: Was address.calling_code (also aliased to address.isd_code). May include +, may not. Locale-specific for country association. Range: 1-4 digits.

Use it

CLI · DuckDB
$ finetype infer -i "+1" --mode column
→ geography.contact.calling_code

SELECT ft_infer('+1');
-- → 'geography.contact.calling_code'
Cast expression
CAST({col} AS VARCHAR)

Schema

https://meridian.online/schemas/geography.contact.calling_code · Frictionless type string

finetype taxonomy geography.contact.calling_code -o json-schema

Aliases

isd_codecountry_code

Type Registry