View file File name : city_to_region.py Content :CITY_TO_REGION_ID = { "chicago": "region_chicago", "new york": "region_nyc", "los angeles": "region_los_angeles", "san francisco": "region_san_francisco", "raleigh": "region_raleigh", "san diego": "region_san_diego", # === Edison Region Cities === **{city: "region_edison" for city in [ "avenel", "carteret", "cranford", "fanwood", "garwood", "kenilworth", "linden", "maplewood", "millburn", "plainfield", "port reading", "rahway", "clark", "colonia", "scotch plains", "sewaren", "south river", "springfield", "union", "westfield", "new brunswick", "woodbridge", "newark", "irvington", "elizabeth", "roselle", "roselle park", "hillside", "elizabethport", "east brunswick", "edison", "iselin", "keasbey", "metuchen", "milltown", "piscataway", "parlin", "perth amboy", "fords", "sayreville", "south amboy", "south plainfield", "spotswood", "north brunswick", "highland park" ]}, # === Boston Region Cities === **{city: "region_boston" for city in [ "abington", "accord", "allston", "avon", "boston", "braintree", "brighton", "brockton", "brookline", "brookline village", "cambridge", "canton", "charlestown", "chestnut hill", "cohasset", "dedham", "dorchester", "dorchester center", "east boston", "east bridgewater", "east walpole", "east weymouth", "hanover", "hanson", "hingham", "holbrook", "hull", "hyde park", "jamaica plain", "mattapan", "milton", "milton village", "minot", "new town", "newton center", "newton highlands", "north easton", "north marshfield", "north scituate", "north waltham", "north weymouth", "norwell", "norwood", "quincy", "randolph", "readville", "rockland", "roslindale", "roxbury", "roxbury crossing", "scituate", "sharon", "south boston", "south weymouth", "stoughton", "west bridgewater", "west roxbury", "westwood", "weymouth", "whitman", "winthrop" ]}, # === Bothell Region Cities === **{city: "region_bothell" for city in [ "bothell", "lynnwood", "everett", "snohomish", "edmonds", "mountlake terrace", "mill creek", "mukilteo", "woodinville", "seattle", "kirkland", "redmond", "monroe", "bellevue" ]}, # === Hatfield Region Cities === **{city: "region_hatfield" for city in [ "hatfield", "souderton", "line lexington", "colmar", "hilltown", "kulpsville", "mainland", "lansdale", "silverdale", "chalfont", "telford", "harleysville", "earlington", "sellersville", "north wales", "west point", "montgomeryville", "lederach", "blooming glen", "cedars", "gwynedd", "worcester", "tylersport", "salfordville", "skippack", "gwynedd valley", "spring house", "dublin", "creamery", "fountainville", "doylestown", "ambler", "woxall", "perkasie", "warrington", "salford", "spring mount", "sumneytown", "blue bell", "green lane", "collegeville", "danboro", "trumbauersville", "schwenksville", "norristown", "horsham", "plumsteadville", "zieglerville", "fort washington", "bedminster", "audubon", "eagleville", "fairview village", "warminster", "red hill", "perkiomenville", "jamison", "plymouth meeting", "milford square", "quakertown", "pennsburg", "hatboro", "dresher", "forest grove", "buckingham", "furlong", "flourtown", "spinnerstown", "bridgeport" ]}, # === Leander Region Cities === **{city: "region_leander" for city in [ "leander", "cedar park", "austin", "round rock", "georgetown", "mc neil", "liberty hill" ]}, # === Metairie Region Cities === **{city: "region_metairie" for city in [ "metairie", "new orleans", "kenner", "westwego", "marrero", "saint rose", "harvey", "gretna", "ama", "arabi", "destrehan", "new sarpy", "luling", "chalmette" ]}, # === Nassau Region Cities === **{city: "region_nassau" for city in [ "hicksville", "jericho", "bethpage", "plainview", "levittown", "westbury", "east meadow", "old bethpage", "old westbury", "syosset", "woodbury", "farmingdale", "carle place", "hempstead", "garden city", "uniondale", "east norwich", "glen head", "roslyn heights", "wantagh", "mineola", "williston park", "greenvale", "bellmore", "seaford", "albertson", "massapequa", "roosevelt", "roslyn", "merrick", "massapequa park", "oyster bay", "glenwood landing", "west hempstead", "sea cliff", "new hyde park", "mill neck", "freeport", "locust valley", "manhasset", "baldwin", "rockville centre", "franklin square", "glen cove", "malverne", "bayville", "floral park", "inwood", "valley stream", "east rockaway", "atlantic beach", "woodmere", "long beach", "cedarhurst", "lawrence" ]}, # === Suffolk Region Cities === **{city: "region_suffolk" for city in [ "melville", "amityville", "wyandanch", "copiague", "west babylon", "huntington station", "cold spring harbor", "deer park", "north babylon", "greenlawn", "west islip", "centerport", "east northport", "commack", "brightwaters", "brentwood", "northport", "islip", "kings park", "hauppauge" ]}, # === Queens Region Cities === **{city: "region_queens" for city in [ "floral park", "glen oaks", "bellerose", "little neck", "queens village", "cambria heights", "oakland gardens", "bayside", "hollis", "saint albans", "rosedale", "springfield gardens", "flushing", "fresh meadows", "jamaica", "ridgewood", "college point", "kew gardens", "south richmond hill", "south ozone park", "elmhurst", "far rockaway" ]}, # === Bronx Region Cities === **{city: "region_bronx" for city in [ "bronx", "vauxhall" ]}, # === Westchester Region Cities === **{city: "region_westchester" for city in [ "new rochelle", "larchmont", "mamaroneck" ]}, # === Manhattan Region Cities === "manhattan": "region_manhattan", # === Upper Manhattan Region Cities === "upper manhattan": "region_upper_manhattan", # === Brooklyn Region Cities === "brooklyn": "region_brooklyn", # === Newark, NJ Region Cities === "newark": "region_newark_nj", # === Newark, DE Region Cities === **{city: "region_newark_de" for city in [ "newark", "delaware city", "bear", "kirkwood", "port penn" ]}, # === Wilmington Region Cities === **{city: "region_wilmington" for city in [ "wilmington", "montchanin", "rockland", "yorklyn", "hockessin", "winterthur", "middletown", "odessa", "claymont" ]}, # === Philadelphia Region Cities === **{city: "region_philadelphia" for city in [ "philadelphia", "upper darby", "lansdowne", "drexel hill", "havertown", "wynnewood", "clifton heights", "darby", "merion station", "ardmore", "glenolden", "haverford", "sharon hill", "springfield", "holmes", "narberth", "bala cynwyd", "morton", "folcroft", "broomall", "norwood", "prospect park", "folsom", "bryn mawr", "swarthmore", "gladwyne", "essington", "ridley park", "villanova", "media", "glen riddle lima", "woodlyn", "wallingford", "crum lynne", "conshohocken", "lafayette hill", "newtown square", "brookhaven", "edgemont", "wayne", "devon" ]}, # === La Mesa Region Cities === "la mesa": "region_la_mesa", # === Lemon Grove Region Cities === "lemon grove": "region_lemon_grove", # === Spring Valley Region Cities === "spring valley": "region_spring_valley", # === El Cajon Region Cities === "el cajon": "region_el_cajon", # === Santee Region Cities === "santee": "region_santee", # === Bonita Region Cities === "bonita": "region_bonita", # === National City Region Cities === "national city": "region_national_city", # === Chula Vista Region Cities === "chula vista": "region_chula_vista", # === San Ysidro Region Cities === "san ysidro": "region_san_ysidro", # === Alameda Region Cities === "alameda": "region_alameda", # === Oakland Region Cities === **{city: "region_oakland" for city in [ "oakland", "piedmont", "canyon" ]}, # === Emeryville Region Cities === "emeryville": "region_emeryville", # === Berkeley Region Cities === "berkeley": "region_berkeley", # === San Leandro Region Cities === "san leandro": "region_san_leandro", # === Orinda Region Cities === "orinda": "region_orinda", # === Albany Region Cities === "albany": "region_albany", # === Castro Valley Region Cities === "castro valley": "region_castro_valley", # === Moraga Region Cities === "moraga": "region_moraga", # === Brisbane Region Cities === "brisbane": "region_brisbane", # === Phoenix Region Cities === "phoenix": "region_phoenix", # === Scottsdale Region Cities === "scottsdale": "region_scottsdale", # === Paradise Valley Region Cities === "paradise valley": "region_paradise_valley", # === Tempe Region Cities === "tempe": "region_tempe", # === Glendale Region Cities === "glendale": "region_glendale", # === Peoria Region Cities === "peoria": "region_peoria", # === Vallejo Region Cities === "vallejo": "region_vallejo", # === American Canyon Region Cities === "american canyon": "region_american_canyon", # === Crockett Region Cities === **{city: "region_crockett" for city in [ "crockett", "port costa" ]}, # === Rodeo Region Cities === "rodeo": "region_rodeo", # === Benicia Region Cities === "benicia": "region_benicia", # === Napa Region Cities === "napa": "region_napa", # === Hercules Region Cities === "hercules": "region_hercules", # === Fairfield Region Cities === "fairfield": "region_fairfield", # === Pinole Region Cities === "pinole": "region_pinole", # === El Sobrante Region Cities === "el sobrante": "region_el_sobrante", # === San Pablo Region Cities === "san pablo": "region_san_pablo", # === Martinez Region Cities === "martinez": "region_martinez", # === Sonoma Region Cities === "sonoma": "region_sonoma", # === Vineburg Region Cities === "vineburg": "region_vineburg", # === Richmond Region Cities === "richmond": "region_richmond" }