From d0df223a544b70ef8791f4840df88ebebe3bae2e Mon Sep 17 00:00:00 2001 From: "lararennie@google.com" Date: Tue, 16 Jul 2013 09:49:39 +0000 Subject: JAVA/JS/CPP: libphonenumber v5.6.2 metadata updates. git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/resources@590 ee073f10-1060-11df-b6a4-87a95322a99c --- PhoneNumberAlternateFormats.xml | 115 +++- PhoneNumberMetadata.xml | 1303 ++++++++++++--------------------------- geocoding/ar/82.txt | 34 + geocoding/de/49.txt | 6 +- geocoding/en/241.txt | 60 +- geocoding/en/47.txt | 49 ++ geocoding/en/49.txt | 6 +- geocoding/en/98.txt | 13 +- geocoding/fa/98.txt | 12 +- 9 files changed, 620 insertions(+), 978 deletions(-) create mode 100644 geocoding/ar/82.txt create mode 100644 geocoding/en/47.txt diff --git a/PhoneNumberAlternateFormats.xml b/PhoneNumberAlternateFormats.xml index 9fca114..2f09fa7 100644 --- a/PhoneNumberAlternateFormats.xml +++ b/PhoneNumberAlternateFormats.xml @@ -74,6 +74,15 @@ $1 $2 + + + 1(?: + [38]00| + 90 + ) + + $1 $2 $3 $4 + [2378] $1 $2 @@ -144,7 +153,7 @@ $1/$2 $3 - + 3[02]| 40| @@ -160,6 +169,14 @@ $1/$2 $3 $4 + + + 3[02]| + 40| + [68]9 + + $1/$2 $3 $4 $5 $6 + @@ -203,6 +220,27 @@ $1/$2 $3 + + + 2(?: + \d1| + 0[2389]| + 1[24]| + 28| + 34 + )| + 3(?: + [3-9][15]| + 40 + )| + [4-8][1-9]1| + 9(?: + 06| + [1-9]1 + ) + + $1/$2 $3 $4 + 2(?: @@ -782,6 +820,18 @@ + + + + + $1 $2 $3 + + + $1 $2 $3 $4 + + + + @@ -874,5 +924,68 @@ + + + + + + + [23589]| + 4(?: + [0-35-9]| + 4[0-35-9] + ) + + $1 $2 $3 $4 + + + + + + + + + + [38]9| + 4(?: + [45][0-5]| + 87 + )| + 5(?: + 0| + 6(?: + 3[14-7]| + 7 + )| + 7[37] + )| + 6[36-8]| + 9[1-9] + + $1 $2 $3 $4 + + + + + [38]9| + 4(?: + [45][0-5]| + 87 + )| + 5(?: + 0| + 6(?: + 3[14-7]| + 7 + )| + 7[37] + )| + 6[36-8]| + 9[1-9] + + $1 $2 $3 $4 + + + diff --git a/PhoneNumberMetadata.xml b/PhoneNumberMetadata.xml index 5d8e732..6534260 100644 --- a/PhoneNumberMetadata.xml +++ b/PhoneNumberMetadata.xml @@ -15,7 +15,7 @@ @author: Shaopeng Jia @author: Lara Rennie - MetaData on Phone Number Plan and formatting rules + Metadata on Phone Number Plan and formatting rules Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1 two-letter country codes (or are set to "001" for non-geographical entities, which represents "World" in the UN M.49 standard). The country names in the comments are the @@ -45,7 +45,7 @@ + sharedCost?, personalNumber?, voip?, uan?, voicemail?, emergency?)> @@ -60,7 +60,6 @@ - @@ -663,17 +662,6 @@ \d{8} 60271234 - - - 8[1-7]\d{2}| - 1(?: - 0[04-9]| - [1-9]\d - ) - - \d{3,4} - 8711 - 10[123] \d{3} @@ -1154,17 +1142,6 @@ \d{10} 8101234567 - - - 1(?: - 0[2356]| - 1[02-5]| - 21 - ) - - \d{3} - 121 - 1(?: @@ -2432,39 +2409,6 @@ \d{10} 9604123456 - - - 1(?: - 0(?: - [39]| - 5(?: - 0\d| - [1-4] - )| - 6\d{2}| - 7[0-4]| - 8[0-29] - )| - 1[6-9]| - 2(?: - 2[0-5]| - [34] - )| - 3(?: - 1\d?| - 3\d| - 6[3-6] - )| - 4(?: - 0\d| - 1\d{2} - )| - 5[2-9] - ) - - \d{3,5} - 103 - 10[0-2]| @@ -2625,9 +2569,9 @@ 6(?: - [0156]\d| - [28][0-5]| - 4[01] + [0-256]\d| + 8[0-5]| + 4[0-4] )\d{5}| 7\d{7} @@ -2773,6 +2717,7 @@ + @@ -2811,16 +2756,12 @@ 17001234 - (?: 3(?: - [23469]\d| + [1-4679]\d| 5[035]| - 77| 8[348] )\d| 6(?: @@ -2830,10 +2771,12 @@ 33| 6[16] )| + 500| 6(?: [069]\d| 3[03-9]| - 44 + 44| + 88 )| 9(?: 69| @@ -2894,18 +2837,15 @@ 22201234 - (?: - 29\d| - 7(?: - 1[1-3]| - [4-9]\d - ) - )\d{5} + 29| + 7[14-9] + )\d{6} 79561234 @@ -2949,12 +2889,13 @@ + seems to be no longer accurate. The prefixes 9[46] have also been added, along with + 6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been + reported as having prefixes 68 and 9[89]. --> (?: - 6[467]| - 9[03-8] + 6[46-8]| + 9[03-9] )\d{6} \d{8} @@ -3272,14 +3213,19 @@ NA - 1[1-9]9 + pattern="(\d{2})(\d{5})(\d{4})" + carrierCodeFormattingRule="$NP $CC ($FG)"> + + (?: + 1[1-9]| + 2[12478] + )9 + $1 $2-$3 + pattern="(\d{2})(\d{4})(\d{4})" + carrierCodeFormattingRule="$NP $CC ($FG)"> [1-9][1-9] $1 $2-$3 @@ -3288,7 +3234,7 @@ $1-$2 + pattern="([3589]00)(\d{2,3})(\d{4})"> [3589]00 $1 $2 $3 @@ -3342,8 +3288,11 @@ 7[13-579] )[6-9]\d{7}| (?: - 119\d| - 1[2-9]9[6-9] + 1(?: + 19\d| + [2-9]9[6-9] + )| + 2[12478]9[6-9] )\d{7} \d{10,11} @@ -5077,7 +5026,8 @@ )\d{2}| 3[01]\d{4}| 5\d{5}| - 70[01]\d{3} + 70[01]\d{3}| + 8[0-2]\d{4} )| 1[01]\d{5}| 20[0-3]\d{4}| @@ -5089,51 +5039,6 @@ \d{8} 40001234 - - - - 1(?: - 0(?: - 00| - 15| - 2[2-4679] - )| - 1(?: - 1[0-35-9]| - 37| - [46]6| - 7[57]| - 8[79]| - 9[0-379] - )| - 2(?: - 00| - [12]2| - 34| - 55 - )| - 333| - 4(?: - 00| - 1[56] - )| - 5(?: - 15| - 5[15] - )| - 693| - 7(?: - 00| - 1[789]| - 2[02]| - [67]7 - )| - 975 - ) - - \d{4} - 1022 - 112| @@ -5187,19 +5092,6 @@ \d{8} 51234567 - - - 1(?: - 1(?: - 6111| - 8 - )| - 40 - ) - - \d{3,6} - 140 - 10[456] \d{3} @@ -5565,22 +5457,6 @@ \d{9,12} 93123456789 - - - 1(?: - 1(?: - 6\d{3}| - 8\d - )| - 2\d{2,3}| - 3\d{3,4}| - 4\d{3}| - 99 - ) - - \d{4,6} - 116123 - 1(?: @@ -5911,12 +5787,6 @@ \d{12,13} 177991234567 - - - 115 - \d{3} - 115 - 11[02] \d{3} @@ -6522,16 +6392,6 @@ \d{4,5} 12123 - - - 1(?: - 1[13-9]| - [2-9]\d - ) - - \d{3} - 116 - 11[02] \d{3} @@ -6679,13 +6539,12 @@ - 6(?: 0[0-8]| - [14-7]\d| - 2[0-46-9]| + [124-7]\d| 3[03-8]| 8[01]| 99 @@ -7210,27 +7069,6 @@ \d{11} 08001234567 - - - - 0(?: - 04| - 1[34]| - 8[1-4] - )| - 1(?: - 0[1-3]| - [25]9 - )| - 2[289]| - 30| - [45]4| - 75| - 913 - - \d{2,3} - 22 - 91[17] \d{3} @@ -7254,12 +7092,6 @@ [56]\d{4} 51234 - - - 1\d{2} - \d{3} - 123 - 999 @@ -7365,19 +7197,6 @@ 601234 - - - - 1(?: - 1[48]| - 4[124]\d| - 71\d| - 8[7-9]\d - ) - - \d{3,4} - 114 - 112 \d{3} @@ -7476,28 +7295,24 @@ - + + - - 1 - $1 $2 $3 $4 - - 0 $1 $2 $3 $4 - [01]\d{6,7} - \d{7,8} + 0\d{7} + \d{8} + line and mobile numbering. However, it seems that this has not happened; their own + website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not + connect without the 0 from outside the country. This was last tested June 2013. --> - 1\d{6} - 1441234 + 01\d{6} + 01441234 0[2-7]\d{6} @@ -8101,53 +7916,6 @@ \d{10} 5512345678 - - - - 1(?: - 0[01]| - 1(?: - 1| - [68]\d{3} - )| - 2[123]| - 33| - 4(?: - 1| - 7\d - )| - 5\d| - 70\d| - 800\d| - 9[15] - )| - 2(?: - 02| - 2(?: - 02| - 11| - 2 - )| - 3(?: - 02| - 45 - )| - 425 - )| - 3[13]3| - 4(?: - 0[02]| - 35[01]| - 44[45]| - 5\d - )| - 650| - 789| - 901 - - \d{3,6} - 150 - 112| @@ -8262,13 +8030,23 @@ [348] $1 $2 $3 $4 + + 7 + $1 $2 $3 + 5 $1 $2 $3 $4 + + + 706\d{6} + \d{9} + 706123456 + - [3458]\d{8} + [34578]\d{8} \d{6,9} @@ -8313,6 +8091,12 @@ \d{9} 800123456 + + + 706\d{6} + \d{9} + 706123456 + @@ -8494,29 +8278,6 @@ \d{10} 5512345678 - - - - 1(?: - 0[01]| - 1(?: - 1| - [68]\d{3} - )| - 23| - 4(?: - 1| - 7\d - )| - 55| - 800\d| - 95 - ) - - \d{3,6} - 155 - @@ -8659,34 +8420,6 @@ 87\d{6} 87123456 - - - 1(?: - 00| - 1(?: - 6(?: - 00[06]| - 11[17] - )| - 8\d{2} - )| - 23| - 4(?: - 1| - 7[014] - )| - 5[015]| - 9[34] - )| - 8(?: - 00| - 4[0-2]| - 8\d - ) - - \d{3,6} - 116123 - 1(?: @@ -8803,20 +8536,18 @@ - - [23567] + 3 $1 $2 $3 $4 - 6[02356] + [67] $1 $2 $3 $4 - [23567]\d{7,8} + [367]\d{7,8} \d{8,9} @@ -8835,29 +8566,8 @@ 30241234 - + - (?: - 24| - 55 - )\d{6}| - 6(?: - 0(?: - 2[0-35-9]| - 3[3467]| - 5[2457-9] - )| - 1[0-5]\d| - 2\d{2}| - [4-9]\d{2}| - 3(?: - [14]0| - 35 - ) - )\d{4}| 6(?: [03]1| 2[128]| @@ -8865,12 +8575,15 @@ 6[2469] )\d{6} - 60201234 + \d{9} + 601123456 - 78\d{6} - \d{8} - 78123456 + + 722\d{6} + \d{9} + 722123456 @@ -9157,16 +8870,6 @@ \d{11} 19001112222 - - - 1(?: - 2[124-9]| - [57]\d{2} - ) - - \d{3,4} - 123 - 1(?: @@ -9189,7 +8892,7 @@ \d{7}(?:\d{3})? - 671(?: @@ -9203,7 +8906,7 @@ 4(?: 56| 7[1-9]| - 8[23678] + 8[236-9] )| 5(?: 55| @@ -9253,7 +8956,7 @@ 4(?: 56| 7[1-9]| - 8[23678] + 8[236-9] )| 5(?: 55| @@ -9419,23 +9122,6 @@ 9008\d{3} 9008123 - - - 0(?: - 02| - 171| - 444| - 7[67]7| - 801| - 9(?: - 0[78]| - [2-47] - ) - ) - - \d{3,4} - 0801 - 91[123] \d{3} @@ -9787,11 +9473,6 @@ \d{8} 98901234 - - 1\d{2} - \d{3} - 114 - 11[48] @@ -10444,21 +10125,17 @@ 771234567 - - [2-689]\d{3} - \d{4} - 2250 - - - 1599\d{6} - \d{10} + + + [2-689]\d{3}| + 1599\d{6} + + \d{4}(?:\d{6})? 1599123456 - - - 1\d{3} - \d{4} - 1455 - + 1(?: @@ -10559,11 +10236,6 @@ \d{10} 5512345678 - - 1\d{2}(?:\d{3})? - \d{3,6} - 150 - 999 @@ -10592,7 +10264,7 @@ 4[0-389]| 5[024-9]| 6[0-35-9]| - 7[0346-9]| + 7| 8[0-79] )| 8(?: @@ -10644,22 +10316,15 @@ 5[45]| 6[5-9]| 7[679]| - 9[6-9] + 9[1-46-9] )| 7(?: - 0[27-9]| - 3[5-9]| - 42| - 60| - 7[7-9]| - 8[1-9]| - 9[05-9] + 0[2-9]| + [1-79]| + 8[1-9] )| 8(?: - [03][07-9]| - 14| - 2[7-9]| - [4-7]| + [0-7]| 9[013-9] ) )| @@ -10678,9 +10343,8 @@ 5[1-9] )| 3(?: - [037-9]| - 4[1-9]| - 5[0-57-9] + [0357-9]| + 4[1-9] )| [45]| 6[02457-9]| @@ -11068,14 +10732,13 @@ + http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last + updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. --> @@ -11115,14 +10778,11 @@ 5[45]| 6[5-9]| 7[679]| - 9[6-9] + 9[1-46-9] )| 7(?: - 0[27-9]| - 3[5-9]| - 42| - 6[03-9]| - [79]\d| + 0[2-9]| + [1-79]\d| 8[1-9] )| 8(?: @@ -11145,9 +10805,8 @@ 5[1-9] )| 3(?: - [037-9]\d| - 4[1-9]| - 5[0-57-9] + [0357-9]\d| + 4[1-9] )| [45]\d{2}| 6[02457-9]\d| @@ -11284,34 +10943,66 @@ + + - - 21 + + + + 2(?: + 1| + 5[0-47-9] + ) + $1 $2 - - 21 + + + 2(?: + 1| + 5[0-47-9] + ) + $1 $2 $3 - - 2[16] + + + 2(?: + [16]| + 5[0-47-9] + ) + $1 $2 $3 [13-9]| - 2[02-9] + 2[02-57-9] $1 $2 $3 + + + [13-9]| + 2[02-57-9] + + $1 $2 $3 + + + + [13-9]| + 2[02-57-9] + + $1 $2 + [14-8]\d{6,9}| - [23]\d{5,9}| + [23]\d{4,9}| 9(?: [1-4]\d{8}| 9\d{2,8} @@ -11320,24 +11011,107 @@ \d{4,10} + - (?: - [145](?: - 1[1-9]| - [2-9]\d - )\d{0,3}| - [23][1-9]\d{0,4}| - 6[1-9]\d{1,4}| - [78]\d{2,5} - )\d{4} + 1(?: + [13-589][12]| + [27][1-4] + )\d{7}| + 2(?: + 1\d{3,8}| + 3[12]\d{7}| + 4(?: + 1\d{4,7}| + 2\d{7} + )| + 5(?: + 1\d{3,7}| + [2356]\d{7} + )| + 6\d{8}| + 7[34]\d{7}| + [89][12]\d{7} + )| + 3(?: + 1(?: + 1\d{4,7}| + 2\d{7} + )| + 2[1-4]\d{7}| + 3(?: + [125]\d{7}| + 4\d{6,7} + )| + 4(?: + 1\d{6,7} + [24-9]\d{7} + )| + 5(?: + 1\d{4,7}| + [23]\d{7} + )| + [6-9][12]\d{7} + )| + 4(?: + [135-9][12]\d{7}| + 2[1-467]\d{7}| + 4(?: + 1\d{4,7}| + [2-4]\d{7} + ) + )| + 5(?: + 1(?: + 1\d{4,7}| + 2\d{7} + )| + 2[89]\d{7}| + 3[1-5]\d{7}| + 4(?: + 1\d{4,7}| + [2-8]\d{7} + )| + [5-7][12]\d{7}| + 8[1245]\d{7} + )| + 6(?: + 1(?: + 1\d{6,7}| + 2\d{7} + )| + [347-9][12]\d{7}| + 5(?: + 1\d{7}| + 2\d{6,7} + )| + 6[1-6]\d{7} + )| + 7(?: + [13589][12]| + 2[1289]| + 4[1-4]| + 6[1-6]| + 7[1-3] + )\d{7}| + 8(?: + [145][12]| + 3[124578]| + 6[1256]| + 7[1245] + )\d{7} - \d{6,10} + \d{5,10} 2123456789 - - 9[1-3]\d{8} - + 9[1-3]\d{8} \d{10} 9123456789 @@ -11733,49 +11507,14 @@ 99 )\d{6} - \d{9,10} - 1781234567 - - - 55\d{8} - \d{10} - 5512345678 - - - - - 1(?: - 1(?: - [47]| - 6\d{3} - )| - 2\d{2}| - 4(?: - 82| - 9\d{1,3} - )| - 5(?: - 00| - 1[58]| - 2[25]| - 3[03]| - 44 - )| - 86| - 9(?: - 2(?: - [01]\d{2}| - [2-9]\d - )| - 4\d| - 696 - ) - ) - - \d{3,6} - 114 - + \d{9,10} + 1781234567 + + + 55\d{8} + \d{10} + 5512345678 + 11[2358] \d{3} @@ -11943,32 +11682,6 @@ \d{10} 5512345678 - - - - 1(?: - 00| - 18\d{3}| - 23| - 4(?: - [14]| - 28| - 7\d - )| - 5\d| - 7(?: - 0[12]| - [128]| - 35? - )| - 808| - 9[135] - )| - 23[234] - - \d{3,6} - 150 - @@ -12254,17 +11967,6 @@ \d{8} 88101234 - - - 1(?: - 09| - 1[01]| - 9[024-79] - ) - - \d{3} - 111 - 1(?: @@ -13330,22 +13032,6 @@ \d{9} 900223456 - - - - 1(?: - 0[09]| - 1(?: - [06]| - 9[0-2579] - )| - 2[13]| - 3[01] - ) - - \d{3,4} - 116 - @@ -13499,7 +13185,8 @@ started issuing fixed-line numbers like this. Apparently, mobile-company-issued fixed-line numbers are one digit longer than government-issued numbers. Moreover, the range beginning with 6 seems to include some numbers that are one digit longer as well. - --> + Allowing 23[48]\d{6} and [456]3\d{7} based on information from Cambodia Yellow Pages. + Note that numbers with these prefixes may match more than one group. --> (?: 2[3-6]| @@ -13510,7 +13197,11 @@ [2-47-9]| 5\d| 6\d? - )\d{5} + )\d{5}| + (?: + 23[48]| + [456]3\d| + )\d{6} \d{6,9} 23456789 @@ -13519,18 +13210,21 @@ + 60[1-9] based on information received from Beeline, and 857 and 61 from Cellcard. + Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow + Pages. --> (?: (?: 1\d| 6[016-9]| - 7(?: - [07-9]| - 6\d - ) + 7[07-9]| )[1-9]| + (?: + 12| + 31| + 76 + )[1-9]\d| 8(?: 0[89]| [134679]\d| @@ -13612,16 +13306,6 @@ 61234 - - - 10(?: - [0-8]| - 5[01259] - ) - - \d{3,4} - 100 - 99[2349] @@ -14060,9 +13744,7 @@ - - [12569]\d{6,7} - + [12569]\d{6,7} \d{7,8} @@ -14093,7 +13775,7 @@ (?: 5(?: - 1[0-2]| + 1[0-35]| [05]\d )| 6(?: @@ -14107,7 +13789,8 @@ 0[09]| 4[049]| 6[069]| - [79]\d + [79]\d| + 88 ) )\d{5} @@ -14115,16 +13798,6 @@ 50012345 - - - 1(?: - [02-9]\d| - 1[013-9] - ) - - \d{3} - 177 - 112 \d{3} @@ -14374,10 +14047,11 @@ 7123456789 - + 7(?: 0[01257]| + 47| 6[02-4]| 7[15-8]| 85 @@ -14800,29 +14474,6 @@ - - - 1(?: - 145| - 4(?: - [0357]| - 14 - )| - 50\d{4}| - 6(?: - 00| - [1-4] - )| - 75| - 8(?: - 1[128]| - 7 - ) - ) - - \d{7} - 1600 - 1(?: @@ -15288,11 +14939,6 @@ \d{4,10} 2012345 - - 12\d{3} - \d{3,5} - 12123 - 11[23] \d{3} @@ -15494,14 +15140,13 @@ - 6(?: 0[0-8]| - [14-7]\d| - 2[0-46-9]| - 3[03-8]| + [124-7]\d| + 3[013-8]| 8[01]| 99 )\d{6} @@ -15692,33 +15337,6 @@ 3[08]\d{6} 30123456 - - - 1(?: - 1(?: - [79]| - 6(?: - 000| - 1(?: - 11| - 23 - ) - )| - 8\d - )| - 4\d{3}| - 5[0-3]\d| - 6[0-389]\d| - 8\d{2}| - 9(?: - 0[04-9]| - [1-4]\d - ) - ) - - \d{3,6} - 116000 - 112| @@ -15840,22 +15458,6 @@ \d{8} 77273012 - - - 1(?: - 16\d{3}| - 2(?: - [015-9]| - \d{2} - )| - [0135]\d{2}| - 4\d{2,3}| - 9\d{3} - ) - - \d{3,6} - 1011 - 1(?: @@ -16756,7 +16358,7 @@ - [2579]\d{7} + [2357-9]\d{7} \d{8} @@ -16779,7 +16381,10 @@ [79]\d{2} )| 9(?: - 2[13]\d| + 2(?: + 1[01]| + 31 + )| 696| 8(?: 1[1-3]| @@ -16796,19 +16401,37 @@ 7117\d{4} 71171234 + + 800[3467]\d{4} + 80071234 + - 50(?: + 5(?: 0(?: - 3[1679]| - 4\d + 0(?: + 37| + 43 + )| + 6\d{2}| + 70\d| + 9[0168] )| - [169]\d{2}| - 7[06]\d + [12]\d0[1-5] )\d{3} - 50031234 + 50037123 + + + 3550\d{4} + 35501234 + + + + 501\d{5} + 50112345 + 112 \d{3} @@ -16900,18 +16523,6 @@ 3201234 - - - 1(?: - 1[0-36-9]| - [02-9]\d| - \d{3,4} - )| - 8\d{3} - - \d{3,5} - 995 - 11[45]| @@ -16996,16 +16607,6 @@ \d{10} 9001234567 - - - 1(?: - [19]0| - 23 - ) - - \d{3} - 123 - 1(?: @@ -17461,11 +17062,6 @@ - - 1[02-5]\d{2} - \d{4} - 1011 - @@ -17599,7 +17195,7 @@ ) )\d{4} - 612012345 + 61221234 @@ -17627,17 +17223,6 @@ 88612345 - - - 1\d{3}| - 9(?: - 3111| - \d{2} - ) - - \d{3,5} - 93111 - @@ -17686,22 +17271,6 @@ 36\d{4} 366711 - - - - 10(?: - 0[06]| - 1[02-46]| - 20| - 3[0125]| - 42| - 5[058]| - 77 - ) - - \d{4} - 1000 - 1[5-8] @@ -17714,9 +17283,9 @@ - + - [29]| + [289]| 09 $1 $2 $3 $4 @@ -17727,7 +17296,7 @@ - [029]\d{7} + [0289]\d{7} \d{8} @@ -17755,8 +17324,13 @@ - 9[0-46-9]\d{6} + 89 and 97 prefixes, and Orange use 92. --> + + (?: + 89| + 9[0-46-9] + )\d{6} + 93123456 @@ -18051,7 +17625,7 @@ 4[0356]| 5[0358]| 7| - 8[458] + 8[4578] $1 $2 $3 @@ -18168,11 +17742,6 @@ \d{5,6} 14020 - - 18\d{2} - \d{4} - 1833 - 112| @@ -18185,7 +17754,7 @@ - + @@ -18400,16 +17969,6 @@ 55[5-9]\d{4} 5551234 - - - 1(?: - 23| - 92 - ) - - \d{3} - 110 - 11[0-2] \d{3} @@ -18779,11 +18338,6 @@ \d{7} 8601234 - - 10[2-4] - \d{3} - 102 - 911 \d{3} @@ -19018,7 +18572,12 @@ $1 $2 $3 + pattern="(2)(\d{5})"> + 2 + $1 $2 + + 3(?: 23| @@ -19125,24 +18684,32 @@ - [2-9]\d{7,9}| + 2\d{5,7}| + [3-9]\d{7,9}| 1800\d{7,9} - \d{7,13} + \d{5,13} + + 2\d{5}(?:\d{2})?| (?: - 2| 3[2-68]| 4[2-9]| 5[2-6]| 6[2-58]| 7[24578]| 8[2-8] - )\d{7} + )\d{7}| + 88(?: + 22\d{6}| + 42\d{4} + ) - \d{7,9} + \d{5,10} 21234567 @@ -20069,11 +19636,6 @@ \d{6,9} 201234567 - - 1[1-4]\d - \d{3} - 123 - 128| @@ -20126,17 +19688,6 @@ 8001234 - - - (?: - 1| - 20| - 9[27]\d - )\d{2} - - \d{3,4} - 2012 - 999 \d{3} @@ -20271,7 +19822,14 @@ 211234567 - 7[1-8]\d{7} + + + 7(?: + 000\d{5}| + [1-8]\d{7} + ) + \d{9} 712345678 @@ -20426,19 +19984,6 @@ \d{6,12} 700123456 - - - 1(?: - 1(?: - [013-9]| - \d(2,4) - )| - [89]\d{1,4} - ) - - \d{3,6} - 12345 - 112| @@ -20689,29 +20234,6 @@ \d{9} 920012345 - - - 1(?: - 16111| - 9(?: - 00| - 1[89]| - 9(?: - 099| - 22| - 91 - ) - ) - )| - 9( - 37| - 8[6-8]| - 9[2-6] - ) - - \d{3,6} - 937 - 112| @@ -20783,27 +20305,6 @@ \d{5} 51123 - - - 1(?: - 0[02-79]| - 1[12]| - 2[0-26]| - 4[189]| - 68 - )| - 9(?: - [01]1| - 22| - 33| - 55| - 77| - 88 - ) - - \d{3} - 100 - 999 \d{3} @@ -20860,24 +20361,6 @@ \d{7} 6412345 - - - 1(?: - 0\d| - 1[027]| - 2[0-8]| - 3[13]| - 4[0-2]| - [59][15]| - 6[1-9]| - 7[124-6]| - 8[158] - )| - 96\d{2} - - \d{3,4} - 100 - 999 \d{3} @@ -21217,20 +20700,6 @@ \d{11} 70001234567 - - - 1(?: - [0136]\d{2}| - [89](?: - [1-9]\d| - 0[1-9] - )| - [57]\d{2,3})| - 99[0246-8] - - \d{3,5} - 1312 - 99[359] \d{3} @@ -21238,18 +20707,25 @@ - + - + - [2-9]\d{3} - \d{4} + [2-79]\d{3,4} + \d{4,5} + + 2(?: + [0-57-9]\d| + 6[4-9] + )\d{2}| (?: - [2-468]\d| + [2-46]\d| 7[01] )\d{2} @@ -21269,11 +20745,6 @@ 5012 - - 1\d{2,3} - \d{3,4} - 1234 - @@ -21813,7 +21284,9 @@ + from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907. + Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range + for mobile, but the document is not self consistent, so this is probably a typo. --> (?: 15\d| @@ -21825,7 +21298,7 @@ 7\d{2}| 9(?: 07| - 1 + [19] )\d )\d{5} @@ -21889,17 +21362,6 @@ \d{6} 561234 - - - 1(?: - [02-9]\d| - 1[0-46-9]| - \d{3} - ) - - \d{3,4} - 1234 - 115 \d{3} @@ -22225,6 +21687,24 @@ + + + + + + 8\d{3} + \d{4} + + + 8\d{3} + 8999 + + + NA + NA + + + - [2-5]\d{3} + [2-9]\d{3} \d{4} @@ -22608,7 +22088,7 @@ 3010 - 5\d{3} + [5-9]\d{3} 5190 @@ -22671,18 +22151,6 @@ \d{7} 7012345 - - - 1(?: - 0[02]| - 2[0138]| - 72| - 9[07] - ) - - \d{3} - 102 - 11[25] \d{3} @@ -23849,17 +23317,6 @@ \d{7} 9001234 - - - 1(?: - 0[4-9]| - 1[2368]| - 2[0-3568] - ) - - \d{3} - 104 - 128| diff --git a/geocoding/ar/82.txt b/geocoding/ar/82.txt new file mode 100644 index 0000000..232210c --- /dev/null +++ b/geocoding/ar/82.txt @@ -0,0 +1,34 @@ +# Copyright (C) 2013 The Libphonenumber Authors + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Generated from: Wikipedia translations of the prefixes listed: +# http://www.itu.int/oth/T0202000072/en [2004-03-01] +# http://en.wikipedia.org/wiki/+82 [390794641] + +822|سول +8231|جيونجي دو +8232|مدينة إنتشيون الكبرى +8233|جانجون-دو +8241|تشانجتشيونجنام دو +8242|مدينة دايجون الكبرى +8243|تشانجتشيونج دو +8251|مدينة بوسان الكبرى +8252|مدينة أولسان الكبرى +8253|مدينة دياجو الكبرى +8254|جيونجسانجبك دو +8255|جيونسانجنام-دو +8261|جولانام-دو +8262|مدينة جوانججو الكبرى +8263|جولابوك-دو +8264|جيجو دو diff --git a/geocoding/de/49.txt b/geocoding/de/49.txt index 26967a3..ec90d32 100644 --- a/geocoding/de/49.txt +++ b/geocoding/de/49.txt @@ -2015,12 +2015,12 @@ 494129|Haseldorf 494131|Lüneburg 494132|Amelinghausen -494133|Wittorf Kreis Lünebeburg -494134|Embsen Kreis Lünebeburg +494133|Wittorf Kreis Lüneburg +494134|Embsen Kreis Lüneburg 494135|Kirchgellersen 494136|Scharnebeck 494137|Barendorf -494138|Betzendorf Kreis Lünebeburg +494138|Betzendorf Kreis Lüneburg 494139|Hohnstorf Elbe 494140|Estorf Kreis Stade 494141|Stade diff --git a/geocoding/en/241.txt b/geocoding/en/241.txt index bd69dc7..8f9ecd0 100644 --- a/geocoding/en/241.txt +++ b/geocoding/en/241.txt @@ -16,33 +16,33 @@ # http://www.itu.int/oth/T020200004E/en [2012-07-04] # http://en.wikipedia.org/wiki/+241 [503030636] -241140|Kango -2411420|Ntoum -2411424|Cocobeach -241144|Libreville -241145|Libreville -241146|Libreville -241147|Libreville -241148|Libreville -241150|Gamba -241154|Omboué -241155|Port-Gentil -241156|Port-Gentil -241158|Lambaréné -241159|Ndjolé -241160|Ngouoni -241162|Mounana -241164|Lastourville -241165|Koulamoutou -241166|Moanda -241167|Franceville -241169|Léconi/Akiéni/Okondja -24117|Libreville -241182|Tchibanga -241183|Mayumba -241186|Mouila -241190|Makokou -241192|Mékambo -241193|Booué -241196|Bitam -241198|Oyem +2410140|Kango +24101420|Ntoum +24101424|Cocobeach +2410144|Libreville +2410145|Libreville +2410146|Libreville +2410147|Libreville +2410148|Libreville +2410150|Gamba +2410154|Omboué +2410155|Port-Gentil +2410156|Port-Gentil +2410158|Lambaréné +2410159|Ndjolé +2410160|Ngouoni +2410162|Mounana +2410164|Lastoursville +2410165|Koulamoutou +2410166|Moanda +2410167|Franceville +2410169|Léconi/Akiéni/Okondja +241017|Libreville +2410182|Tchibanga +2410183|Mayumba +2410186|Mouila +2410190|Makokou +2410192|Mékambo +2410193|Booué +2410196|Bitam +2410198|Oyem diff --git a/geocoding/en/47.txt b/geocoding/en/47.txt new file mode 100644 index 0000000..23b2af8 --- /dev/null +++ b/geocoding/en/47.txt @@ -0,0 +1,49 @@ +# Copyright (C) 2013 The Libphonenumber Authors + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Prefixes from: +# http://www.npt.no/npt/numsys/E.164.pdf +# Note Svalbard is excluded; it has its own region code. + +472|Oslo +4731|Buskerud +4732|Buskerud +4733|Vestfold +4734|Vestfold +4735|Telemark +4737|Aust-Agder +4738|Vest-Agder +4751|Rogaland +4752|Rogaland +4753|Hordaland +4755|Hordaland +4756|Hordaland +4757|Sogn og Fjordane +4760|Oppland +4761|Oppland +4762|Hedmark +4763|Akershus +4764|Akershus +4766|Akershus +4767|Akershus +4769|Østfold +4770|Møre og Romsdal +4771|Møre og Romsdal +4772|Sør-Trøndelag +4773|Sør-Trøndelag +4774|Nord-Trøndelag +4775|Nordland +4776|Nordland +4777|Troms +4778|Finnmark diff --git a/geocoding/en/49.txt b/geocoding/en/49.txt index 522421d..e8ace5a 100644 --- a/geocoding/en/49.txt +++ b/geocoding/en/49.txt @@ -2014,12 +2014,12 @@ 494129|Haseldorf 494131|Lüneburg 494132|Amelinghausen -494133|Wittorf Kreis Lünebeburg -494134|Embsen Kreis Lünebeburg +494133|Wittorf Kreis Lüneburg +494134|Embsen Kreis Lüneburg 494135|Kirchgellersen 494136|Scharnebeck 494137|Barendorf -494138|Betzendorf Kreis Lünebeburg +494138|Betzendorf Kreis Lüneburg 494139|Hohnstorf Elbe 494140|Estorf Kreis Stade 494141|Stade diff --git a/geocoding/en/98.txt b/geocoding/en/98.txt index 18ecc80..3aec80c 100644 --- a/geocoding/en/98.txt +++ b/geocoding/en/98.txt @@ -15,6 +15,7 @@ # Generated from: # http://www.itu.int/oth/T0202000066/en [2012-07-24] # Numbering Plan received from Sony Ericsson [2012-04] +# Some prefixes were changed/removed based on http://www.tct.ir/?siteid=1&pageid=195 # Some names were changed to the more common English spelling. 98111|Babol @@ -37,25 +38,19 @@ 98182|Bandar Anzali suburbs 98191|Chalus 98192|Chalus suburbs -9821|Tehran -98221|Tehran suburbs -98228|Eslamshahr -98229|Eslamshahr suburbs +9821|Tehran province 98231|Semnan 98232|Semnan suburbs 98241|Zanjan 98242|Zanjan suburbs -98251|Qom -98252|Qom suburbs +9825|Qom province 98255|Saveh 98256|Saveh suburbs -9826|Karaj +9826|Alborz 98273|Shahroud 98274|Shahroud suburbs 98281|Qazvin 98282|Qazvin suburbs -98291|Varamin -98292|Varamin suburbs 98311|Isfahan 98312|Isfahan suburbs 98321|Shahreza diff --git a/geocoding/fa/98.txt b/geocoding/fa/98.txt index 09d2f90..dcefcc6 100644 --- a/geocoding/fa/98.txt +++ b/geocoding/fa/98.txt @@ -35,25 +35,19 @@ 98182|حومهٔ بندر انزلی 98191|چالوس 98192|حومهٔ چالوس -9821|تهران -98221|حومهٔ تهران -98228|اسلامشهر -98229|حومهٔ اسلامشهر +9821|استان تهران 98231|سمنان 98232|حومهٔ سمنان 98241|زنجان 98242|حومهٔ زنجان -98251|قم -98252|حومهٔ قم +9825|استان قم 98255|ساوه 98256|حومهٔ ساوه -9826|کرج +9826|استان البرز 98273|شاهرود 98274|حومهٔ شاهرود 98281|قزوین 98282|حومهٔ قزوین -98291|ورامین -98292|حومهٔ ورامین 98311|اصفهان 98312|حومهٔ اصفهان 98321|شهرضا -- cgit v1.2.3