Skip to content

Commit

Permalink
New US area codes
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Sep 10, 2024
1 parent b6f4354 commit 56fa675
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/Number/Phone/Country.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ sub phone2country {
our %NANP_areas = (
CA => do {
# see http://www.cnac.ca/co_codes/co_code_status.htm
# checked on 2024-03-05
# next check due 2024-09-01 (semi-annually)
# checked on 2024-09-10
# next check due 2025-03-01 (semi-annually)
my $canada = join('|', qw(
204 226 236 249 250 257 263 289
306 343 354 365 367 368 382
Expand All @@ -43,8 +43,8 @@ our %NANP_areas = (
));
# handful of non-geographic country-specific codes ...
# see https://en.wikipedia.org/wiki/Area_code_600
# checked on 2023-09-02
# next check due 2024-09-01 (annually)
# checked on 2024-09-10
# next check due 2025-03-01 (annually)
$canada = join('|', $canada, 600, 622, 633, 644, 655, 677, 688);
},
US => do {
Expand All @@ -53,15 +53,15 @@ our %NANP_areas = (
# but the latter doesn't contain some overlays that are about to come into service
# NB for Hyder, Alaska, it shares three COs with Stewart, BC, and we can't tell which number is in which country,
# so those prefixes aren't listed here
# checked on 2024-03-05
# next check due 2024-09-01 (semi-annually)
# checked on 2024-09-10
# next check due 2025-03-01 (annually)
my $usa = join('|', qw(
205 251 256 334 659 938
205 251 256 334 483 659 938
907
480 520 602 623 928
327 479 501 870
209 213 279 310 323 341 350 369 408 415 424 442 510 530 559 562 619 626 628 650 657 661 669 707 714 738 747 760 805 818 820 831 840 858 909 916 925 949 951
303 719 720 970 983
209 213 279 310 323 341 350 357 369 408 415 424 442 510 530 559 562 619 626 628 650 657 661 669 707 714 738 747 760 805 818 820 831 837 840 858 909 916 925 949 951
303 719 720 748 970 983
203 475 860 959
302
202 771
Expand All @@ -80,7 +80,7 @@ our %NANP_areas = (
339 351 413 508 617 774 781 857 978
231 248 269 313 517 586 616 679 734 810 906 947 989
218 320 507 612 651 763 924 952
228 601 662 769
228 471 601 662 769
235 314 417 557 573 636 660 816 975
406
308 402 531
Expand All @@ -99,7 +99,7 @@ our %NANP_areas = (
803 821 839 843 854 864
605
423 615 629 731 865 901 931
210 214 254 281 325 346 361 409 430 432 469 512 682 713 726 737 806 817 830 832 903 915 936 940 945 956 972 979
210 214 254 281 325 346 361 409 430 432 469 512 621 682 713 726 737 806 817 830 832 903 915 936 940 945 956 972 979
385 435 801
802
276 434 540 571 686 703 757 804 826 948
Expand Down

0 comments on commit 56fa675

Please sign in to comment.