From e31b79dc98ad2ccb130043cf0b9630879fcdba2a Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Wed, 20 Nov 2024 07:07:19 +0000 Subject: [PATCH] Number updates for United States --- src/PhoneNumbers/DataFiles/US.txt | 124 +++++++----- ...neNumberParserTests_US_GeographicNumber.cs | 180 ++++++++++++++++++ 2 files changed, 255 insertions(+), 49 deletions(-) diff --git a/src/PhoneNumbers/DataFiles/US.txt b/src/PhoneNumbers/DataFiles/US.txt index 028bf00b0..ef74c687b 100644 --- a/src/PhoneNumbers/DataFiles/US.txt +++ b/src/PhoneNumbers/DataFiles/US.txt @@ -1,57 +1,83 @@ -G|201,551,609,640,732,848,856,862,908,973|New Jersey|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|202,771|Washington, D.C.|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|203,475,860,959|Connecticut|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|205,251,256,334,659,938|Alabama|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|206,253,360,425,509,564|Washington|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +# Resource: https://reports.nanpa.com/public/npa_report.csv +# Resource: https://secure.nanpa.com/public-report/npa/non-geographic-use +G|201,551,609,640,732,848,856,862,908,973|New Jersey|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|202,771|Washington, D.C.|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|203,475,860,959|Connecticut|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|205,251,256,483,659,938|Alabama|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|206,253,360,425,509,564|Washington|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N G|207|Maine|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|208,986|Idaho|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|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,747,760,805,818,820,831,840,858,909,916,925,949,951|California|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|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|Texas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|212,315,329,332,347,363,516,518,585,607,624,631,646,680,716,718,838,845,914,917,929,934|New York|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|215,223,267,272,412,445,484,570,582,610,717,724,814,835,878|Pennsylvania|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|216,220,234,283,326,330,380,419,436,440,513,567,614,740,937|Ohio|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|217,224,309,312,331,447,464,618,630,708,730,773,779,815,847,861,872|Illinois|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|218,320,507,612,651,763,952|Minnesota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|219,260,317,463,574,765,812,930|Indiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|225,318,337,504,985|Louisiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|227,240,301,410,443,667|Maryland|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|228,601,662,769|Mississippi|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|229,404,470,478,678,706,762,770,912,943|Georgia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|231,248,269,313,517,586,616,679,734,810,906,947,989|Michigan|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|235,314,417,557,573,636,660,816,975|Missouri|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|239,305,321,324,352,386,407,448,561,645,656,689,727,728,754,772,786,813,850,863,904,941,954|Florida|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|252,336,472,704,743,828,910,919,980,984|North Carolina|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|262,274,353,414,534,608,715,920|Wisconsin|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|270,364,502,606,859|Kentucky|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|276,434,540,571,686,703,757,804,826,948|Virginia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|302|Delaware|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|303,719,720,970,983|Colorado|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|304,681|West Virginia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|208,986|Idaho|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|209,213,279,310,323,341,350,357,369,408,415,424,442,510,530,562,619,626,628,650,657,669,707,714,738,747,760,805,818,820,837,840,858,909,916,925,949,951|California|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|210,214,254,281,346,361,409,430,469,512,621,682,713,726,737,806,817,830,832,903,915,940,945,972|Texas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|212,315,329,332,347,363,516,518,607,624,631,646,680,716,718,838,845,914,917,929,934|New York|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|215,223,267,272,412,445,484,570,582,610,717,724,814,835,878|Pennsylvania|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|216|Ohio|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|217,224,309,312,331,447,464,618,630,708,730,773,779,815,847,861,872|Illinois|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|218,507,924,952|Minnesota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|219,317,463,574,812,930|Indiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|220,234,283,326,330,380,419,436,440,513,567,614,740,937|Ohio|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|225,318,985|Louisiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|227,240,301,410,443,667|Maryland|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|228|Mississippi|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|229|Georgia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|231,269,313,517,586,734|Michigan|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|235,314,417,557,573,660,816,975|Missouri|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|239,386,727,772,863|Florida|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|248,616,679,810,906,947,989|Michigan|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|252,828|North Carolina|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|260,765|Indiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|262,274,353,414,534,608,715,920|Wisconsin|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|270,364,859|Kentucky|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|276,540,571,686,703,757,804,826,948|Virginia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|302|Delaware|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|303,719,720,748,970,983|Colorado|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|304,681|West Virginia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|305,321,324,352,407,448,561,645,656,689,728,754,786,813,850,904,941,954|Florida|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N G|307|Wyoming|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|308,402,531|Nebraska|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|316,620,785,913|Kansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|319,515,563,641,712|Iowa|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|327,479,501,870|Arkansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|339,351,413,508,617,774,781,857,978|Massachusetts|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|385,435,801|Utah|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|401|Rhode Island|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|405,539,572,580,918|Oklahoma|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|406|Montana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|423,615,629,731,865,901,931|Tennessee|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|458,503,541,971|Oregon|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|480,520,602,623,928|Arizona|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|308|Nebraska|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|316,913|Kansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|319,515|Iowa|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|320,612,651,763|Minnesota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|325,432,936,956,979|Texas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|327,501,870|Arkansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|334|Alabama|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|336,472,704,743,910,919,980,984|North Carolina|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|337,457,504|Louisiana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|339,351,508,617,774,781,857,978|Massachusetts|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|385,801|Utah|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|401|Rhode Island|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|402,531|Nebraska|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|404,470,478,678,706,762,770,912,943|Georgia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|405,539,572,918|Oklahoma|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|406|Montana|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|413|Massachusetts|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|423,901,931|Tennessee|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|434|Virginia|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|435|Utah|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|458,503,541,971|Oregon|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|471,601,662,769|Mississippi|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|479|Arkansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|480,520,602,623,928|Arizona|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N M|500,521-529,533,544,566,577,588||2000000-9999999|V -G|505,575|New Mexico|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|603|New Hampshire|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|605|South Dakota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|502,606|Kentucky|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|505,575|New Mexico|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|559,661,831|California|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|563,641,712|Iowa|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|580|Oklahoma|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|585|New York|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|603|New Hampshire|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|605|South Dakota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|615,629,729,731,865|Tennessee|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|620,785|Kansas|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|636|Missouri|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| G|701|North Dakota|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|702,725,775|Nevada|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|702,725,775|Nevada|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N N|710|U.S. government National Communication System|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|802|Vermont|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -G|803,821,839,843,854,864|South Carolina|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| -# 800 numbers are shared between countries in the NAMP, a few specific central office codes are country specific and others are reserved by the FCC, those are excluded from this range. +# 800 numbers are shared between countries in the NANP, a few specific central office codes are country specific and others are reserved by the FCC, those are excluded from this range. N|800||0000000-2709999,2720000-3889999,3900000-4149999,4160000-4839999,4850000-5339999,5350000-6229999,6240000-7029999,7040000-7439999,7450000-7509999,7520000-9039999,9050000-9069999,9080000-9109999,9129999-9999999|F +G|802|Vermont|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|803,821,839,843,854,864|South Carolina|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N +G|808|Hawaii|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N N|833,844,855,866,877,888||0000000-9999999|F -G|808|Hawaii|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| N|900||2220000-2229999,2440000-2449999,2860000-2869999,3320000-3329999,3460000-3469999,3600000-3609999,3730000-3739999,3820000-3829999,3860000-3869999,4140000-4149999,4260000-4269999,4290000-4299999,4440000-4449999,5000000-5009999,6390000-6399999,6990000-6999999,7520000-7529999,7770000-7779999,8470000-8479999,8790000-8799999,9370000-9379999|R -G|907|Alaska|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999| +G|907|Alaska|2000000-2109999,2120000-3109999,3120000-4109999,4120000-5109999,5120000-6109999,6120000-7109999,7120000-8109999,8120000-9109999,9120000-9999999|N diff --git a/test/PhoneNumbers.Data.Tests/Parsers/DefaultPhoneNumberParserTests_US_GeographicNumber.cs b/test/PhoneNumbers.Data.Tests/Parsers/DefaultPhoneNumberParserTests_US_GeographicNumber.cs index 4acb3e9c1..1843f69ec 100644 --- a/test/PhoneNumbers.Data.Tests/Parsers/DefaultPhoneNumberParserTests_US_GeographicNumber.cs +++ b/test/PhoneNumbers.Data.Tests/Parsers/DefaultPhoneNumberParserTests_US_GeographicNumber.cs @@ -1898,6 +1898,24 @@ public void Parse_Known_GeographicPhoneNumber_5XX_NationalDestinationCode(string [InlineData("6209109999", "620", "9109999", "Kansas")] [InlineData("6209120000", "620", "9120000", "Kansas")] [InlineData("6209999999", "620", "9999999", "Kansas")] + [InlineData("6212000000", "621", "2000000", "Texas")] + [InlineData("6212109999", "621", "2109999", "Texas")] + [InlineData("6212120000", "621", "2120000", "Texas")] + [InlineData("6213109999", "621", "3109999", "Texas")] + [InlineData("6213120000", "621", "3120000", "Texas")] + [InlineData("6214109999", "621", "4109999", "Texas")] + [InlineData("6214120000", "621", "4120000", "Texas")] + [InlineData("6215109999", "621", "5109999", "Texas")] + [InlineData("6215120000", "621", "5120000", "Texas")] + [InlineData("6216109999", "621", "6109999", "Texas")] + [InlineData("6216120000", "621", "6120000", "Texas")] + [InlineData("6217109999", "621", "7109999", "Texas")] + [InlineData("6217120000", "621", "7120000", "Texas")] + [InlineData("6218109999", "621", "8109999", "Texas")] + [InlineData("6218120000", "621", "8120000", "Texas")] + [InlineData("6219109999", "621", "9109999", "Texas")] + [InlineData("6219120000", "621", "9120000", "Texas")] + [InlineData("6219999999", "621", "9999999", "Texas")] [InlineData("6232000000", "623", "2000000", "Arizona")] [InlineData("6232109999", "623", "2109999", "Arizona")] [InlineData("6232120000", "623", "2120000", "Arizona")] @@ -2816,6 +2834,24 @@ public void Parse_Known_GeographicPhoneNumber_6XX_NationalDestinationCode(string [InlineData("7289109999", "728", "9109999", "Florida")] [InlineData("7289120000", "728", "9120000", "Florida")] [InlineData("7289999999", "728", "9999999", "Florida")] + [InlineData("7292000000", "729", "2000000", "Tennessee")] + [InlineData("7292109999", "729", "2109999", "Tennessee")] + [InlineData("7292120000", "729", "2120000", "Tennessee")] + [InlineData("7293109999", "729", "3109999", "Tennessee")] + [InlineData("7293120000", "729", "3120000", "Tennessee")] + [InlineData("7294109999", "729", "4109999", "Tennessee")] + [InlineData("7294120000", "729", "4120000", "Tennessee")] + [InlineData("7295109999", "729", "5109999", "Tennessee")] + [InlineData("7295120000", "729", "5120000", "Tennessee")] + [InlineData("7296109999", "729", "6109999", "Tennessee")] + [InlineData("7296120000", "729", "6120000", "Tennessee")] + [InlineData("7297109999", "729", "7109999", "Tennessee")] + [InlineData("7297120000", "729", "7120000", "Tennessee")] + [InlineData("7298109999", "729", "8109999", "Tennessee")] + [InlineData("7298120000", "729", "8120000", "Tennessee")] + [InlineData("7299109999", "729", "9109999", "Tennessee")] + [InlineData("7299120000", "729", "9120000", "Tennessee")] + [InlineData("7299999999", "729", "9999999", "Tennessee")] [InlineData("7302000000", "730", "2000000", "Illinois")] [InlineData("7302109999", "730", "2109999", "Illinois")] [InlineData("7302120000", "730", "2120000", "Illinois")] @@ -2906,6 +2942,24 @@ public void Parse_Known_GeographicPhoneNumber_6XX_NationalDestinationCode(string [InlineData("7379109999", "737", "9109999", "Texas")] [InlineData("7379120000", "737", "9120000", "Texas")] [InlineData("7379999999", "737", "9999999", "Texas")] + [InlineData("7382000000", "738", "2000000", "California")] + [InlineData("7382109999", "738", "2109999", "California")] + [InlineData("7382120000", "738", "2120000", "California")] + [InlineData("7383109999", "738", "3109999", "California")] + [InlineData("7383120000", "738", "3120000", "California")] + [InlineData("7384109999", "738", "4109999", "California")] + [InlineData("7384120000", "738", "4120000", "California")] + [InlineData("7385109999", "738", "5109999", "California")] + [InlineData("7385120000", "738", "5120000", "California")] + [InlineData("7386109999", "738", "6109999", "California")] + [InlineData("7386120000", "738", "6120000", "California")] + [InlineData("7387109999", "738", "7109999", "California")] + [InlineData("7387120000", "738", "7120000", "California")] + [InlineData("7388109999", "738", "8109999", "California")] + [InlineData("7388120000", "738", "8120000", "California")] + [InlineData("7389109999", "738", "9109999", "California")] + [InlineData("7389120000", "738", "9120000", "California")] + [InlineData("7389999999", "738", "9999999", "California")] [InlineData("7402000000", "740", "2000000", "Ohio")] [InlineData("7402109999", "740", "2109999", "Ohio")] [InlineData("7402120000", "740", "2120000", "Ohio")] @@ -2960,6 +3014,24 @@ public void Parse_Known_GeographicPhoneNumber_6XX_NationalDestinationCode(string [InlineData("7479109999", "747", "9109999", "California")] [InlineData("7479120000", "747", "9120000", "California")] [InlineData("7479999999", "747", "9999999", "California")] + [InlineData("7482000000", "748", "2000000", "Colorado")] + [InlineData("7482109999", "748", "2109999", "Colorado")] + [InlineData("7482120000", "748", "2120000", "Colorado")] + [InlineData("7483109999", "748", "3109999", "Colorado")] + [InlineData("7483120000", "748", "3120000", "Colorado")] + [InlineData("7484109999", "748", "4109999", "Colorado")] + [InlineData("7484120000", "748", "4120000", "Colorado")] + [InlineData("7485109999", "748", "5109999", "Colorado")] + [InlineData("7485120000", "748", "5120000", "Colorado")] + [InlineData("7486109999", "748", "6109999", "Colorado")] + [InlineData("7486120000", "748", "6120000", "Colorado")] + [InlineData("7487109999", "748", "7109999", "Colorado")] + [InlineData("7487120000", "748", "7120000", "Colorado")] + [InlineData("7488109999", "748", "8109999", "Colorado")] + [InlineData("7488120000", "748", "8120000", "Colorado")] + [InlineData("7489109999", "748", "9109999", "Colorado")] + [InlineData("7489120000", "748", "9120000", "Colorado")] + [InlineData("7489999999", "748", "9999999", "Colorado")] [InlineData("7542000000", "754", "2000000", "Florida")] [InlineData("7542109999", "754", "2109999", "Florida")] [InlineData("7542120000", "754", "2120000", "Florida")] @@ -3698,6 +3770,24 @@ public void Parse_Known_GeographicPhoneNumber_7XX_NationalDestinationCode(string [InlineData("8359109999", "835", "9109999", "Pennsylvania")] [InlineData("8359120000", "835", "9120000", "Pennsylvania")] [InlineData("8359999999", "835", "9999999", "Pennsylvania")] + [InlineData("8372000000", "837", "2000000", "California")] + [InlineData("8372109999", "837", "2109999", "California")] + [InlineData("8372120000", "837", "2120000", "California")] + [InlineData("8373109999", "837", "3109999", "California")] + [InlineData("8373120000", "837", "3120000", "California")] + [InlineData("8374109999", "837", "4109999", "California")] + [InlineData("8374120000", "837", "4120000", "California")] + [InlineData("8375109999", "837", "5109999", "California")] + [InlineData("8375120000", "837", "5120000", "California")] + [InlineData("8376109999", "837", "6109999", "California")] + [InlineData("8376120000", "837", "6120000", "California")] + [InlineData("8377109999", "837", "7109999", "California")] + [InlineData("8377120000", "837", "7120000", "California")] + [InlineData("8378109999", "837", "8109999", "California")] + [InlineData("8378120000", "837", "8120000", "California")] + [InlineData("8379109999", "837", "9109999", "California")] + [InlineData("8379120000", "837", "9120000", "California")] + [InlineData("8379999999", "837", "9999999", "California")] [InlineData("8382000000", "838", "2000000", "New York")] [InlineData("8382109999", "838", "2109999", "New York")] [InlineData("8382120000", "838", "2120000", "New York")] @@ -4418,6 +4508,24 @@ public void Parse_Known_GeographicPhoneNumber_8XX_NationalDestinationCode(string [InlineData("9209109999", "920", "9109999", "Wisconsin")] [InlineData("9209120000", "920", "9120000", "Wisconsin")] [InlineData("9209999999", "920", "9999999", "Wisconsin")] + [InlineData("9242000000", "924", "2000000", "Minnesota")] + [InlineData("9242109999", "924", "2109999", "Minnesota")] + [InlineData("9242120000", "924", "2120000", "Minnesota")] + [InlineData("9243109999", "924", "3109999", "Minnesota")] + [InlineData("9243120000", "924", "3120000", "Minnesota")] + [InlineData("9244109999", "924", "4109999", "Minnesota")] + [InlineData("9244120000", "924", "4120000", "Minnesota")] + [InlineData("9245109999", "924", "5109999", "Minnesota")] + [InlineData("9245120000", "924", "5120000", "Minnesota")] + [InlineData("9246109999", "924", "6109999", "Minnesota")] + [InlineData("9246120000", "924", "6120000", "Minnesota")] + [InlineData("9247109999", "924", "7109999", "Minnesota")] + [InlineData("9247120000", "924", "7120000", "Minnesota")] + [InlineData("9248109999", "924", "8109999", "Minnesota")] + [InlineData("9248120000", "924", "8120000", "Minnesota")] + [InlineData("9249109999", "924", "9109999", "Minnesota")] + [InlineData("9249120000", "924", "9120000", "Minnesota")] + [InlineData("9249999999", "924", "9999999", "Minnesota")] [InlineData("9252000000", "925", "2000000", "California")] [InlineData("9252109999", "925", "2109999", "California")] [InlineData("9252120000", "925", "2120000", "California")] @@ -5570,6 +5678,24 @@ public void Parse_Known_GeographicPhoneNumber_9XX_NationalDestinationCode(string [InlineData("4489109999", "448", "9109999", "Florida")] [InlineData("4489120000", "448", "9120000", "Florida")] [InlineData("4489999999", "448", "9999999", "Florida")] + [InlineData("4572000000", "457", "2000000", "Louisiana")] + [InlineData("4572109999", "457", "2109999", "Louisiana")] + [InlineData("4572120000", "457", "2120000", "Louisiana")] + [InlineData("4573109999", "457", "3109999", "Louisiana")] + [InlineData("4573120000", "457", "3120000", "Louisiana")] + [InlineData("4574109999", "457", "4109999", "Louisiana")] + [InlineData("4574120000", "457", "4120000", "Louisiana")] + [InlineData("4575109999", "457", "5109999", "Louisiana")] + [InlineData("4575120000", "457", "5120000", "Louisiana")] + [InlineData("4576109999", "457", "6109999", "Louisiana")] + [InlineData("4576120000", "457", "6120000", "Louisiana")] + [InlineData("4577109999", "457", "7109999", "Louisiana")] + [InlineData("4577120000", "457", "7120000", "Louisiana")] + [InlineData("4578109999", "457", "8109999", "Louisiana")] + [InlineData("4578120000", "457", "8120000", "Louisiana")] + [InlineData("4579109999", "457", "9109999", "Louisiana")] + [InlineData("4579120000", "457", "9120000", "Louisiana")] + [InlineData("4579999999", "457", "9999999", "Louisiana")] [InlineData("4582000000", "458", "2000000", "Oregon")] [InlineData("4582109999", "458", "2109999", "Oregon")] [InlineData("4582120000", "458", "2120000", "Oregon")] @@ -5660,6 +5786,24 @@ public void Parse_Known_GeographicPhoneNumber_9XX_NationalDestinationCode(string [InlineData("4709109999", "470", "9109999", "Georgia")] [InlineData("4709120000", "470", "9120000", "Georgia")] [InlineData("4709999999", "470", "9999999", "Georgia")] + [InlineData("4712000000", "471", "2000000", "Mississippi")] + [InlineData("4712109999", "471", "2109999", "Mississippi")] + [InlineData("4712120000", "471", "2120000", "Mississippi")] + [InlineData("4713109999", "471", "3109999", "Mississippi")] + [InlineData("4713120000", "471", "3120000", "Mississippi")] + [InlineData("4714109999", "471", "4109999", "Mississippi")] + [InlineData("4714120000", "471", "4120000", "Mississippi")] + [InlineData("4715109999", "471", "5109999", "Mississippi")] + [InlineData("4715120000", "471", "5120000", "Mississippi")] + [InlineData("4716109999", "471", "6109999", "Mississippi")] + [InlineData("4716120000", "471", "6120000", "Mississippi")] + [InlineData("4717109999", "471", "7109999", "Mississippi")] + [InlineData("4717120000", "471", "7120000", "Mississippi")] + [InlineData("4718109999", "471", "8109999", "Mississippi")] + [InlineData("4718120000", "471", "8120000", "Mississippi")] + [InlineData("4719109999", "471", "9109999", "Mississippi")] + [InlineData("4719120000", "471", "9120000", "Mississippi")] + [InlineData("4719999999", "471", "9999999", "Mississippi")] [InlineData("4722000000", "472", "2000000", "North Carolina")] [InlineData("4722109999", "472", "2109999", "North Carolina")] [InlineData("4722120000", "472", "2120000", "North Carolina")] @@ -5750,6 +5894,24 @@ public void Parse_Known_GeographicPhoneNumber_9XX_NationalDestinationCode(string [InlineData("4809109999", "480", "9109999", "Arizona")] [InlineData("4809120000", "480", "9120000", "Arizona")] [InlineData("4809999999", "480", "9999999", "Arizona")] + [InlineData("4832000000", "483", "2000000", "Alabama")] + [InlineData("4832109999", "483", "2109999", "Alabama")] + [InlineData("4832120000", "483", "2120000", "Alabama")] + [InlineData("4833109999", "483", "3109999", "Alabama")] + [InlineData("4833120000", "483", "3120000", "Alabama")] + [InlineData("4834109999", "483", "4109999", "Alabama")] + [InlineData("4834120000", "483", "4120000", "Alabama")] + [InlineData("4835109999", "483", "5109999", "Alabama")] + [InlineData("4835120000", "483", "5120000", "Alabama")] + [InlineData("4836109999", "483", "6109999", "Alabama")] + [InlineData("4836120000", "483", "6120000", "Alabama")] + [InlineData("4837109999", "483", "7109999", "Alabama")] + [InlineData("4837120000", "483", "7120000", "Alabama")] + [InlineData("4838109999", "483", "8109999", "Alabama")] + [InlineData("4838120000", "483", "8120000", "Alabama")] + [InlineData("4839109999", "483", "9109999", "Alabama")] + [InlineData("4839120000", "483", "9120000", "Alabama")] + [InlineData("4839999999", "483", "9999999", "Alabama")] [InlineData("4842000000", "484", "2000000", "Pennsylvania")] [InlineData("4842109999", "484", "2109999", "Pennsylvania")] [InlineData("4842120000", "484", "2120000", "Pennsylvania")] @@ -6488,6 +6650,24 @@ public void Parse_Known_GeographicPhoneNumber_4XX_NationalDestinationCode(string [InlineData("3539109999", "353", "9109999", "Wisconsin")] [InlineData("3539120000", "353", "9120000", "Wisconsin")] [InlineData("3539999999", "353", "9999999", "Wisconsin")] + [InlineData("3572000000", "357", "2000000", "California")] + [InlineData("3572109999", "357", "2109999", "California")] + [InlineData("3572120000", "357", "2120000", "California")] + [InlineData("3573109999", "357", "3109999", "California")] + [InlineData("3573120000", "357", "3120000", "California")] + [InlineData("3574109999", "357", "4109999", "California")] + [InlineData("3574120000", "357", "4120000", "California")] + [InlineData("3575109999", "357", "5109999", "California")] + [InlineData("3575120000", "357", "5120000", "California")] + [InlineData("3576109999", "357", "6109999", "California")] + [InlineData("3576120000", "357", "6120000", "California")] + [InlineData("3577109999", "357", "7109999", "California")] + [InlineData("3577120000", "357", "7120000", "California")] + [InlineData("3578109999", "357", "8109999", "California")] + [InlineData("3578120000", "357", "8120000", "California")] + [InlineData("3579109999", "357", "9109999", "California")] + [InlineData("3579120000", "357", "9120000", "California")] + [InlineData("3579999999", "357", "9999999", "California")] [InlineData("3602000000", "360", "2000000", "Washington")] [InlineData("3602109999", "360", "2109999", "Washington")] [InlineData("3602120000", "360", "2120000", "Washington")]