Skip to content

Commit

Permalink
Upstream metadata changes from Google for v8.12.22
Browse files Browse the repository at this point in the history
 - Updated phone metadata for region code(s):
   BL, CA, CD, CI, GP, IR, JP, LI, MF, MY, PH, PT, RE
 - Updated short number metadata for region code(s): FI, PS
 - New geocoding data for country calling code(s): 1368 (en)
 - Updated geocoding data for country calling code(s): 49 (de, en), 52
   (es)
 - Updated carrier data for country calling code(s):
   46 (en), 60 (en), 63 (en), 225 (en), 229 (en), 243 (en), 252 (en),
      262 (en),
   351 (en), 423 (en), 590 (en)
 - Updated / refreshed time zone meta data.
  • Loading branch information
giggsey committed Apr 29, 2021
1 parent 272b812 commit e458b14
Show file tree
Hide file tree
Showing 33 changed files with 83 additions and 58 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.12.21
v8.12.22
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


<target name="test" description="Run unit tests" depends="compile-test-data">
<exec passthru="true" command="vendor/bin/phpunit"/>
<exec passthru="true" command="phpunit"/>
</target>

<target name="compile-test-data" description="Build Test Data"
Expand Down
4 changes: 0 additions & 4 deletions src/carrier/data/en/225.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
22507 => 'Orange',
22508 => 'Orange',
22509 => 'Orange',
225208 => 'Moov',
2252180 => 'Moov',
225228 => 'Moov',
225238 => 'Moov',
22540 => 'Moov',
22541 => 'Moov',
22542 => 'Moov',
Expand Down
5 changes: 3 additions & 2 deletions src/carrier/data/en/229.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
22967 => 'MTN',
22968 => 'Moov',
22969 => 'MTN',
22990 => 'Moov',
22991 => 'Moov',
22990 => 'MTN',
22991 => 'MTN',
22993 => 'BLK',
22994 => 'Moov',
22995 => 'Moov',
22996 => 'MTN',
22997 => 'MTN',
22998 => 'Moov',
22999 => 'Moov',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/243.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
24380 => 'Orange',
24381 => 'Vodacom',
24382 => 'Vodacom',
24383 => 'Vodacom',
24384 => 'Orange',
24388 => 'Yozma Timeturns sprl -YTT',
24389 => 'Orange',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/252.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
25267 => 'Nationlink',
25268 => 'Nationlink',
25269 => 'Nationlink',
25271 => 'Amtel',
25279 => 'Somtel',
25280 => 'Somali Networks',
25288 => 'Somali Networks',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/262.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
26269361 => 'ZEOP Mobile',
26269362 => 'ZEOP Mobile',
26269363 => 'ZEOP Mobile',
26269364 => 'ZEOP Mobile',
26269366 => 'Orange',
26269370 => 'Only',
26269371 => 'Only',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/351.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

