Commits

Anonymous committed 0cdba1b

some places in canada

  • Participants
  • Parent commits 5621849

Comments (0)

Files changed (1)

 #   Postal codes alphabetized by postal abbreviation (not by state)
 #   Abbreviation     State
 # tx http://en.wikipedia.org/wiki/U.S._postal_abbreviations
+#    http://en.wikipedia.org/wiki/Canadian_province_postal_abbreviations
 _States="""   AK           Alaska
    AL           Alabama
    AR           Arkansas
    WV           West Virginia
    WY           Wyoming"""
 
-States = dict([ln.strip().split(None, 1) for ln in _States.split("\n")])
+_Provinces="""    AB Alberta
+    BC British Columbia
+    MB Manitoba
+    NB New Brunswick
+    NL Newfoundland and Labrador
+    NS Nova Scotia
+    NT Northwest Territories
+    NU Nunavut
+    ON Ontario
+    PE Prince Edward Island
+    QC Quebec
+    SK Saskatchewan
+    YT Yukon"""
 
-Cities = (
+Regions = dict([ln.strip().split(None, 1) for ln in
+                (_States + _Provinces).split("\n")])
+
+Localities = (
     ('IL', ['CHICAGO']),
     ('KS', ['STANLEY', 'OVERLAND PARK', 'SHAWNEE MISSION', 'MERRIAM', 'CASSODY']),
     ('MA', ['CAMBRIDGE']),
     ('MN', ['ALBERT LEA', 'STILLWATER', 'OAKDALE']),
-    ('MO', ['KANSAS CITY']),
+    ('MO', ['KANSAS CITY', 'COLUMBIA', 'FENTON']),
     ('TX', ['AUSTIN']),
+    ('QC', ['MONTREAL', 'ST BERNARD LA']),
+    ('NY', ['PATTERSONVILL']),
+    ('ON', ['NIAGARA FALLS']),
+    ('OH', ['GENEVA']),
+    ('NY', ['BUFFALO']),
     )