Skip to content

Commit

Permalink
Upstream metadata changes from Google for v8.13.42
Browse files Browse the repository at this point in the history
 - Updated phone metadata for region code(s):
   BO, GY, KR, LA, MY, SC, SG, TJ, VI
 - Updated short number metadata for region code(s): AT, DE
 - Updated geocoding data for country calling code(s): 86 (en, zh)
 - Updated carrier data for country calling code(s):
   61 (en), 65 (en), 237 (en), 591 (en), 592 (en), 992 (en)
  • Loading branch information
giggsey committed Jul 29, 2024
1 parent cc2e22f commit 61ec66e
Show file tree
Hide file tree
Showing 21 changed files with 152 additions and 122 deletions.
2 changes: 1 addition & 1 deletion METADATA-VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# It can be a commit, branch or tag of the https://github.com/google/libphonenumber project
#
# For more information, look at the phing tasks in build.xml
v8.13.41
v8.13.42
2 changes: 1 addition & 1 deletion src/carrier/data/en/237.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
237685 => 'NEXTTEL',
237686 => 'Orange',
237687 => 'Orange',
237688 => 'NEXTTEL',
237688 => 'Orange',
237689 => 'NEXTTEL',
23769 => 'Orange',
);
52 changes: 16 additions & 36 deletions src/carrier/data/en/591.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,21 @@
*/

