dupuy@cs.columbia.edu (Alexander Dupuy) (01/14/89)
You don't need a C program to translate area codes into placenames: this script does the trick just as well, and it's easy to modify when they change: @alex ============================================================================== #!/bin/sh 'exec' /usr/bin/look "$1" "$0" 011 [ International Access Code ] 201 Morristown, and Newark, (Northeast) New Jersey 202 Washington, District of Columbia 203 All parts of Connecticut 204 All parts of Manitoba, CANADA 205 All parts of Alabama 206 Seattle, Tacoma, and Vancouver, (Western) Washington 207 All parts of Maine 208 All parts of Idaho 209 Fresno and Stockton, (Central) California 212 New York City (Manhattan and Bronx) New York 213 Los Angeles, California 214 Dallas, (Northeast) Texas 215 Allentown, Chester, and Philadelphia, (Southeast) Pennsylvania 216 Akron, Cleveland, Massillon, and Youngstown, (Northeast) Ohio 217 Springfield, (South Central) Illinois 218 Duluth, (Northern) Minnesota 219 Gary, Hammond, Michigan City, and South Bend, (Northwest) Indiana 301 All parts of Maryland 302 All parts of Delaware 303 Denver, (North and West) Colorado 304 All parts of West Virginia 305 Fort Lauderdale, Key West and Miami, (Southeast) Florida 306 All parts of Saskatchewan, CANADA 307 All parts of Wyoming 308 North Platte, (Western) Nebraska 309 Peoria, (West Central) Illinois 312 Chicago, Illinois 313 Detroit and Ann Arbor, (Eastern) Michigan 314 Saint Louis and Columbia, (Eastern) Missouri 315 Syracuse and Utica, (North Central) New York 316 Dodge City and Wichita, (Southern) Kansas 317 Indianapolis and Kokomo, (Central) Indiana 318 Lake Charles and Shreveport, (Western) Louisiana 319 Dubuque, (Eastern) Iowa 401 All parts of Rhode Island 402 Lincoln and Omaha, (Eastern) Nebraska 403 All parts of Alberta, CANADA 404 Atlanta and Rome, (Northern) Georgia 405 Oklahoma City, (South and West) Oklahoma 406 All parts of Montana 407 Orlando, West Palm Beach, (Eastern) Florida 408 San Jose and Sunnyvale, (Silicon Valley) California 409 Galveston, (Southeast) Texas 411 [ Directory Assistance ] 412 Pittsburgh, (Western) Pennsylvania 413 Springfield, (Western) Massachusetts 414 Green Bay, Milwaukee, and Racine, (Eastern) Wisconsin 415 Oakland and San Francisco, (Bay Area) California 416 Toronto, (South Central) Ontario, CANADA 417 Joplin and Springfield, (Southwest) Missouri 418 Quebec City, (Northeast) Quebec, CANADA 419 Toledo, (Northwest) Ohio 501 All parts of Arkansas 502 Louisville and Paducah, (Western) Kentucky 503 All parts of Oregon 504 Baton Rouge and New Orleans, (Eastern) Louisiana 505 All parts of New Mexico 506 All parts of New Brunswick, CANADA 507 Rochester, (Southern) Minnesota 508 Worcester, Framingham and New Bedford, (Eastern) Massachusetts 509 Spokane, and Walla Walla, (Eastern) Washington 512 Austin, Corpus Christi, and San Antonio, (Southern) Texas 513 Cincinnati and Dayton, (Southwest) Ohio 514 Montreal, (Southern) Quebec, CANADA 515 Des Moines, (Central) Iowa 516 Hempstead, (Long Island) New York 517 Lansing and Saginaw, (Central) Michigan 518 Albany and Schenectady, (Northeast) New York 519 London, (Southwest) Ontario, CANADA 601 All parts of Mississippi 602 All parts of Arizona 603 All parts of New Hampshire 604 All parts of British Columbia, CANADA 605 All parts of South Dakota 606 Ashland and Covington, (Eastern) Kentucky 607 Binghamton, Elmira and Ithaca, (South Central) New York 608 Beloit and Madison, (Southwest) Wisconsin 609 Atlantic City, Camden, and Trenton, (Southwest) New Jersey 611 [ Repair Service ] 612 Minneapolis and Saint Paul, (Central) Minnesota 613 Ottawa, (Southeast) Ontario, CANADA 614 Columbus, (Southeast) Ohio 615 Chattanooga and Nashville, (Eastern) Tennessee 616 Battle Creek, and Grand Rapids, (Western) Michigan 617 Boston area, (Eastern) Massachusetts 618 Alton and Centralia, (Southern) Illinois 619 San Diego and the Imperial Valley, California 701 All parts of North Dakota 702 All parts of Nevada 703 Arlington and Roanoke, (North and Western) Virginia 704 Charlotte and Salisbury, (Western) North Carolina 705 North Bay, (Northern) Ontario, CANADA 706 Tijuana, (Northwest) MEXICO [equivalent to +52 6X XXX XXX] 707 Eureka, Napa, and Santa Rosa, (North Coastal) California 708 Aurora, Elgin, and Highland Park, (Northeast) Illinois 709 All parts of Newfoundland and Labrador, CANADA 712 Council Bluffs, (Western) Iowa 713 Houston, Texas 714 Orange County and Palm Springs, California 715 Eau Claire and Wausau, (Northern) Wisconsin 716 Buffalo, Niagara Falls, and Rochester, (Western) New York 717 Harrisburg, Scranton, and Wilkes-Barre, (Central) Pennsylvania 718 New York City (Queens, Brooklyn and Staten Island) New York 719 Colorado Springs and Pueblo, (Southeast) Colorado 801 All parts of Utah 802 All parts of Vermont 803 All parts of South Carolina 804 Charlottesville, Norfolk, and Richmond, (Southeast) Virginia 805 Bakersfield, Ventura, and Simi Valley, (South Central) California 806 Amarillo, (Northern) Texas 807 Thunder Bay, (Northwest) Ontario, CANADA 808 All parts of Hawaii 809 Bahamas, Bermuda, Puerto Rico, and the Virgin Islands 812 Evansville, (Southern) Indiana 813 Fort Myers and St. Petersburg, (Southwest) Florida 814 Altoona and Erie, (West Central) Pennsylvania 815 Joliet, and Rockford, (Northwest) Illinois 816 Kansas City and Saint Joseph, (Northwest) Missouri 817 Fort Worth, Temple, and Waco, (North Central) Texas 818 San Fernando (Suburban area near Los Angeles), California 819 Sherbrooke (South Central and Northwest) Quebec, CANADA 901 Memphis, (Western) Tennesee 902 All parts of Prince Edward Island and Nova Scotia, CANADA 903 * Unassigned * 904 Jacksonville, (Northeast) Florida 905 Mexico City, (Northern) MEXICO [equivalent to +52 5 XXX XXXX] 906 Sault Ste. Marie, (Northern) Michigan 907 All parts of Alaska 908 * Unassigned * 909 * Unassigned * 911 [ Police/Fire Emergency Service ] 912 Macon and Savannah, (Southern) Georgia 913 Salina and Topeka, (Northern) Kansas 914 White Plains, and Poughkeepsie, (Southern) New York 915 El Paso, (Western) Texas 916 Sacramento, (Northern) California 917 * Unassigned * 918 Muskogee and Tulsa, (Northeast) Oklahoma 919 Greenville, Raleigh, and Winston Salem, (Eastern) North Carolina -- -- inet: dupuy@columbia.edu uucp: ...!rutgers!columbia!dupuy
dupuy@cs.columbia.edu (Alexander Dupuy) (01/21/89)
Date: Wed, 18 Jan 89 17:10:59 EST From: Carl Moore (VLD/VMB) <cmoore@BRL.MIL> You included 708 in Illinois. When does that take effect? "conventional" area code format apparently means N0X/N1X except N00,N10,N11, right? The 708 changes were something I read about in Telecom digest. I think they will take place in spring '89 (correct me if I'm wrong, Patrick). Yes, at least for now, N0X/N1X covers all "conventional" area codes. @alex [Moderator's Note: 708 gets assigned to new subscribers starting later this year. November 9 is the official starting date. The split will be official shortly thereafter. Very little grace period given; unlike NYC's 212/718. PT]