return array (
3511 => 'NOS',
351609 => 'NOS',
35163 => 'NOS',
35165 => 'NOS',
Expand Down
14 changes: 4 additions & 10 deletions src/carrier/data/en/423.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@
423654 => 'Cubic',
423660 => 'Telecom Liechtenstein',
423661 => 'Dimoco',
4236620 => 'Telecom Liechtenstein',
4236621 => 'Telecom Liechtenstein',
4236622 => 'Telecom Liechtenstein',
4236626 => 'Datamobile',
4236627 => 'Datamobile',
4236628 => 'Datamobile',
4236629 => 'Datamobile',
4236637 => 'Telecom Liechtenstein',
4236638 => 'Telecom Liechtenstein',
4236639 => 'Emnify',
423662 => 'Telecom Liechtenstein',
423663 => 'Telecom Liechtenstein',
423664 => 'Telecom Liechtenstein',
423667 => 'Telecom Liechtenstein',
42373 => 'Telecom Liechtenstein',
42374 => 'First Mobile',
42377 => 'Swisscom',
Expand Down
6 changes: 6 additions & 0 deletions src/carrier/data/en/46.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
4672083 => 'Tele2 Sverige',
4672084 => 'Tele2 Sverige',
4672085 => 'Tele2 Sverige',
4672087 => 'Telenor Sverige',
4672088 => 'Telenor Sverige',
46720902 => 'Telavox AB',
46720908 => 'Telavox AB',
Expand Down Expand Up @@ -209,9 +210,14 @@
46723449 => 'Beepsend',
4672345 => '42 Telecom AB',
46723460 => 'Beepsend',
46723461 => 'Telenor Sverige',
46723464 => 'Telenor Sverige',
46723466 => 'Telenor Sverige',
46723468 => 'Telenor Sverige',
4672347 => 'Benemen Oy',
4672348 => 'Benemen Oy',
46723490 => 'Beepsend',
46723491 => 'Telenor Sverige',
46723499 => 'Beepsend',
467235 => 'Telenor Sverige',
467236 => 'Telenor Sverige',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/590.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
59069088 => 'Dauphin Telecom',
59069089 => 'SFR/Rife',
5906909 => 'SFR/Rife',
5906912 => 'Free Caraïbe',
59069122 => 'Dauphin Telecom',
59069129 => 'Digicel',
59069130 => 'Digicel',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/60.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
601173 => 'YTL',
601174 => 'YTL',
601175 => 'YTL',
60118 => 'U Mobile',
6012 => 'Maxis',
60131 => 'Celcom',
60132 => 'Celcom',
Expand Down
21 changes: 10 additions & 11 deletions src/carrier/data/en/63.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,26 @@
63918 => 'Smart',
63919 => 'Smart',
6392 => 'Smart',
63924 => 'Dito',
63926 => 'Globe',
63927 => 'Globe',
63930 => 'Smart',
63931 => 'Smart',
63932 => 'Smart',
63933 => 'Smart',
6393 => 'Smart',
63934 => 'Dito',
63935 => 'Globe',
63936 => 'Globe',
63937 => 'Globe',
63938 => 'Smart',
63939 => 'Smart',
6394 => 'Smart',
63944 => 'Dito',
63945 => 'Globe',
6395 => 'Globe',
63950 => 'Smart',
63951 => 'Smart',
63958 => 'Smart',
63960 => 'Smart',
63961 => 'Smart',
63962 => 'Smart',
63963 => 'Smart',
6396 => 'Smart',
63965 => 'Globe',
63966 => 'Globe',
63967 => 'Globe',
63968 => 'Smart',
63970 => 'Smart',
63971 => 'Globe',
63972 => 'Globe',
63975 => 'Globe',
Expand All @@ -60,6 +55,10 @@
63978 => 'Globe',
63981 => 'Smart',
63988 => 'Smart',
63991 => 'Dito',
63992 => 'Dito',
63993 => 'Dito',
63994 => 'Dito',
63995 => 'Globe',
63996 => 'Globe',
63997 => 'Globe',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_BL.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}',
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}',
'ExampleNumber' => '690001234',
'PossibleLength' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_CA.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
array (
Expand All @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_CD.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '88\\d{5}|(?:8[0-2459]|9[017-9])\\d{7}',
'NationalNumberPattern' => '88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}',
'ExampleNumber' => '991234567',
'PossibleLength' =>
array (
Expand Down
5 changes: 2 additions & 3 deletions src/data/PhoneNumberMetadata_CI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:2(?:0[023]|[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}|2(?:1[02357]|[23][045]|4[03-5])\\d{5}',
'NationalNumberPattern' => '(?:2(?:0[0238]|[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}|2(?:1[023578]|[23][0458]|4[03-5])\\d{5}',
'ExampleNumber' => '21234567',
'PossibleLength' =>
array (
Expand All @@ -37,7 +37,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:(?:0(?:[15]\\d\\d|7(?:[04-8][7-9]|9[78]))|[457]\\d|6[014-9]|8[4-9]|9[4-8])\\d\\d|2[0-3]80)\\d{4}|0[1-9]\\d{6}',
'NationalNumberPattern' => '(?:0(?:[15]\\d\\d|7(?:[04-8][7-9]|9[78]))|[457]\\d|6[014-9]|8[4-9]|9[4-8])\\d{6}|0[1-9]\\d{6}',
'ExampleNumber' => '01234567',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -149,7 +149,6 @@
'leadingDigitsPatterns' =>
array (
0 => '[03-9]|2(?:[02-4]|1[023578])',
1 => '[03-9]|2(?:[02-4]|1(?:[02357]|80))',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_GP.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}',
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}',
'ExampleNumber' => '690001234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_IR.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '99(?:5[15]0|888|9(?:0[013]|21|77|88))\\d{5}|9(?:0(?:[1-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d|9(?:[0-2]\\d|3[01]|4[0145]|81|9[19]))\\d{6}',
'NationalNumberPattern' => '99(?:5[15]0|888|9(?:0[013]|21|77|88))\\d{5}|9(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d|9(?:[0-2]\\d|3[01]|4[0145]|81|9[19]))\\d{6}',
'ExampleNumber' => '9123456789',
'PossibleLength' =>
array (
Expand Down
5 changes: 3 additions & 2 deletions src/data/PhoneNumberMetadata_JP.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
),
'tollFree' =>
array (
'NationalNumberPattern' => '00(?:(?:37|66)\\d{6,13}|(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d)|(?:120|800\\d)\\d{6}',
'NationalNumberPattern' => '00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}',
'ExampleNumber' => '120123456',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -149,7 +149,7 @@
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => '00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66)\\d{6,13}',
'NationalNumberPattern' => '00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}',
'PossibleLength' =>
array (
),
Expand Down Expand Up @@ -265,6 +265,7 @@
'leadingDigitsPatterns' =>
array (
0 => '007',
1 => '0077',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_LI.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:6(?:4(?:79|[89]\\d)|5[0-4]\\d|6(?:0\\d|10|2[0-26-9]|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}',
'NationalNumberPattern' => '(?:6(?:4(?:69|[7-9]\\d)|5[0-4]\\d|6(?:[024]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}',
'ExampleNumber' => '660234567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MF.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}',
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}',
'ExampleNumber' => '690001234',
'PossibleLength' =>
array (
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 @@ -44,7 +44,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '1(?:4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:(?:[269]|59)\\d|[37][1-9]|4[235-9])\\d|8(?:1[23]|[236]\\d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))\\d{5}',
'NationalNumberPattern' => '1(?:1888[69]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:(?:[269]|59)\\d|[37][1-9]|4[235-9])\\d|8(?:1[23]|[236]\\d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))\\d{5}',
'ExampleNumber' => '123456789',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_PH.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:81[37]|9(?:0[5-9]|1[0-24-9]|2[0-35-9]|[35]\\d|4[235-9]|6[0-35-8]|7[1-9]|8[189]|9[4-9]))\\d{7}',
'NationalNumberPattern' => '(?:81[37]|9(?:0[5-9]|1[0-24-9]|[2357]\\d|4[2-9]|6[0-35-9]|8[189]|9[1-9]))\\d{7}',
'ExampleNumber' => '9051234567',
'PossibleLength' =>
array (
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_PT.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[26-9]\\d|30)\\d{7}',
'NationalNumberPattern' => '1693\\d{5}|(?:[26-9]\\d|30)\\d{7}',
'PossibleLength' =>
array (
0 => 9,
Expand All @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '6[356]9230\\d{3}|(?:6[036]93|9(?:[1-36]\\d\\d|480))\\d{5}',
'NationalNumberPattern' => '6[0356]92(?:30|9\\d)\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}',
'ExampleNumber' => '912345678',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -166,7 +166,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[236-9]',
0 => '16|[236-9]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_RE.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-36]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}',
'NationalNumberPattern' => '(?:69(?:2\\d\\d|3(?:[06][0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}',
'ExampleNumber' => '692123456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/ShortNumberMetadata_FI.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
),
'shortCode' =>
array (
'NationalNumberPattern' => '11(?:2|611[17])|75[12]\\d\\d',
'NationalNumberPattern' => '11(?:2|6(?:00[06]|11[17]))|75[12]\\d\\d',
'ExampleNumber' => '112',
'PossibleLength' =>
array (
Expand Down
Loading

0 comments on commit e458b14

Please sign in to comment.