-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAreaCodes.m
More file actions
758 lines (753 loc) · 15.9 KB
/
AreaCodes.m
File metadata and controls
758 lines (753 loc) · 15.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
//
// AreaCodes.m
// AreaCode
//
// Created by Cameron Briar on 1/15/11.
// Copyright 2011 CSU Fresno. All rights reserved.
//
#import "AreaCodes.h"
@implementation AreaCodes
@synthesize areaCodes;
@synthesize county;
-(id) init {
if ([super init] == nil) {
return nil;
}
areaCodes = [[NSArray alloc] initWithObjects:@"201",
@"202",
@"203",
@"204",
@"205",
@"206",
@"207",
@"208",
@"209",
@"210",
@"212",
@"213",
@"214",
@"215",
@"216",
@"217",
@"218",
@"219",
@"224",
@"225",
@"226",
@"228",
@"229",
@"231",
@"234",
@"236",
@"239",
@"240",
@"242",
@"246",
@"248",
@"250",
@"251",
@"252",
@"253",
@"254",
@"256",
@"260",
@"262",
@"264",
@"267",
@"268",
@"269",
@"270",
@"276",
@"278",
@"280",
@"281",
@"282",
@"283",
@"284",
@"289",
@"301",
@"302",
@"303",
@"304",
@"305",
@"306",
@"307",
@"308",
@"309",
@"310",
@"311",
@"312",
@"313",
@"314",
@"315",
@"316",
@"317",
@"318",
@"319",
@"320",
@"321",
@"323",
@"325",
@"330",
@"331",
@"334",
@"336",
@"337",
@"339",
@"340",
@"345",
@"347",
@"351",
@"352",
@"353",
@"354",
@"356",
@"358",
@"360",
@"361",
@"369",
@"380",
@"383",
@"384",
@"385",
@"386",
@"401",
@"402",
@"403",
@"404",
@"405",
@"406",
@"407",
@"408",
@"409",
@"410",
@"411",
@"412",
@"413",
@"414",
@"415",
@"416",
@"417",
@"418",
@"419",
@"423",
@"424",
@"425",
@"430",
@"432",
@"434",
@"435",
@"438",
@"440",
@"441",
@"443",
@"450",
@"456",
@"464",
@"469",
@"470",
@"473",
@"475",
@"478",
@"479",
@"480",
@"484",
@"500",
@"501",
@"502",
@"503",
@"504",
@"505",
@"506",
@"507",
@"508",
@"509",
@"510",
@"511",
@"512",
@"513",
@"514",
@"515",
@"516",
@"517",
@"518",
@"519",
@"520",
@"530",
@"540",
@"541",
@"546",
@"551",
@"557",
@"559",
@"561",
@"562",
@"563",
@"564",
@"567",
@"570",
@"571",
@"573",
@"574",
@"580",
@"585",
@"586",
@"590",
@"600",
@"601",
@"602",
@"603",
@"604",
@"605",
@"606",
@"607",
@"608",
@"609",
@"610",
@"612",
@"613",
@"614",
@"615",
@"616",
@"617",
@"618",
@"619",
@"620",
@"623",
@"626",
@"630",
@"631",
@"636",
@"641",
@"646",
@"647",
@"650",
@"651",
@"657",
@"660",
@"661",
@"662",
@"664",
@"669",
@"671",
@"678",
@"682",
@"689",
@"700",
@"701",
@"702",
@"703",
@"704",
@"705",
@"706",
@"707",
@"708",
@"709",
@"710",
@"712",
@"713",
@"714",
@"715",
@"716",
@"717",
@"718",
@"719",
@"720",
@"724",
@"727",
@"731",
@"732",
@"734",
@"737",
@"740",
@"757",
@"758",
@"760",
@"763",
@"765",
@"770",
@"772",
@"773",
@"774",
@"775",
@"778",
@"780",
@"781",
@"784",
@"785",
@"786",
@"787",
@"800",
@"801",
@"802",
@"803",
@"804",
@"805",
@"806",
@"807",
@"808",
@"809",
@"810",
@"812",
@"813",
@"814",
@"815",
@"816",
@"817",
@"818",
@"819",
@"822",
@"828",
@"830",
@"831",
@"832",
@"833",
@"835",
@"843",
@"844",
@"845",
@"847",
@"848",
@"850",
@"855",
@"856",
@"857",
@"858",
@"859",
@"860",
@"861",
@"862",
@"863",
@"864",
@"865",
@"866",
@"867",
@"868",
@"869",
@"870",
@"872",
@"876",
@"877",
@"878",
@"888",
@"898",
@"900",
@"901",
@"902",
@"903",
@"904",
@"905",
@"906",
@"907",
@"908",
@"909",
@"910",
@"911",
@"912",
@"913",
@"914",
@"915",
@"916",
@"917",
@"918",
@"919",
@"920",
@"925",
@"928",
@"931",
@"935",
@"936",
@"937",
@"939",
@"940",
@"941",
@"947",
@"949",
@"951",
@"952",
@"954",
@"956",
@"959",
@"970",
@"971",
@"972",
@"973",
@"975",
@"976",
@"978",
@"979",
@"980",
@"984",
@"985",
@"989",nil];
county = [[NSArray alloc] initWithObjects:@"N New Jersey: Jersey City, Hackensack",
@"Washington, D.C.",
@"Connecticut",
@"Manitoba Canada",
@"Central and Western Alabama",
@"W. Washington state: Seattle",
@"Maine",
@"Idaho",
@"Central California",
@"San Antonio S. Texas",
@"New York City, New York",
@"Los Angeles California",
@"Dallas Texas",
@"Philadelphia Pennsylvania",
@"Cleveland",
@"Central Illinois",
@"North Minnesota",
@"North Indiana",
@"Northern NE Illinois",
@"Louisiana: Baton Rouge",
@"SW Ontario Canada",
@"South Mississippi",
@"SW Georgia",
@"Michigan",
@"NE Ohio",
@"Virginia",
@"Florida",
@"West Maryland: Silver Spring, Frederick",
@"Bahamas",
@"Barbados",
@"Michigan: Oakland county",
@"British Columbia",
@"South Alabama",
@"NE Carolina",
@"South Washington",
@"Central Texas",
@"Huntsville, Alabama",
@"NE Indiana",
@"Wisconsin, surrounding Milwaukee",
@"Anguilla",
@"SE Pennsylvania: Philadelphia",
@"Antigua and Barbuda",
@"SW Michigan",
@"West Kentucky",
@"South Virginia",
@"Michigan",
@"Maryland",
@"Texas: Houston Metro",
@"Illinois",
@"SW Ohio",
@"British Virgin Islands",
@"South Central Canada",
@"W Maryland: Silver Spring, Frederick",
@"Delaware",
@"Central Colorado: Denver",
@"West Virginia",
@"SE Florida: Miami",
@"Saskatchewan Canada",
@"Wyoming",
@"West Nebraska",
@"West Central Illinois",
@"South California: Los Angeles",
@"Reserved / Municipal Assistance",
@"Chicago, Illinois (Downtown only)",
@"Detroit and suburbs",
@"SE Missouri: St Louis metro area only",
@"North Central New York",
@"South Kansas",
@"Central Indiana",
@"Northern Louisiana",
@"East Iowa",
@"Central. Minnesota",
@"Florida",
@"Los Angeles",
@"Central Texas",
@"NE Ohio: Akron, Canton, and Youngstown area",
@"NE Illinois",
@"South Alabama",
@"Central North Carolina",
@"SW Louisiana",
@"Boston Massachusetts",
@"US Virgin Islands",
@"Cayman Islands",
@"New York",
@"North Massachusetts",
@"Florida",
@"Wisconsin",
@"Florida",
@"New Jersey",
@"Pennsylvania",
@"W. Washington State",
@"Corpus Christi",
@"California",
@"Ohio",
@"Maine",
@"Ohio",
@"Utah",
@"Daytona Beach, Florida",
@"Rhode Island",
@"East Nebraska",
@"Alberta",
@"N Georgia: Atlanta",
@"Oklahoma City metro",
@"Montana",
@"Central Florida: Metro Orlando",
@"Cupertino, Santa Clara, and San Jose area",
@"SE Texas: Galveston, Port Arthur",
@"East Maryland",
@"Not an area code - information",
@"West Pennsylvania",
@"West Massachusetts",
@"SE Wisconsin: Milwaukee",
@"San Francisco, California",
@"Canada: Metrolpolitan Toronto",
@"SW Missouri: Springfield",
@"NE Quebec",
@"NW Ohio: Toledo",
@"East Tennessee",
@"Los Angeles, South California",
@"North Washington",
@"NE Texas",
@"West Texas",
@"East Virginia",
@"Utah outside Salt Lake City",
@"Canada: SW Quebec",
@"Ohio: Cleveland metro area, excluding Cleveland",
@"Bermuda",
@"East Maryland",
@"Southeastern Quebec outside metro Montreal",
@"International Inbound",
@"Illinois",
@"Texas",
@"Georgia",
@"Grenada",
@"Connecticut",
@"Central Georgia",
@"NW Arkansas",
@"Arizona",
@"SE Pennsylvania: Allentown, Reading",
@"Personal Services",
@"Central Arkansas",
@"W Kentucky: Louisville",
@"Oregon",
@"East Louisiana: New Orleans",
@"New Mexico",
@"New Brunswick Canada",
@"South Minnesota: Rochester",
@"Cent. Massachusetts: Framingham",
@"East Washington",
@"California: Oakland, East Bay",
@"Travel information line.",
@"Austin",
@"SW Ohio",
@"SW Quebec: Montreal",
@"Central Iowa",
@"Nassau county on Long Island and New York: Hempstead",
@"Central Michigan",
@"NE New York: Albany",
@"SW Ontario: Windsor",
@"Arizona outside the Phoenix area",
@"NE California: Chico, Redding",
@"Fredericksburg and Roanoke and nearby areas",
@"Oregon",
@"E Michigan",
@"North New Jersey",
@"SE Missouri",
@"California: Fresno",
@"Florida (S. Central) (West Palm Beach, Boca Raton, Vero Beach)",
@"California: Long Beach",
@"East Iowa",
@"West Washington",
@"NW Ohio",
@"E Pennsylvania: Wilkes-Barre, Scranton",
@"North Virginia",
@"SE Missouri: excluding St Louis metro area",
@"North Indiana",
@"Western and Southern Oklahoma",
@"NW New York: Rochester",
@"Michigan",
@"French West Indies",
@"Canadian Services",
@"Mississippi",
@"Phoenix Arizona",
@"New Hampshire",
@"Canada: British Columbia, Greater Vancouver",
@"South Dakota",
@"East Kentucky: Ashland",
@"South Central New York: Ithaca, Binghamton",
@"SW Wisconsin: Madison",
@"South New Jersey: Trenton",
@"SE Pennsylvania: Allentown, Reading",
@"Central Minnesota, Minneapolis",
@"Canada: SE Ontario, Ottawa",
@"SE Ohio: Columbus",
@"East Tennessee: Nashville",
@"West Michigan: Grand Rapids",
@"East Massachusetts: Boston",
@"South Illinois",
@"South California: San Diego",
@"South Kansas: Wichita",
@"Arizona",
@"SE California: Pasadena",
@"NE Illinois, Oak Brook or Chicago suburbs",
@"New York: Suffolk County",
@"Missouri",
@"Iowa",
@"Manhattan New York",
@"South Central Ontario",
@"Peninsula south of San Francisco",
@"Central Minnesota, St. Paul",
@"Orange County, California",
@"North Missouri",
@"California: N. Los Angeles, Mojave",
@"Mississippi",
@"Montserrat",
@"Central California coast",
@"Guam",
@"North Georgia: Atlanta",
@"Fort Worth Texas",
@"Central Florida",
@"Interconnect Services",
@"North Dakota",
@"South Nevada",
@"Northern Virginia: Arlington, McLean, Tysons Corner",
@"West North Carolina: Charlotte",
@"Canada: NW Ontario, Sault Ste. Marie",
@"North Georgia: Columbus, Augusta",
@"NW California: Santa Rosa",
@"Central NE Illinois: Oak Brook",
@"Canada Newfoundland",
@"US Government",
@"West Iowa",
@"Mid SE Texas: Houston",
@"North Orange County, California",
@"North Wisconsin: Eau Claire",
@"NW New York: Buffalo, Rochester",
@"East Pennsylvania: Wilkes-Barre, Scranton",
@"New York City, New York",
@"SE Colorado: Pueblo, Colorado Springs",
@"Central Colorado: Denver",
@"SW Pennsylvania",
@"Tampa Metro: Saint Petersburg, Clearwater",
@"West Tennessee",
@"Central New Jersey: New Brunswick, Bound Brook",
@"SE Michigan: west and south of Detroit -- Ann Arbor, Monroe",
@"South Texas",
@"SE Ohio",
@"E Virginia, Williamsburgh area, including Portsmouth",
@"St. Lucia",
@"California: Southeastern San Diego north to Sierra Nevada",
@"Minnesota",
@"Indiana: outside Indianapolis",
@"Atlanta and suburbs",
@"South central Florida",
@"Non-downtown Chicago, Illinois",
@"Massachusetts",
@"Nevada",
@"British Colombia Canada",
@"Alberta Canada",
@"E Massachusetts: Boston suburbs",
@"St. Vincent/Grenadines",
@"N Kansas: Topeka",
@"SE Florida",
@"Puerto Rico",
@"Domestic Toll-Free",
@"Salt Lake City Metro",
@"Vermont",
@"South Carolina",
@"East Virginia: Richmond",
@"South Central Coastal California: Bakersfield",
@"Panhandle Texas: Amarillo",
@"Canada: West Ontario, Thunder Bay",
@"HAWAII",
@"Bermuda, Puerto Rico, Virgin Islands, Caribbean",
@"East Michigan: Flint, Pontiac",
@"South Indiana: Evansville",
@"SW Florida: Tampa Metro",
@"Central Pennsylvania: Erie",
@"NE Illinois: Rockford, Kankakee",
@"N Missouri: Kansas City",
@"N Cent. Texas: Fort Worth area",
@"S California: Los Angeles",
@"Canada: NW Quebec: Trois Rivieres",
@"US/Canada Toll-Free",
@"West North Carolina: Asheville",
@"Texas: North and West of San Antonio",
@"California: central coast area from Santa Cruz through Monterey County",
@"Texas",
@"US/Canada Toll-Free",
@"SE Pennsylvania",
@"South Carolina",
@"US/Canada Toll-Free",
@"New York",
@"Northern NE Illinois: Oak Brook",
@"Central New Jersey",
@"Florida panhandle, from east of Tallahassee to Pensacola",
@"US/Canada Toll-Free",
@"SW New Jersey",
@"Massachusetts",
@"S California: San Diego",
@"Kentucky",
@"Connecticut",
@"SW Florida",
@"North New Jersey",
@"Florida",
@"South Carolina",
@"Tennessee",
@"US/Canada Toll-Free",
@"Canada: Yukon and Northwest Territories",
@"Trindad & Tobago",
@"St. Kitts/Nevis",
@"South Arkansas",
@"Illinois: Chicago",
@"Jamaica",
@"Domestic Toll-Free",
@"Pittsburgh",
@"Domestic Toll-Free",
@"VoIP service",
@"Personal paid service line",
@"W Tennessee: Memphis",
@"Canada: Nova Scotia, Prince Edward Island",
@"NE Texas: Tyler",
@"North Florida: Jacksonville",
@"South central Ontario",
@"Upper Peninsula Michigan: Sault Ste. Marie, Escanaba, Marquette",
@"Alaska",
@"Cent. New Jersey: Elizabeth, Basking Ridge, Somerville, Bridgewater",
@"Inland empire: San Bernandino",
@"South Central North Carolina: Fayetteville, Wilmington",
@"Emergency Help",
@"South Georgia: Savannah",
@"North East Kansas/Kansas City Metro/Leavenworth",
@"South New York: White Plains",
@"West Texas: Sweetwater",
@"NE California: Sacramento",
@"New York City, New York",
@"East Oklahoma: Tulsa",
@"East North Carolina: Raleigh",
@"NE Wisconsin",
@"California",
@"Arizona",
@"Central Tennessee",
@"South California: San Diego",
@"SE Texas",
@"SW Ohio: Dayton",
@"Puerto Rico",
@"North Central Texas: Denton, Wichita Falls",
@"SW Florida: Tampa Area",
@"Michigan",
@"South Coastal Orange County California",
@"West riverside California",
@"Minnesota",
@"Broward County area, including Ft. Lauderdale",
@"Valley of Texas area (Harlingen)",
@"Connecticut",
@"North and West Colorado",
@"Oregon",
@"Texas: Dallas Metro: Dallas and parts of Denton and Collin counties",
@"North New Jersey: Newark Paterson Morristown",
@"North Missouri",
@"Personal paid service line",
@"Central Massachusetts",
@"SE Texas",
@"Carolina",
@"Carolina",
@"E Louisiana",
@"Michigan",
nil];
return self;
}
@end