return array (
59170 => 'Nuevatel',
591710 => 'Entel',
591711 => 'Entel',
591712 => 'Entel',
591714 => 'Entel',
591715 => 'Entel',
591716 => 'Entel',
591717 => 'Entel',
591718 => 'Entel',
591719 => 'Entel',
59172 => 'Entel',
591730 => 'Entel',
591731 => 'Entel',
591732 => 'Entel',
591733 => 'Entel',
5917342 => 'Entel',
5917343 => 'Entel',
5917344 => 'Entel',
5917346 => 'Entel',
5917347 => 'Entel',
5917348 => 'Entel',
5917349 => 'Entel',
5917353 => 'Entel',
591736 => 'Entel',
5917370 => 'Entel',
5917371 => 'Entel',
5917372 => 'Entel',
5917373 => 'Entel',
5917374 => 'Entel',
5917375 => 'Entel',
5917377 => 'Entel',
591738 => 'Entel',
5916 => 'Tigo',
5917 => 'Tigo',
59174 => 'Entel',
59175 => 'Tigo',
59176 => 'Tigo',
59177 => 'Tigo',
59179 => 'Nuevatel',
5917419 => 'Nuevatel',
5917429 => 'Nuevatel',
5917438 => 'Nuevatel',
5917439 => 'Nuevatel',
5917449 => 'Nuevatel',
5917459 => 'Nuevatel',
5917474 => 'Nuevatel',
5917479 => 'Nuevatel',
5917487 => 'Nuevatel',
5917488 => 'Nuevatel',
5917489 => 'Nuevatel',
5917497 => 'Nuevatel',
5917498 => 'Nuevatel',
5917499 => 'Nuevatel',
);
1 change: 1 addition & 0 deletions src/carrier/data/en/592.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
592726 => 'GTT',
592727 => 'GTT',
592728 => 'GTT',
592729 => 'GTT',
59273 => 'E-Networks',
59274 => 'Digicel Guyana',
592740 => 'E-Networks',
Expand Down
4 changes: 4 additions & 0 deletions src/carrier/data/en/61.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
61487 => 'Telstra',
61488 => 'Telstra',
614888 => 'My Number',
614890 => 'Optus',
614891 => 'Optus',
614892 => 'Optus',
614893 => 'Optus',
6148984 => 'Victorian Rail Track',
6148985 => 'MessageBird',
614899 => 'Pivotel Satellite',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
658094 => 'M1',
658095 => 'SingTel',
658096 => 'Simba',
658098 => 'Simba',
6581 => 'StarHub',
65810 => 'M1',
65812 => 'SingTel',
Expand Down
8 changes: 8 additions & 0 deletions src/carrier/data/en/992.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
99217 => 'Babilon-M',
9922 => 'O-Mobile',
99230 => 'O-Mobile',
992330 => 'ZET-MOBILE',
992333 => 'ZET-MOBILE',
992334 => 'ZET-MOBILE',
992335 => 'ZET-MOBILE',
992336 => 'ZET-MOBILE',
992337 => 'ZET-MOBILE',
992338 => 'ZET-MOBILE',
992339 => 'ZET-MOBILE',
99240 => 'ZET-MOBILE',
99241 => 'Megafon',
992440 => 'ZET-MOBILE',
Expand Down
9 changes: 6 additions & 3 deletions src/data/PhoneNumberMetadata_BO.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[2-467]\\d\\d|8001)\\d{5}',
'NationalNumberPattern' => '8001\\d{5}|(?:[2-467]\\d|50)\\d{6}',
'PossibleLength' =>
array (
0 => 8,
Expand Down Expand Up @@ -94,12 +94,15 @@
),
'voip' =>
array (
'NationalNumberPattern' => '50\\d{6}',
'ExampleNumber' => '50123456',
'PossibleLength' =>
array (
0 => -1,
0 => 8,
),
'PossibleLengthLocalOnly' =>
array (
0 => 7,
),
),
'pager' =>
Expand Down Expand Up @@ -157,7 +160,7 @@
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '[23]|4[46]',
0 => '[235]|4[46]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_GY.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:510|6\\d\\d|7(?:[0135]\\d|2[0-8]|4[0-24-9]))\\d{4}',
'NationalNumberPattern' => '510\\d{4}|(?:6\\d|7[0-5])\\d{5}',
'ExampleNumber' => '6091234',
'PossibleLength' =>
array (
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_KR.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
),
'tollFree' =>
array (
'NationalNumberPattern' => '00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}',
'NationalNumberPattern' => '00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}',
'ExampleNumber' => '801234567',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -242,7 +242,7 @@
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '60|8',
0 => '[36]0|8',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '0$CC-$1',
Expand Down Expand Up @@ -366,7 +366,7 @@
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '60|8',
0 => '[36]0|8',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '0$CC-$1',
Expand Down
7 changes: 3 additions & 4 deletions src/data/PhoneNumberMetadata_LA.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:20(?:[23579]\\d|88)|30(?:2\\d|4))\\d{6}',
'NationalNumberPattern' => '208[78]\\d{6}|(?:20[23579]|30[24])\\d{7}',
'ExampleNumber' => '2023123456',
'PossibleLength' =>
array (
0 => 9,
1 => 10,
0 => 10,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down Expand Up @@ -170,7 +169,7 @@
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
array (
0 => '30[013-9]',
0 => '30[0135-9]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MY.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}',
'NationalNumberPattern' => '4270\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}',
'ExampleNumber' => '323856789',
'PossibleLength' =>
array (
Expand Down
5 changes: 3 additions & 2 deletions src/data/PhoneNumberMetadata_SC.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '800\\d{4}|(?:[249]\\d|64)\\d{5}',
'NationalNumberPattern' => '(?:[2489]\\d|64)\\d{5}',
'PossibleLength' =>
array (
0 => 7,
Expand Down Expand Up @@ -58,9 +58,10 @@
),
'premiumRate' =>
array (
'NationalNumberPattern' => '85\\d{5}',
'ExampleNumber' => '8512345',
'PossibleLength' =>
array (
0 => -1,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_SG.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '8(?:09[0-6]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}',
'NationalNumberPattern' => '8(?:09[0-68]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}',
'ExampleNumber' => '81234567',
'PossibleLength' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_TJ.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078]|9\\d)\\d{7}',
'NationalNumberPattern' => '(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078]|9\\d)\\d{7}',
'ExampleNumber' => '917123456',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -181,7 +181,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '3[1-5]',
0 => '3(?:[1245]|3[12])',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_VI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '340(?:2(?:0\\d|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}',
'NationalNumberPattern' => '340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}',
'ExampleNumber' => '3406421234',
'PossibleLength' =>
array (
Expand All @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '340(?:2(?:0\\d|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}',
'NationalNumberPattern' => '340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}',
'ExampleNumber' => '3406421234',
'PossibleLength' =>
array (
Expand Down
8 changes: 3 additions & 5 deletions src/data/ShortNumberMetadata_AT.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[168]\\d\\d(?:\\d(?:\\d{2})?)?',
'NationalNumberPattern' => '[1268]\\d\\d(?:\\d(?:\\d{2})?)?',
'PossibleLength' =>
array (
0 => 3,
Expand Down Expand Up @@ -60,7 +60,7 @@
),
'shortCode' =>
array (
'NationalNumberPattern' => '1(?:1(?:2|6(?:00[06]|1(?:17|23)))|2[0238]|3[03]|4(?:[0-247]|5[05]|84))|(?:61|8108[1-3])0',
'NationalNumberPattern' => '1(?:1(?:2|6(?:00[06]|1(?:17|23)))|2[0238]|3[03]|4(?:[0-247]|5[05]|84))|(?:220|61|8108[1-3])0',
'ExampleNumber' => '112',
'PossibleLength' =>
array (
Expand All @@ -81,12 +81,10 @@
),
'carrierSpecific' =>
array (
'NationalNumberPattern' => '610|810\\d{3}',
'NationalNumberPattern' => '(?:220|810\\d\\d)\\d|610',
'ExampleNumber' => '610',
'PossibleLength' =>
array (
0 => 3,
1 => 6,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down
13 changes: 8 additions & 5 deletions src/data/ShortNumberMetadata_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '1\\d\\d(?:\\d{2,3})?',
'NationalNumberPattern' => '[13]\\d{2,5}',
'PossibleLength' =>
array (
0 => 3,
1 => 5,
2 => 6,
1 => 4,
2 => 5,
3 => 6,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down Expand Up @@ -62,7 +63,7 @@
),
'shortCode' =>
array (
'NationalNumberPattern' => '11(?:[025]|6(?:00[06]|1(?:1[167]|23))|800\\d)|118\\d\\d',
'NationalNumberPattern' => '11(?:[025]|6(?:00[06]|1(?:1[167]|23))|800\\d)|3311|118\\d\\d',
'ExampleNumber' => '110',
'PossibleLength' =>
array (
Expand All @@ -83,9 +84,11 @@
),
'carrierSpecific' =>
array (
'NationalNumberPattern' => '331\\d',
'ExampleNumber' => '3310',
'PossibleLength' =>
array (
0 => -1,
0 => 4,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down
Loading

0 comments on commit 61ec66e

Please sign in to comment.