npa 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/npa.rb +482 -0
  2. metadata +46 -0
@@ -0,0 +1,482 @@
1
+ # encoding: utf-8
2
+
3
+ module NPA
4
+ AREA = {
5
+ #2xx
6
+ 201 => 'New Jersey (Hackensack, Jersey City, Hoboken, Bayonne, Ridgewood, Union City, Teaneck, New Milford, and most of northeastern New Jersey)',
7
+ 202 => 'Washington, D.C. (all)',
8
+ 203 => 'Connecticut (Bridgeport, Danbury, New Haven, Waterbury, and southwestern Connecticut)',
9
+ 204 => 'Manitoba (all)',
10
+ 205 => 'Alabama (Birmingham; Tuscaloosa, and parts of western and central Alabama)',
11
+ 206 => 'State of Washington (Seattle, all of Bainbridge, Mercer, and Vashon islands, Burien, Des Moines, Lake Forest Park, Normandy Park, Sea-Tac, Shoreline, Tukwila, and some small unincorporated areas adjacent to these. Also, parts of Woodway and Edmonds)',
12
+ 207 => 'Maine (all except Estcourt Station)',
13
+ 208 => 'Idaho (all)',
14
+ 209 => 'California (Stockton, Modesto, Merced, Tracy, San Andreas, and part of central California extending into central Yosemite National Park)',
15
+ 210 => 'Texas (San Antonio metropolitan area)',
16
+ 211 => 'Community Services Hotline (e.g., crisis line, United Way, etc.)',
17
+ 212 => 'New York City (Manhattan except for Marble Hill)',
18
+ 213 => 'California (Downtown Los Angeles)',
19
+ 214 => 'Texas (Dallas–Fort Worth metroplex)',
20
+ 215 => 'Pennsylvania (Philadelphia area including its suburbs in eastern Montgomery County and most of Bucks County as well as a very small portion of Berks County around the Hereford area, which is served by the Pennsburg 679 exchange.)',
21
+ 216 => 'Ohio (Cleveland area)',
22
+ 217 => 'Illinois (Springfield, Champaign, Decatur, Urbana, Lincoln, and parts of central Illinois)',
23
+ 218 => 'Minnesota (Duluth, Moorhead, Thief River Falls, Bemidji, Brainerd, International Falls, and most of northern Minnesota)',
24
+ 219 => 'Indiana (northwest => Gary, Chesterton, Crown Point, East Chicago, Hammond, Hobart, Merrillville, Michigan City, Portage, Valparaiso)',
25
+ 224 => 'Northeastern Illinois',
26
+ 225 => 'Louisiana (Baton Rouge, Donaldsonville, New Roads, White Castle, and east-central Louisiana)',
27
+ 226 => 'Ontario',
28
+ 227 => 'Maryland',
29
+ 228 => 'Mississippi (Gulfport, Biloxi, Pascagoula, Bay St. Louis, and southmost Mississippi)',
30
+ 229 => 'Georgia (Albany, Valdosta, Bainbridge, Americus, Fitzgerald, and most of southwestern Georgia)',
31
+ 231 => 'Michigan (Muskegon, Traverse City, Ludington, Petoskey, and part of northwestern Michigan)',
32
+ 234 => 'Ohio',
33
+ 236 => 'British Columbia',
34
+ 239 => 'Florida (southwest coast => all of Lee County, Collier County, the mainland part of Monroe County, including Cape Coral, Fort Myers, Naples, and Everglades)',
35
+ 240 => 'Maryland',
36
+ 242 => 'The Bahamas (all)',
37
+ 246 => 'Barbados (all)',
38
+ 248 => 'Michigan (Oakland County)',
39
+ 249 => 'Ontario => (Northeastern Ontario and Central Ontario => Greater Sudbury, Sault Ste. Marie, North Bay, etc.)',
40
+ 250 => 'British Columbia (Victoria, Prince George, Prince Rupert, Kelowna, all areas except for Vancouver); also the town of Hyder, Alaska.',
41
+ 251 => 'Alabama (Mobile County, Baldwin County, Bay Minette, Jackson, Brewton, Citronelle, and part of southwestern Alabama)',
42
+ 252 => 'North Carolina (Greenville, New Bern, Kinston, Kitty Hawk, Rocky Mount)',
43
+ 253 => 'State of Washington (Tacoma, Lakewood, Auburn, Puyallup, Enumclaw, Spanaway, and the southern suburbs of Seattle)',
44
+ 254 => 'Texas (Waco, Killeen, Temple, Belton, and Stephenville)',
45
+ 256 => 'Alabama (Huntsville, Decatur, Cullman, Gadsden, Madison, Florence, Sheffield, Tuscumbia, Fort Payne, Scottsboro, and most of northern Alabama)',
46
+ 260 => 'Indiana (Fort Wayne, New Haven, Decatur, Angola, Huntington, Wabash, and most of northeastern Indiana)',
47
+ 262 => 'Wisconsin (Racine, Kenosha, Menomonee Falls, Waukesha, and most of southeastern Wisconsin excluding Milwaukee County)',
48
+ 264 => 'Anguilla (all)',
49
+ 267 => 'Pennsylvania (Philadelphia and surrounding suburban area)',
50
+ 268 => 'Antigua and Barbuda (all)',
51
+ 269 => 'Michigan (Battle Creek, Kalamazoo, Benton Harbor, Allegan, Hastings, St. Joseph, and most of southwestern Michigan)',
52
+ 270 => 'Kentucky (Owensboro, Paducah, Bowling Green, Hopkinsville, Henderson, Elizabethtown, and most of western Kentucky)',
53
+ 272 => 'Pennsylvania (northeastern)',
54
+ 274 => 'Wisconsin',
55
+ 276 => 'Virginia (Bristol, Abingdon, Wytheville, Martinsville, Bluefield, and most of southwestern Virginia)',
56
+ 281 => 'Texas (Houston area)',
57
+ 283 => 'southwest Ohio',
58
+ 284 => 'the British Virgin Islands (all)',
59
+ 289 => 'Ontario',
60
+ #3xx
61
+ 301 => 'Maryland (Silver Spring, Washington, D.C., suburbs, all counties which touch the Potomac River, and the towns of Hagerstown, Frederick, Rockville, Cumberland, and land line telephones in all of western Maryland)',
62
+ 302 => 'Delaware (all)',
63
+ 303 => 'Colorado (Denver, Boulder, Longmont, Aurora, Golden, Limon, Centennial; central Colorado)',
64
+ 304 => 'West Virginia',
65
+ 305 => 'Florida (all of Miami-Dade County and the Florida Keys => Miami, Miami Beach, Homestead, Coral Gables, Marathon, Key West.)',
66
+ 306 => 'Saskatchewan (all)',
67
+ 307 => 'Wyoming (all)',
68
+ 308 => 'Nebraska (North Platte, Scottsbluff, McCook, Kearney, Grand Island, and all of western Nebraska)',
69
+ 309 => 'Illinois (Peoria, Bloomington, Moline, Rock Island, Galesburg, and west-central Illinois)',
70
+ 310 => 'California (Beverly Hills, Brentwood, Malibu, Pacific Palisades, Redondo Beach, Santa Monica, Torrance, Santa Catalina Island, and the coastal areas of Los Angeles County)',
71
+ 311 => 'Local or government non-emergency use; City Hall in some localities.',
72
+ 312 => 'Illinois (downtown Chicago)',
73
+ 313 => 'Michigan (Dearborn, Detroit and its inner enclaves of Hamtramck and Highland Park)',
74
+ 314 => 'Missouri (St. Louis, St. Louis County, Florissant, Crestwood, Hazelwood, Kirwood, and surrounding suburbs of St. Louis)',
75
+ 315 => 'New York (Syracuse, Utica, Watertown, and north-central New York)',
76
+ 316 => 'Kansas (Wichita metropolitan area, McConnell Air Force Base, Augusta, El Dorado, Mulvane, and Hutchinson)',
77
+ 317 => 'Indiana (Indianapolis and immediate metro area including Carmel, Fishers, Noblesville, Greenwood, Mooresville, Beech Grove, Plainfield, Avon, and Brownsburg.)',
78
+ 318 => 'Louisiana (Shreveport, Monroe, Alexandria, Fisher, Tallulah, and most of northern Louisiana)',
79
+ 319 => 'Iowa (Cedar Rapids, Waterloo, Burlington, Iowa City, east-central, and southeastern Iowa)',
80
+ 320 => 'Minnesota (St. Cloud, Alexandria, Morris, Hutchinson, Sandstone, Appleton, Willmar and central Minnesota)',
81
+ 321 => 'Florida (Orlando, Cocoa, Melbourne, Rockledge, Titusville, St Cloud, and east-central Florida)',
82
+ 323 => 'California (part of the City of Los Angeles excluding Downtown Los Angeles, Western Los Angeles, Westwood, the San Fernando Valley, Florence, and Montebello)',
83
+ 325 => 'Texas (Abilene, San Angelo, Sweetwater, Snyder)',
84
+ 327 => 'Arkansas (Texarkana, Jonesboro, Pine Bluff, and most of southern, eastern, and northeastern Arkansas)',
85
+ 330 => 'Ohio (Akron, Canton, Youngstown, Warren, and most of northeastern Ohio)',
86
+ 331 => 'Illinois (Aurora, Naperville, Oswego, and other western suburbs of Chicago)',
87
+ 334 => 'Alabama (Montgomery, Auburn, Dothan, Enterprise, Eufaula, Opelika, Phenix City, Selma, Tuskegee and most of southeastern Alabama)',
88
+ 336 => 'North Carolina (Greensboro, Winston-Salem, Wilkesboro, Roxboro, and most of northwestern North Carolina)',
89
+ 337 => 'Louisiana (Lafayette, Lake Charles, Leesville, New Iberia, Opelousas, and most of southwestern Louisiana)',
90
+ 339 => 'Massachusetts',
91
+ 340 => 'the U.S. Virgin Islands (all)',
92
+ 341 => 'east shore of San Francisco Bay, California',
93
+ 343 => 'Ontario => (Ottawa metropolitan area and southeastern Ontario)',
94
+ 345 => 'the Cayman Islands (all)',
95
+ 347 => 'New York City',
96
+ 351 => 'Massachusetts',
97
+ 352 => 'Florida (Gainesville, Ocala, Inverness, Dunnellon, and part of central Florida)',
98
+ 356 => 'New Jersey',
99
+ 360 => 'State of Washington (Olympia, Vancouver, Bellingham, Bremerton, Port Angeles, Aberdeen, and most of western Washington except the Seattle metropolitan area)',
100
+ 361 => 'Texas (Corpus Christi, Victoria, George West, and much of South Texas)',
101
+ 364 => 'Kentucky',
102
+ 365 => 'Ontario',
103
+ 369 => 'northwest California',
104
+ 380 => 'Ohio',
105
+ 385 => 'Utah (Counties of Davis, Morgan, Salt Lake, Utah, and Weber along the Wasatch Front, including the cities of Salt Lake City, Ogden, and Provo)',
106
+ 386 => 'Florida (Daytona Beach, Lake City, Live Oak, Crescent City, and parts of northeastern Florida)',
107
+ 387 => 'Toronto, Ontario, Canada',
108
+ #4xx
109
+ 401 => 'Rhode Island (all)',
110
+ 402 => 'Nebraska (Omaha, Lincoln, Norfolk, Superior, and most of eastern Nebraska)',
111
+ 403 => 'Alberta (Calgary, Banff, Red Deer, Medicine Hat, Lethbridge, Brooks, and most of southern Alberta)',
112
+ 404 => 'Georgia (Atlanta and the Atlanta metropolitan area inside of the Interstate 285 perimeter highway)',
113
+ 405 => 'Oklahoma (Oklahoma City, Stillwater, Edmond, Norman, Shawnee, and most of central Oklahoma)',
114
+ 406 => 'Montana (all)',
115
+ 407 => 'Florida (Orlando, Sanford, St. Cloud, Kissimmee, and part of east-central Florida)',
116
+ 408 => 'California (San Jose, Cupertino, Los Gatos, Milpitas, Mountain View, Santa Clara, Sunnyvale, and Silicon Valley)',
117
+ 409 => 'Texas (Beaumont, Galveston, Orange, Port Arthur, and Texas City)',
118
+ 410 => 'Maryland (except for St. Mary\'s County, all counties and cities which touch the Chesapeake Bay, the Atlantic Ocean, or Delaware, including Annapolis, metropolitan Baltimore, Berlin, Cambridge, Ocean City, Princess Anne, and Salisbury) as well as Howard County (Columbia)',
119
+ 411 => 'Directory Services',
120
+ 412 => 'Pennsylvania (Pittsburgh region, including McKeesport, Monroeville, Bethel Park, Penn Hills, and Ross; the area code encompasses the majority of Allegheny County and portions of Westmoreland County)',
121
+ 413 => 'Massachusetts (Springfield, Pittsfield, Holyoke, Greenfield, and most of Western Massachusetts)',
122
+ 414 => 'Wisconsin (Milwaukee County and the city of Milwaukee)',
123
+ 415 => 'California (San Francisco and most of Marin County)',
124
+ 416 => 'Ontario (the City of Toronto)',
125
+ 417 => 'Missouri (Springfield, Joplin, Branson, Lamar, Lebanon, and most of southwestern Missouri)',
126
+ 418 => 'Quebec (Quebec City, Saguenay, the Gaspé Peninsula, Côte-Nord, Chibougamau, St-Georges), Maine (Estcourt Station)',
127
+ 419 => 'Ohio (Toledo, Sylvania, Mansfield, Lima, Findlay, Sandusky, Bowling Green, and most of northwestern Ohio)',
128
+ 423 => 'Tennessee (two discontiguous portions of East Tennessee => Bristol, Johnson City, Kingsport, etc., in the northeast; and Chattanooga, Cleveland, Philadelphia, and McMinnville in the southeast)',
129
+ 424 => 'California',
130
+ 425 => 'State of Washington (the northern and eastern suburbs of Seattle => Bellevue, Everett, Edmonds, Kirkland, Redmond, Renton, Sammamish, Issaquah, and Lynnwood.)',
131
+ 430 => 'Texas',
132
+ 431 => 'Manitoba',
133
+ 432 => 'Texas (West Texas => Midland, Odessa, Big Spring, Alpine, Fort Stockton)',
134
+ 434 => 'Virginia (Charlottesville, Lynchburg, Danville, and south-central Virginia)',
135
+ 435 => 'Utah (Cedar City, Logan, Moab, Park City, Price, St. George, Tooele, Vernal and all the rest of Utah, excluding the counties of Davis, Morgan, Salt Lake, Utah, and Weber)',
136
+ 437 => 'Ontario (Toronto metropolitan area)',
137
+ 438 => 'Quebec (Montreal metropolitan area)',
138
+ 440 => 'Ohio (surrounding Cleveland on three sides, including => Elyria, Lorain, Oberlin, Ashtabula, and most of north-central Ohio)',
139
+ 441 => 'Bermuda (all)',
140
+ 442 => 'California',
141
+ 443 => 'Maryland',
142
+ 447 => 'Illinois',
143
+ 450 => 'Quebec (central southern Quebec including the city of Laval and other suburbs of Montreal but excluding the City of Montreal)',
144
+ 456 => 'Inbound international calls for carrier-specific services',
145
+ 458 => 'Oregon (Eugene, Medford, Bend, Pendleton, Corvallis, Ontario, Burns, and all of Oregon except the metropolitan region of northwestern Oregon)',
146
+ 464 => 'Illinois',
147
+ 469 => 'Texas',
148
+ 470 => 'Georgia',
149
+ 473 => 'Grenada (all)',
150
+ 475 => 'Connecticut',
151
+ 478 => 'Georgia (Macon, Warner Robins, Swainsboro, Milledgeville, Perry, and part of central Georgia)',
152
+ 479 => 'Arkansas (Fort Smith, Fayetteville, Rogers, and most of northwestern Arkansas)',
153
+ 480 => 'Arizona (Mesa, Scottsdale, Chandler, Tempe, and the eastern Phoenix metropolitan area)',
154
+ 484 => 'Pennsylvania',
155
+ #5xx
156
+ 500 => 'Personal Communications Services',
157
+ 501 => 'Arkansas (Little Rock, Hot Springs, and much of central Arkansas, but not Pine Bluff.)',
158
+ 502 => 'Kentucky (Louisville, Frankfort, Shelbyville, Bardstown, and most of north-central Kentucky)',
159
+ 503 => 'Oregon (Portland, Salem, Hillsboro, St. Helens, Tillamook, Astoria and most of northwestern Oregon)',
160
+ 504 => 'Louisiana (New Orleans metropolitan area)',
161
+ 505 => 'New Mexico (Albuquerque, Santa Fe, Farmington, Gallup, and all of northwestern New Mexico, and part of central New Mexico)',
162
+ 506 => 'New Brunswick',
163
+ 507 => 'Minnesota (Rochester, Mankato, Austin, Marshall, Winona and most of southern Minnesota)',
164
+ 508 => 'Massachusetts (Worcester, New Bedford, Fall River, Cape Cod, and most of southeastern Massachusetts)',
165
+ 509 => 'State of Washington (all of eastern Washington, including Spokane, Ellensburg, Pullman, the Tri-Cities area, Walla Walla, Wenatchee, and Yakima.)',
166
+ 510 => 'California (Oakland, Fremont, Hayward, Richmond, Berkeley and Alameda)',
167
+ 511 => 'Used as a state or local transportation or transit information hub. Otherwise used to direct local police non-emergency services in some communities.',
168
+ 512 => 'Texas (Austin, San Marcos, and parts of central Texas)',
169
+ 513 => 'Ohio (Cincinnati, Middletown, Hamilton, Lebanon, and parts of southern and southwestern Ohio. This area code formerly also included Dayton.)',
170
+ 514 => 'Quebec (the entire Island of Montreal, Île Perrot, and Île Bizard)',
171
+ 515 => 'Iowa (Des Moines, Ames, Fort Dodge, Jefferson, Indianola and most of north-central Iowa)',
172
+ 516 => 'New York State (Nassau County, Hempstead, Long Beach, Great Neck, etc.)',
173
+ 517 => 'Michigan (Lansing, Jackson, Charlotte, Deerfield, Addison, and most of south-central Michigan)',
174
+ 518 => 'New York State (Albany, Schenectady, Plattsburgh, Saranac Lake, Lake George, Westport, and most of northeastern New York State)',
175
+ 519 => 'Ontario (London, Windsor, Kitchener-Waterloo, Cambridge, and most of southwestern Ontario)',
176
+ 520 => 'Arizona (Tucson, Nogales, Fort Huachuca, and most of southeastern Arizona)',
177
+ 521 => 'Reserved for Personal Communications Services',
178
+ 522 => 'Reserved for Personal Communications Services',
179
+ 523 => 'Reserved for Personal Communications Services',
180
+ 524 => 'Reserved for Personal Communications Services',
181
+ 525 => 'Reserved for Personal Communications Services',
182
+ 526 => 'Reserved for Personal Communications Services',
183
+ 527 => 'Reserved for Personal Communications Services',
184
+ 528 => 'Reserved for Personal Communications Services',
185
+ 529 => 'Reserved for Personal Communications Services',
186
+ 530 => 'California (Redding, Auburn, Chico, Davis, Lake Tahoe, Placerville, Susanville, Truckee, Yreka, and most of northeastern California)',
187
+ 531 => 'Nebraska (Omaha, Lincoln, Norfolk, Superior, and most of eastern Nebraska)',
188
+ 532 => 'Reserved for Personal Communications Services',
189
+ 533 => 'Personal Communications Services',
190
+ 534 => 'Wisconsin',
191
+ 538 => 'Reserved for Personal Communications Services',
192
+ 539 => 'Oklahoma (Tulsa, Bartlesville, McAlester, Muskogee, Henryetta and northeastern Oklahoma)',
193
+ 540 => 'Virginia (Fredericksburg, Roanoke, Blacksburg, Harrisonburg, Lexington, Staunton, Winchester, and parts of north-central Virginia)',
194
+ 541 => 'Oregon (Eugene, Bend, Corvallis, Medford, Pendleton, and all of Oregon except metropolitan northwestern Oregon, including Portland, Salem, Astoria, etc.)',
195
+ 542 => 'Reserved for Personal Communications Services',
196
+ 543 => 'Reserved for Personal Communications Services',
197
+ 544 => 'Personal Communications Services',
198
+ 545 => 'Reserved for Personal Communications Services',
199
+ 547 => 'Reserved for Personal Communications Services',
200
+ 549 => 'Reserved for Personal Communications Services',
201
+ 551 => 'New Jersey',
202
+ 552 => 'Reserved for Personal Communications Services',
203
+ 553 => 'Reserved for Personal Communications Services',
204
+ 554 => 'Reserved for Personal Communications Services',
205
+ 555 => 'Reserved for directory assistance applications',
206
+ 556 => 'Reserved for Personal Communications Services',
207
+ 557 => 'Missouri',
208
+ 559 => 'California (Fresno, Hanford, Madera, Tulare, Visalia, and parts of the Central Valley of California.)',
209
+ 561 => 'Florida (Palm Beach County, including Palm Beach, West Palm Beach, Boca Raton, Boynton Beach, etc.)',
210
+ 562 => 'California (Long Beach, Whittier, Norwalk, La Habra, Lakewood, Pico Rivera, and most of southeastern Los Angeles County)',
211
+ 563 => 'Iowa (Davenport, Dubuque, Clinton, Bettendorf, and most of eastern and northeastern Iowa)',
212
+ 564 => 'State of Washington (Western Washington)',
213
+ 566 => 'Reserved for Personal Communications Services',
214
+ 567 => 'Ohio',
215
+ 569 => 'Reserved for Personal Communications Services',
216
+ 570 => 'Pennsylvania (Scranton, Wilkes-Barre, Bloomsburg, Danville, Nanticoke, Williamsport, and most of northeastern Pennsylvania)',
217
+ 571 => 'Virginia',
218
+ 573 => 'Missouri (Columbia, Jefferson City, Hannibal, Cape Girardeau, Farmington, Lake of the Ozarks, Poplar Bluff, and most of eastern Missouri excluding St. Louis County and the City of St. Louis)',
219
+ 574 => 'Indiana (South Bend, Elkhart, Goshen, and most of north-central Indiana)',
220
+ 575 => 'New Mexico (Las Cruces, Roswell, Carlsbad Caverns National Park, Socorro, Taos, Truth or Consequences; excludes central (Albuquerque and its suburbs) and northwestern New Mexico)',
221
+ 577 => 'Reserved for Personal Communications Services',
222
+ 578 => 'Reserved for Personal Communications Services',
223
+ 579 => 'Quebec (central southern Quebec including the city of Laval and other suburbs of Montreal but excluding the City of Montreal)',
224
+ 580 => 'Oklahoma (Ponca City, Ardmore, Enid, Lawton, Elk City, and most of southern and western Oklahoma)',
225
+ 581 => 'Quebec',
226
+ 582 => 'Pennsylvania',
227
+ 585 => 'New York State (Rochester, Batavia, and much of western New York State)',
228
+ 586 => 'Michigan (Warren, Sterling Heights, and Macomb County)',
229
+ 587 => 'Alberta',
230
+ 588 => 'Reserved for Personal Communications Services',
231
+ 589 => 'Reserved for Personal Communications Services',
232
+ #6xx
233
+ 600 => 'Special telecommunications needs in Canada',
234
+ 601 => 'Mississippi (Jackson, Hattiesburg, Meridian, Natchez, Vicksburg, and most of central Mississippi)',
235
+ 602 => 'Arizona (Phoenix)',
236
+ 603 => 'New Hampshire (all)',
237
+ 604 => 'British Columbia (Greater Vancouver Regional District, Whistler)',
238
+ 605 => 'South Dakota (all)',
239
+ 606 => 'Kentucky (Ashland, Pikeville, Hazard, Somerset, London, Corbin, Maysville, and much of eastern Kentucky)',
240
+ 607 => 'New York State (Binghamton, Elmira, Cornell, Norwich, Ithaca, and most of south-central New York)',
241
+ 608 => 'Wisconsin (Madison, La Crosse, Platteville, Beloit, and most of southwestern Wisconsin)',
242
+ 609 => 'New Jersey (Trenton, Atlantic City, Princeton, and most of central & southeastern New Jersey)',
243
+ 610 => 'Pennsylvania (Chester, Lehigh Valley, Norristown, Reading; parts of southeastern Pennsylvania)',
244
+ 611 => 'Repair service for land-line telephones; customer service for most wireless carriers',
245
+ 612 => 'Minnesota (Minneapolis, Fort Snelling, St. Anthony, and Richfield)',
246
+ 613 => 'Ontario (Ottawa and eastern Ontario)',
247
+ 614 => 'Ohio Columbus and Franklin County',
248
+ 615 => 'Tennessee (Nashville, Cookeville, Lebanon, Murfreesboro, Sparta, Smyrna, Springfield, and most of Middle Tennessee)',
249
+ 616 => 'Michigan (Grand Rapids, Greenville, Holland, Ionia, Zeeland, and most of southwestern Michigan)',
250
+ 617 => 'Massachusetts (Boston, Cambridge, Quincy, Newton, Everett, and the nearby suburbs)',
251
+ 618 => 'Illinois (Carbondale, Alton, Belleville, Cahokia, Centralia, Edwardsville, Marion, Metropolis, Vandalia, and most of southern Illinois)',
252
+ 619 => 'California (southern half of San Diego, California city, and southern and eastern suburbs including Chula Vista, National City, El Cajon, La Mesa, Lemon Grove)',
253
+ 620 => 'Kansas (southern Kansas not including the Wichita Metropolitan Area and Hutchison.)',
254
+ 623 => 'Arizona (part of Maricopa County, including Glendale, Buckeye, Goodyear, Peoria, Sun City, and the western half of Phoenix)',
255
+ 626 => 'California (Pasadena, Arcadia, Clermont, Covina, El Monte, La Cañada-Flintridge, La Puente, Monrovia, the San Gabriel Valley, Upland, and West Covina)',
256
+ 627 => 'the northern California coast',
257
+ 628 => 'San Francisco',
258
+ 630 => 'Illinois (Western suburbs of Chicago, including DuPage, central and southern Kane, northern Kendall, far northern Will, and small portions of Cook Counties. Includes Aurora, Naperville, Wheaton, Downers Grove, Elmhurst, Lombard, Glen Ellyn, Bloomingdale, Carol Stream, Addison, Glendale Heights, Bartlett, Hanover Park, Streamwood, Bolingbrook, St. Charles, Geneva, Batavia, Sugar Grove, Oswego, Yorkville, Plano, Darien, Woodridge, Hinsdale, Oak Brook, Lemont, and other suburbs west of Chicago)',
259
+ 631 => 'New York State (Suffolk County on Long Island)',
260
+ 636 => 'Missouri (St. Charles, Chesterfield, Union, Troy, and parts of east-central Missouri)',
261
+ 639 => 'Saskatchewan',
262
+ 641 => 'Iowa (Mason City, Oskaloosa, Creston, Pella, Ottumwa, Britt, Clear Lake, Fairfield, and parts of central Iowa)',
263
+ 646 => 'New York State (Borough of Manhattan, except for Marble Hill on the mainland of New York)',
264
+ 647 => 'Ontario',
265
+ 649 => 'the Turks and Caicos Islands (all)',
266
+ 650 => 'California (Palo Alto, Redwood City, Menlo Park, Mountain View, San Mateo, Santa Clara, Stanford, South San Francisco)',
267
+ 651 => 'Minnesota (St. Paul, Eagan, Lindstrom, Red Wing, Hastings, Stillwater and part of east-central Minnesota)',
268
+ 657 => 'California',
269
+ 658 => 'Jamaica',
270
+ 659 => 'Alabama',
271
+ 660 => 'Missouri (Sedalia, Kirksville, Maryville, Mexico, Whiteman Air Force Base, and part of north-central Missouri)',
272
+ 661 => 'California (Bakersfield, Lancaster, Palmdale, Edwards Air Force Base, and parts of Kern County, and Los Angeles County)',
273
+ 662 => 'Mississippi (Tupelo, Columbus, Corinth, Greenville, Greenwood, Starkville, and most of northern Mississippi)',
274
+ 664 => 'Montserrat (all)',
275
+ 667 => 'Maryland',
276
+ 669 => 'California',
277
+ 670 => 'Northern Mariana Islands',
278
+ 671 => 'Guam',
279
+ 672 => 'British Columbia',
280
+ 678 => 'Georgia',
281
+ 679 => 'Michigan',
282
+ 681 => 'West Virginia',
283
+ 682 => 'Texas',
284
+ 684 => 'American Samoa',
285
+ 689 => 'Florida',
286
+ #7xx
287
+ 700 => 'Long Distance carrier use for pre-subscribing phone numbers',
288
+ 701 => 'North Dakota (all)',
289
+ 702 => 'Nevada (almost all of Clark County, including all of the Las Vegas Valley, including Henderson and Boulder City)',
290
+ 703 => 'Virginia (Northern Virginia => mostly the suburbs of Washington, D.C., including Alexandria, Arlington County, Fairfax County, Prince William County, and eastern Loudoun County)',
291
+ 704 => 'North Carolina (Charlotte, Concord, Gastonia, Salisbury, and much of south-central North Carolina)',
292
+ 705 => 'Ontario => (Northeastern Ontario and Central Ontario => Greater Sudbury, Sault Ste. Marie, North Bay, etc.)',
293
+ 706 => 'Georgia (Athens, Augusta, Columbus, Carrollton, Carroll County, Cartersville, Dalton, Rome, and much of northwestern, northeastern and eastern Georgia, with an exclave in western Georgia)',
294
+ 707 => 'California (Vallejo, Crescent City, Eureka, Redwoods National Park, Santa Rosa, Ukiah, and most of northwestern California)',
295
+ 708 => 'Illinois (Western and southern portions of suburban Cook County and far eastern sections of Will County. Includes Beecher, Berwyn, Brookfield, Bridgeview, Burbank, Calumet City, Chicago Heights, Cicero, Dolton, Elmwood Park, Evergreen Park, Franklin Park, Harvey, Hazel Crest, Homer Glen, Homewood, La Grange, Lansing, Matteson, Maywood, Melrose Park, Mokena, Monee, Oak Forest, Oak Park, Orland Park, Palos Hills, Park Forest, Peotone, Tinley Park, University Park, and other southern and near western suburbs of Chicago)',
296
+ 709 => 'Newfoundland and Labrador',
297
+ 710 => 'U.S. Government Special Services',
298
+ 711 => 'Telecommunications device for the deaf/Relay Service for TTY to Voice and Voice to TTY',
299
+ 712 => 'Iowa (Sioux City, Council Bluffs, Denison, and most of western Iowa)',
300
+ 713 => 'Texas (Houston area)',
301
+ 714 => 'California (Orange County => Anaheim, Fullerton, Garden Grove, Huntington Beach, Irvine, Newport Beach, Orange, Santa Ana, etc.)',
302
+ 715 => 'Wisconsin (Wausau, Eau Claire, Rhinelander, and most of northern Wisconsin)',
303
+ 716 => 'New York State (Buffalo, Niagara Falls, Olean, and parts of western New York)',
304
+ 717 => 'Pennsylvania (Harrisburg, Gettysburg, Lancaster, York and most of south-central Pennsylvania)',
305
+ 718 => 'New York State (New York City except for Manhattan, but this area code includes Marble Hill, a neighborhood of the Borough of Manhattan located on the mainland)',
306
+ 719 => 'Colorado (Colorado Springs, Pueblo, Florence, Leadville, Limon, Trinidad, La Junta, and most of southeastern Colorado)',
307
+ 720 => 'Colorado',
308
+ 721 => 'Sint Maarten',
309
+ 724 => 'Pennsylvania (Washington, Greensburg, Indiana, New Castle, Uniontown, Butler, and the majority of Southwestern Pennsylvania outside of Pittsburgh\'s Allegheny County)',
310
+ 727 => 'Florida (all of Pinellas County including St. Petersburg, Clearwater, Dunedin, Palm Harbor, Tarpon Springs, and the coastal parts of Pasco County)',
311
+ 730 => 'Illinois',
312
+ 731 => 'Tennessee (most of West Tennessee — excluding Metropolitan Memphis and Shelby County, but including Dyersburg, Jackson, Martin, Paris, Union City, and Crockett County)',
313
+ 732 => 'New Jersey (New Brunswick, Lakewood, Neptune, Fort Dix, and most of east-central New Jersey—but not Atlantic City)',
314
+ 734 => 'Michigan (Ann Arbor, Hell, Monroe, Plymouth, Romulus, Wayne, Ypsilanti, and the southwestern suburbs of Detroit)',
315
+ 737 => 'Texas',
316
+ 740 => 'Ohio (Suburban Columbus, central Ohio outside of Franklin County, excluding the Marysville area, together with southeastern Ohio => Athens, Lancaster, Cambridge, Delaware, Ironton, Marietta, Mt. Vernon, Newark, Portsmouth, Steubenville, Washington Court House, and Zanesville)',
317
+ 742 => 'Ontario, Canada',
318
+ 747 => 'California (Los Angeles County, San Fernando Valley)',
319
+ 754 => 'Florida',
320
+ 757 => 'Virginia (Part of Hampton Roads and the Eastern Shore of Virginia)',
321
+ 758 => 'Saint Lucia (all)',
322
+ 760 => 'California (Bishop, Ridgecrest, Barstow—eastern portions of San Bernardino County and Riverside County, including Palm Springs, Palm Desert, and Indio—Imperial County, and parts of northern and eastern San Diego County, including Oceanside and other northern suburbs of San Diego, California)',
323
+ 761 => 'Palm Beach County, Florida',
324
+ 762 => 'Georgia',
325
+ 763 => 'Minnesota (Brooklyn Park, Plymouth, Maple Grove, Monticello, Elk River, Fridley, Blaine, and the northwest suburban area of Minneapolis)',
326
+ 764 => 'western San Francisco Bay, including Contra Costa County',
327
+ 765 => 'Indiana (Lafayette, Marion, Muncie, Richmond, West Lafayette, and most of central Indiana excluding Indianapolis and immediate suburbs)',
328
+ 767 => 'Commonwealth of Dominica (all)',
329
+ 769 => 'Mississippi',
330
+ 770 => 'Georgia (Marietta, Carrollton, Gainesville, Jonesboro, Lawrenceville, Roswell, Stone Mountain, and much of north-central Georgia outside of Atlanta\'s Interstate 285 Perimeter Highway)',
331
+ 772 => 'Florida (Fort Pierce, Port Saint Lucie, Sebastian, Stuart, and Vero Beach, and all of Indian River County and Martin County)',
332
+ 773 => 'Illinois (City of Chicago, excluding downtown)',
333
+ 774 => 'Massachusetts',
334
+ 775 => 'Nevada (Carson City, Reno, Elko, Ely, Sparks, Winnemucca, Great Basin National Park, Naval Air Station Fallon, and all of Nevada except for most of Clark County in southernmost Nevada)',
335
+ 778 => 'British Columbia (all)',
336
+ 779 => 'Illinois',
337
+ 780 => 'Alberta (Edmonton, Jasper, Grande Prairie, Peace River, and all of northern Alberta)',
338
+ 781 => 'Massachusetts (Saugus, Norwood, Waltham Woburn, and other suburbs of Boston along Route 128)',
339
+ 782 => 'Nova Scotia and Prince Edward Island',
340
+ 784 => 'Saint Vincent and the Grenadines (all)',
341
+ 785 => 'Kansas (Topeka, Salina, Colby, Lawrence, Manhattan, and all of northern and central Kansas not including the Kansas City Metropolitan Area)',
342
+ 786 => 'Florida (Miami-Dade County and the Florida Keys)',
343
+ 787 => 'Puerto Rico',
344
+ #8xx
345
+ 800 => 'Toll-free telephone service',
346
+ 801 => 'Utah (Counties of Davis, Morgan, Salt Lake, Utah, and Weber along the Wasatch Front, including the cities of Salt Lake City, Ogden, and Provo)',
347
+ 802 => 'Vermont (all)',
348
+ 803 => 'South Carolina (Columbia, Rock Hill, Sumter, Aiken, and most of central South Carolina)',
349
+ 804 => 'Virginia (the Richmond Metropolitan Area, including Petersburg; also the Northern Neck and Middle Peninsula)',
350
+ 805 => 'California (Ventura County, San Luis Obispo County, Santa Barbara County, Atascadero, Lompoc, Ojai, Oxnard, Pismo Beach, San Buenaventura, Santa Maria, Simi Valley, and Vandenberg Air Force Base)',
351
+ 806 => 'Texas (Lubbock, Amarillo, Canadian, Canyon, Dalhart, and the entire Texas Panhandle)',
352
+ 807 => 'Ontario (Northwestern Ontario => Thunder Bay, Kenora, Dryden, Greenstone)',
353
+ 808 => 'Hawaii (covers all of the Hawaiian Islands to Midway Atoll, and major Hawaiian cities including Honolulu, Kailua, Mililani, Haleiwa, Hilo, Kahului, Lihue, etc. Area code also includes Wake Island)',
354
+ 809 => 'Dominican Republic',
355
+ 810 => 'Michigan (Port Huron, Flint, Lapeer, and Michigan "Thumb")',
356
+ 811 => 'Mobile customer service on some North American cellular carriers, also used as a 9-1-1 like emergency number to handle distress calls in much of Jamaica',
357
+ 812 => 'Indiana (Southern Indiana, including Bloomington, Evansville, Terre Haute, Columbus, Jeffersonville, Lawrenceburg, Madison, and New Albany)',
358
+ 813 => 'Florida (all of Hillsborough County, including Tampa and its suburbs, MacDill Air Force Base, and Plant City; and also the inland areas of Pasco County)',
359
+ 814 => 'Pennsylvania (Erie, State College, Altoona, Clearfield, Emporium, Johnsonburg, Johnstown, Meyersdale, Ridgway, Somerset, and most of northwestern and parts of central Pennsylvania)',
360
+ 815 => 'Illinois (much of northern Illinois outside Chicago & its immediate surrounding suburbs. Includes Rockford and its suburbs, Belvidere, La Salle, Peru, DeKalb, Sycamore, Freeport, Dixon, Sterling, Rock Falls, Ottawa, Morris, Princeton, Mendota, Rochelle, Sandwich, Streator, Pontiac, Kankakee, and some outlying Chicago suburbs such as Harvard, McHenry, Crystal Lake, Woodstock, Plainfield, Joliet, Romeoville, Lockport, New Lenox, Frankfort, Minooka, Channahon, and Shorewood)',
361
+ 816 => 'Missouri (Kansas City, St Joseph, Independence, Harrisonville, and parts of west-central Missouri)',
362
+ 817 => 'Texas (Fort Worth, Arlington, Grand Prairie, Grandview, Weatherford)',
363
+ 818 => 'California => the San Fernando Valley of Los Angeles County, including Burbank, Canoga Park, Encino, Glendale, North Hollywood, Northridge, Panorama City, Reseda, San Fernando, Sylmar, Tarzana, Van Nuys, and Woodland Hills)',
364
+ 819 => 'Quebec (Abitibi-Témiscamingue, Estrie, Mauricie, Outaouais, Sherbrooke, and Trois-Rivieres)',
365
+ 822 => 'reserved for future toll-free expansion',
366
+ 825 => 'reserved for future usage in Alberta.',
367
+ 828 => 'North Carolina (Asheville, Franklin, Hickory, Murphy, Waynesville, and parts of western North Carolina)',
368
+ 829 => 'the Dominican Republic',
369
+ 830 => 'Texas (Del Rio, Kerrville, Eagle Pass, Fredericksburg, New Braunfels, and part of the Rio Grande Valley)',
370
+ 831 => 'California (Monterey, Salinas, Monterey County, Hollister, and Santa Cruz)',
371
+ 832 => 'Texas',
372
+ 833 => 'reserved for future toll-free expansion',
373
+ 843 => 'South Carolina (Charleston, Florence, Hilton Head Island, Myrtle Beach, Charleston Air Force Base, and most of southeastern South Carolina)',
374
+ 844 => 'reserved for future toll-free expansion',
375
+ 845 => 'New York State (Dutchess, Orange, Putnam, Rockland, Sullivan, and Ulster Counties in southeastern New York State. Includes => Poughkeepsie, Middletown, Kingston, West Point, Newburgh, and the Catskill Mountains west to Margaretville)',
376
+ 847 => 'Illinois (North and northwest suburbs of Chicago, including Lake, northern Cook, northern Kane, and extreme southeastern McHenry Counties. Includes Evanston, Skokie, Niles, Park Ridge, Des Plaines, Mount Prospect, Arlington Heights, Palatine, Wheeling, Buffalo Grove, Barrington, Elk Grove Village, Schaumburg, Hoffman Estates, Elgin, Carpentersville, Algonquin, Lake in the Hills, Huntley, Hampshire, Cary, Lake Zurich, Fox Lake, Round Lake Beach, Antioch, Gurnee, Waukegan, Zion, Lake Forest, Vernon Hills, Libertyville, Mundelein, Northbrook, Glenview, Deerfield, Highland Park, Wilmette, Winnetka, etc.)',
377
+ 848 => 'New Jersey',
378
+ 849 => 'the Dominican Republic',
379
+ 850 => 'northwestern Florida (Appalachicola, Pensacola, Tallahassee, Quincy, Panama City, Naval Air Station Pensacola, Eglin Air Force Base, and all of the Florida Panhandle)',
380
+ 855 => 'reserved for future toll-free expansion',
381
+ 856 => 'New Jersey (Cherry Hill, Camden, Millville, Vineland, and most of southwestern New Jersey)',
382
+ 857 => 'Massachusetts (Boston, Cambridge, Quincy, Newton, Everett, and the nearby suburbs)',
383
+ 858 => 'Southern California (the northern half of San Diego, California city and some northern suburbs)',
384
+ 859 => 'Kentucky (Lexington, Richmond, Danville, Covington, Florence, and northernmost Kentucky)',
385
+ 860 => 'Connecticut (Hartford, Bristol, Norwich, and northern and eastern Connecticut)',
386
+ 862 => 'New Jersey',
387
+ 863 => 'Florida (Lakeland, Bartow, Sebring, Winter Haven in south-central Florida)',
388
+ 864 => 'South Carolina (Greenville, Spartanburg, Anderson, Clemson, and most of northwestern South Carolina)',
389
+ 865 => 'Tennessee (Knoxville, Alcoa, Athens, Clinton, Crossville, Dayton, Gatlinburg, Loudon, Maryville, Newport, Oak Ridge, Oliver Springs, Pigeon Forge, Rockwood, Sweetwater, etc., in East Tennessee)',
390
+ 866 => 'Toll-free telephone service',
391
+ 867 => 'Yukon, Northwest Territories, and Nunavut',
392
+ 868 => 'Trinidad and Tobago (all)',
393
+ 869 => 'Saint Kitts and Nevis (all)',
394
+ 870 => 'Arkansas (Texarkana, Jonesboro, Pine Bluff, and southern, eastern, and northeastern Arkansas)',
395
+ 872 => 'Illinois',
396
+ 873 => 'Quebec',
397
+ 876 => 'Jamaica (all)',
398
+ 877 => 'Toll-free telephone service',
399
+ 878 => 'Pennsylvania',
400
+ 880 => 'Toll-free telephone service',
401
+ 881 => 'Toll-free telephone service',
402
+ 882 => 'Toll-free telephone service',
403
+ 888 => 'Toll-free telephone service',
404
+ #9xx
405
+ 900 => 'premium-rate telephone numbers',
406
+ 901 => 'Tennessee (Memphis, Covington, Germantown, Somerville, and extreme southwestern Tennessee, mostly in Shelby County)',
407
+ 902 => 'Nova Scotia and Prince Edward Island',
408
+ 903 => 'Texas (Tyler, Sherman, Longview, Marshall, Palestine, Jacksonville, Carthage, and Northeast Texas)',
409
+ 904 => 'Florida (Jacksonville, St. Augustine, Starke, and most of northeastern Florida)',
410
+ 905 => 'Ontario (Niagara Falls Region, Hamilton, St. Catharines, suburbs of the Greater Toronto Area, and southeastern Ontario)',
411
+ 906 => 'Michigan (Upper Peninsula of Michigan => (Sault Ste. Marie, Escanaba, Houghton, Iron Mountain, Marquette, Menominee, etc.)',
412
+ 907 => 'all of Alaska excluding the lone town of Hyder',
413
+ 908 => 'New Jersey (Alpha, Washington, Elizabeth, Warren, Plainfield, and west-central New Jersey)',
414
+ 909 => 'California (western portions of San Bernardino County, and parts of Los Angeles County and Riverside County, including Fontana, Pomona, Chino Hills, Claremont, Chino, Ontario, Redlands)',
415
+ 910 => 'North Carolina (Fayetteville, Wilmington, Fort Bragg, Seymour Johnson Air Force Base, Jacksonville, Lumberton and much of southeastern North Carolina)',
416
+ 911 => 'Emergency Services',
417
+ 912 => 'Georgia (Savannah, Statesboro, Vidalia, Waycross, Brunswick, Douglas, and southeastern Georgia)',
418
+ 913 => 'Kansas (Kansas City, Kansas, Overland Park, Leavenworth, Ft. Leavenworth, parts of eastern Kansas)',
419
+ 914 => 'New York State (Westchester County)',
420
+ 915 => 'Texas (all of El Paso County and portions of Hudspeth County)',
421
+ 916 => 'California (the Sacramento Metropolitan Area)',
422
+ 917 => 'New York State (New York City; cellular telephones)',
423
+ 918 => 'Oklahoma (Tulsa, Bartlesville, McAlester, Muskogee, Henryetta and northeastern Oklahoma)',
424
+ 919 => 'North Carolina (Raleigh, the state capital city, Durham, Chapel Hill, Goldsboro, and part of north-central North Carolina)',
425
+ 920 => 'Wisconsin (Appleton, Sheboygan, Oshkosh, Green Bay, Manitowoc, Marquette, Fond du Lac, and parts of eastern Wisconsin—but not Milwaukee County)',
426
+ 925 => 'California (Livermore, Concord, Pleasant Hill, Walnut Creek, Martinez, Pleasanton and Dublin, just east of San Francisco Bay. Much of this area is served by the Bay Area Rapid Transit system, including Concord.)',
427
+ 928 => 'Arizona (Flagstaff, Kingman, Lake Havasu City, Page, Payson, Prescott, Tuba City, Williams, Winslow, Window Rock, Yuma, and most of northern and western Arizona, including the Grand Canyon National Park, the Lower Colorado River Valley, and the Navajo Nation)',
428
+ 929 => 'New York',
429
+ 931 => 'Tennessee (Middle Tennessee, excluding the Nashville Metropolitan Area => Clarksville, Manchester, Columbia, Cookeville, Sparta)',
430
+ 935 => 'San Diego',
431
+ 936 => 'Texas (Nacogdoches, Lufkin, Conroe, Huntsville, Center, and Southeast Texas)',
432
+ 937 => 'Ohio (Dayton, Marysville, Springfield, Hillsboro, and southwestern Ohio excluding the Cincinnati Metropolitan Area)',
433
+ 938 => 'Alabama (Huntsville, Anniston, Cullman, Decatur, Florence, Ft. Payne, Gadsden, Madison, Sheffield, Tuscumbia)',
434
+ 939 => 'Puerto Rico',
435
+ 940 => 'Texas (Denton, Wichita Falls, Decatur, Gainesville, Vernon, etc.)',
436
+ 941 => 'Florida (Gulf Coast immediately south of Tampa Bay => all of Manatee County, Sarasota County, and Charlotte County; includes Bradenton, Port Charlotte, Sarasota, and Punta Gorda)',
437
+ 947 => 'Michigan',
438
+ 949 => 'California (Irvine, Lake Forest, Mission Viejo, Newport Beach, Corona del Mar, and part of southern Orange County)',
439
+ 950 => 'Used internally for carrier access',
440
+ 951 => 'California (western Riverside County, including Riverside, Corona, Lake Elsinore, Mira Loma, Moreno Valley, Sun City, Temecula, Winchester, Lakeview, etc.)',
441
+ 952 => 'Minnesota (Bloomington, Eden Prairie, Edina, Minnetonka, Chaska, and the southwest suburban Minneapolis area)',
442
+ 954 => 'Florida (all of Broward County => Fort Lauderdale, Hollywood, Coral Springs, etc.)',
443
+ 956 => 'Texas (Laredo, Harlingen, Brownsville, McAllen, and southmost Texas)',
444
+ 959 => 'Connecticut',
445
+ 970 => 'Colorado (Grand Junction, Aspen, Durango, Estes Park, Fort Collins, Frisco, Glenwood Springs, Greeley, Purgatory, Steamboat Springs, Telluride, Vail, Rocky Mountain National Park, Dinosaur National Monument, and most of north-central, south-central, and western Colorado)',
446
+ 971 => 'Oregon (Portland, Salem, Hillsboro, Beaverton, and most of northwestern Oregon)',
447
+ 972 => 'Texas',
448
+ 973 => 'New Jersey (Newark, Paterson, and most of northeastern New Jersey)',
449
+ 975 => 'Missouri',
450
+ 978 => 'Massachusetts (Fitchburg, Lowell, Lawrence, Peabody, and northeastern Massachusetts)',
451
+ 979 => 'Texas (Wharton, Bryan, Bay City, College Station, Lake Jackson, La Grange, and southeastern Texas)',
452
+ 980 => 'North Carolina',
453
+ 984 => 'North Carolina',
454
+ 989 => 'Michigan (Alpena, Mt. Pleasant, Bay City, Saginaw, Midland, Owosso, and part of central Michigan)'
455
+ }
456
+
457
+ def self.find(code)
458
+ AREA[code]
459
+ end
460
+
461
+ def self.exist?(code)
462
+ AREA.key?(code)
463
+ end
464
+
465
+ def self.of_number(number)
466
+ number = number.to_s.gsub(/[^0-9]/, '')
467
+
468
+ case number.length
469
+ when 10
470
+ area_code = number[0,3].to_i
471
+ when 11
472
+ area_code = number[1,3].to_i
473
+ else
474
+ return nil
475
+ end
476
+
477
+ npa = find(area_code)
478
+ return npa, area_code if npa
479
+ end
480
+
481
+ class << self; alias_method(:exists?, :exist?); end;
482
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: npa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - presskey
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-02 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Numbering Plan Area assignments for NANP (North American Numbering Plan)
15
+ email: hello.from.code@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/npa.rb
21
+ homepage: http://github.com/presskey/npa
22
+ licenses: []
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 1.8.24
42
+ signing_key:
43
+ specification_version: 3
44
+ summary: Numbering Plan Area.
45
+ test_files: []
46
+ has_rdoc: