Permalink
Browse files

add abbr/iso for regions; allow two letter codes for regions for cities

  • Loading branch information...
1 parent c1faab9 commit 0039cf9fc4d641d23bab63c3b90ff3da68eab180 @geraldb geraldb committed Mar 16, 2013
View
@@ -1,45 +1,45 @@
# Top 10 cities
-Wien [Vienna], region:wien, 1_731_236, m:1_724_000
-Graz, region:stmk, 265_318
-Linz, region:ooe, 191_107
-Salzburg, region:sbg, 148_521
-Innsbruck, region:tirol, 121_329
-Klagenfurt, region:ktn, 94_796
-Villach, region:ktn, 59_585
-Wels, region:ooe, 58_717
-St. Pölten, region:noe, 52_048
-Dornbirn, region:vbg, 45_978
+Wien [Vienna], WI, 1_731_236, m:1_724_000
+Graz, ST, 265_318
+Linz, OO, 191_107
+Salzburg, SB, 148_521
+Innsbruck, TI, 121_329
+Klagenfurt, KT, 94_796
+Villach, KT, 59_585
+Wels, OO, 58_717
+St. Pölten, NO, 52_048
+Dornbirn, VB, 45_978
# Top 20 cities
-Wr. Neustadt|Wiener Neustadt, region:noe, 41537
-Steyr, region:ooe, 38248
-Feldkirch, region:vbg, 31025
-Bregenz, region:vbg, 28007
-Kosterneuburg, region:noe, 25927
-Leonding, region:ooe, 25689
-Baden|Baden bei Wien, region:noe, 25142
-Wolfsberg, region:ktn, 24983
-Leoben, region:stmk, 24645
-Krems|Krems an der Donau, region:noe, 24110
+Wr. Neustadt|Wiener Neustadt, NO, 41_537
+Steyr, OO, 38_248
+Feldkirch, VB, 31_025
+Bregenz, VB, 28_007
+Kosterneuburg, NO, 25_927
+Leonding, OO, 25_689
+Baden|Baden bei Wien, NO, 25_142
+Wolfsberg, KT, 24_983
+Leoben, ST, 24_645
+Krems|Krems an der Donau, NO, 24_110
# more cities
-Mödling, region:noe, 20649
-Horn, region:noe, 6411, # < 10000 pop
+Mödling, NO, 20_649
+Horn, NO, 6_411, # < 10000 pop
-Traun, region:ooe, 23941
-Ried|Ried im Innkreis, region:ooe, 11585
+Traun, OO, 23_941
+Ried|Ried im Innkreis, OO, 11_585
-Eisenstadt, region:bgld, 12367
-Mattersburg, region:bgld, 6256, # < 10000 pop
+Eisenstadt, BL, 12_367
+Mattersburg, BL, 6_256, # < 10000 pop
-Kapfenberg, region:stmk, 21928
-Hartberg, region:stmk, 6547, # < 10000 pop
+Kapfenberg, ST, 21_928
+Hartberg, ST, 6_547, # < 10000 pop
-Grödig, region:sbg, 6638, # < 10000 pop
+Grödig, SB, 6_638, # < 10000 pop
-Lustenau, region:vbg, 20606
-Altach, region:vbg, 5704, # < 10000 pop
+Lustenau, VB, 20_606
+Altach, VB, 5_704, # < 10000 pop
View
@@ -0,0 +1,15 @@
+#########
+# 9 Bundesländer
+
+########
+# todo: allow single letter for key
+
+bl: Bgld.
+no:
+wi: Wien
+st: Stmk.
+kt: Ktn.
+oo:
+sb: Sbg.
+ti: Tirol
+vb: Vbg.
View
@@ -0,0 +1,16 @@
+
+#########
+# 9 Bundesländer
+
+########
+# todo: allow single letter for key
+
+bl: 1
+kt: 2
+no: 3
+oo: 4
+sb: 5
+st: 6
+ti: 7
+vb: 8
+wi: 9
View
@@ -1,14 +1,32 @@
#########
# 9 Bundesländer
-bgld, Bgld.|Burgenland, 3_962, eastern austria
-noe, NÖ|Niederösterreich [Lower Austria], 19_186, eastern austria
-wien, Wien [Vienna], 415, eastern austria
+########
+# todo: allow single letter for key??? why - why not?
-stmk, Stmk.|Steiermark [Styria], 16_401, southern austria
-ktn, Ktn.|Kärnten [Carinthia], 9_538, southern austria
-ooe, OÖ|Oberösterreich [Upper Austria], 11_980, western austria
-sbg, Sbg.|Salzburg, 7_156, western austria
-tirol, Tirol [Tyrol], 12_640, western austria
-vbg, Vbg.|Vorarlberg, 2_601, western austria
+bl, Burgenland, 3_962 km², eastern austria
+no, Niederösterreich [Lower Austria], 19_186 km², eastern austria
+wi, Wien [Vienna], 415 km², eastern austria
+
+st, Steiermark [Styria], 16_401 km², southern austria
+kt, Kärnten [Carinthia], 9_538 km², southern austria
+
+oo, Oberösterreich [Upper Austria], 11_980 km², western austria
+sb, Salzburg, 7_156 km², western austria
+ti, Tirol [Tyrol], 12_640 km², western austria
+vb, Vorarlberg, 2_601 km², western austria
+
+
+####
+# old keys used:
+#
+# bgld
+# noe
+# wien
+# stmk
+# ktn
+# ooe
+# sbg
+# tirol
+# vbg
@@ -4,45 +4,45 @@
# top 10 cities
-Toronto, region:on, 5_583_064
-Montreal, region:qc, 3_824_221
-Vancouver, region:bc, 2_313_328
-Ottawa, region:on, 1_236_324
-Calgary, region:ab, 1_214_839
-Edmonton, region:ab, 1_159_869
-Québec, region:qc, 765_706
-Winnipeg, region:mb, 730_018
-Hamilton, region:on, 721_053
-Kitchener, region:on, 477_160
-London, region:on, 474_786
+Toronto, ON, 5_583_064
+Montreal, QC, 3_824_221
+Vancouver, BC, 2_313_328
+Ottawa, ON, 1_236_324
+Calgary, AB, 1_214_839
+Edmonton, AB, 1_159_869
+Québec, QC, 765_706
+Winnipeg, MB, 730_018
+Hamilton, ON, 721_053
+Kitchener, ON, 477_160
+London, ON, 474_786
# more cities
-St Catharines-Niagara, region:on, 372_000
-Halifax, region:ns, 333_000
-Victoria, region:bc, 304_000
-Windsor, region:on, 279_000
-Oshawa, region:on, 269_000
-Saskatoon, region:sk, 219_000
-Regina, region:sk, 194_000
-St John's, region:nl, 174_000
-Sudbury, region:on, 160_000
-Chicoutimi, region:qc, 160_000
-Sherbrooke, region:qc, 147_000
-Kingston, region:on, 143_000
-Trois-Rivières, region:qc, 140_000
-Kelowna, region:bc, 137_000
-Abbotsford, region:bc, 136_000
-Saint John, region:nb, 126_000
-Thunder Bay, region:on, 126_000
-Barrie, region:on, 119_000
-Sydney, region:ns, 118_000
+St Catharines-Niagara, ON, 372_000
+Halifax, NS, 333_000
+Victoria, BC, 304_000
+Windsor, ON, 279_000
+Oshawa, ON, 269_000
+Saskatoon, SK, 219_000
+Regina, SK, 194_000
+St John's, NL, 174_000
+Sudbury, ON, 160_000
+Chicoutimi, QC, 160_000
+Sherbrooke, QC, 147_000
+Kingston, ON, 143_000
+Trois-Rivières, QC, 140_000
+Kelowna, BC, 137_000
+Abbotsford, BC, 136_000
+Saint John, NB, 126_000
+Thunder Bay, ON, 126_000
+Barrie, ON, 119_000
+Sydney, NS, 118_000
# add more captials
-Frederiction, region:nb
-Yellowknife, region:nt
-Iqaluit, region:nu
-Charlottetown, region:pe
-Whitehorse, region:yt
+Frederiction, NB
+Yellowknife, NT
+Iqaluit, NU
+Charlottetown, PE
+Whitehorse, YT
@@ -9,20 +9,20 @@
# en.wikipedia.org/wiki/List_of_regions_of_Canada
-bc, British Columbia, Victoria, 922_509, en|western canada
+bc, British Columbia, Victoria, 922_509 km², en|western canada
-ab, Alberta, Edmonton, 640_082, en|western canada|prairies
-mb, Manitoba, Winnipeg, 552_330, en|western canada|prairies
-sk, Saskatchewan, Regina, 588_239, en|western canada|prairies
+ab, Alberta, Edmonton, 640_082 km², en|western canada|prairies
+mb, Manitoba, Winnipeg, 552_330 km², en|western canada|prairies
+sk, Saskatchewan, Regina, 588_239 km², en|western canada|prairies
-nb, New Brunswick, Fredericton, 71_377, en|fr|eastern canada|atlantic canada|maritimes
-ns, Nova Scotia, Halifax, 52_939, en|eastern canada|atlantic canada|maritimes
-pe, Prince Edward Island, Charlottetown, 5_686, en|eastern canada|atlantic canada|maritimes
-nl, Newfoundland and Labrador, St. John's, 370_511, en|eastern canada|atlantic canada
+nb, New Brunswick, Fredericton, 71_377 km², en|fr|eastern canada|atlantic canada|maritimes
+ns, Nova Scotia, Halifax, 52_939 km², en|eastern canada|atlantic canada|maritimes
+pe, Prince Edward Island, Charlottetown, 5_686 km², en|eastern canada|atlantic canada|maritimes
+nl, Newfoundland and Labrador, St. John's, 370_511 km², en|eastern canada|atlantic canada
-on, Ontario, Toronto, 908_608, en|eastern canada|central canada
-qc, Québec, Quebec City, 1_356_547, fr|en|eastern canada|central canada
+on, Ontario, Toronto, 908_608 km², en|eastern canada|central canada
+qc, Québec, Quebec City, 1_356_547 km², fr|en|eastern canada|central canada
-nt, Northwest Territories, Yellowknife, 1_143_793, en|fr|northern canada|territories
-yt, Yukon, Whitehorse, 474_713, en|northern canada|territories
-nu, Nunavut, Iqaluit, 1_877_788, iu|en|fr|northern canada|territories
+nt, Northwest Territories, Yellowknife, 1_143_793 km², en|fr|northern canada|territories
+yt, Yukon, Whitehorse, 474_713 km², en|northern canada|territories
+nu, Nunavut, Iqaluit, 1_877_788 km², iu|en|fr|northern canada|territories
@@ -3,31 +3,31 @@
#####
# see en.wikipedia.org/wiki/Metropolitan_areas_of_Mexico
-México, region:df, m:20137152
-Guadalajara, region:ja, m:4434252
-Monterrey, region:nl, m:4080329
-Puebla, region:pb, m:2668347
-Toluca|Toluca de Lerdo, region:me, m:1846602
-Tijuana, region:bc, m:1751302
-León, region:gt, m:1609717
-Juárez|Ciudad Juárez, region:ch, m:1495094
-Torreón, region:co, m:1275993
-Querétaro, region:qe, m:1097028
-San Luis Potosì, region:sl, m:1040822
+México, DF, m:20137152
+Guadalajara, JA, m:4434252
+Monterrey, NL, m:4080329
+Puebla, PB, m:2668347
+Toluca|Toluca de Lerdo, ME, m:1846602
+Tijuana, BC, m:1751302
+León, GT, m:1609717
+Juárez|Ciudad Juárez, CH, m:1495094
+Torreón, CO, m:1275993
+Querétaro, QE, m:1097028
+San Luis Potosì, SL, m:1040822
# more cities
-Mérida, region:yu, m:973046
+Mérida, YU, m:973046
-Chihuahua, region:ch, m:809232
+Chihuahua, CH, m:809232
-Morelia, region:mi, m:729757
+Morelia, MI, m:729757
-Cancún, region:qr, m:628306
+Cancún, QR, m:628306
-Tuxtla|Tuxtla Gutiérrez, region:cs, m:503320
+Tuxtla|Tuxtla Gutiérrez, CS, m:503320
-Pachuca, region:hg, 275578
-San Nicolás de los Garza, region:nl, 476761
+Pachuca, HG, 275578
+San Nicolás de los Garza, NL, 476761
@@ -0,0 +1,33 @@
+
+ag: Ags.
+bc: B.C.
+bs: B.C.S.
+cm: Camp.
+cs: Chis.
+ch: Chih.
+co: Coah.
+cl: Col.
+df: D.F.
+dg: Dgo.
+gt: Gto.
+gr: Gro.
+hg: Hgo.
+ja: Jal.
+me: Edomex.
+mi: Mich.
+mo: Mor.
+na: Nay.
+nl: N.L.
+oa: Oax.
+pb: Pue.
+qe: Qro.
+qr: Q. Roo.
+sl: S.L.P.
+si: Sin.
+so: Son.
+tb: Tab.
+tm: Tamps.
+tl: Tlax.
+ve: Ver.
+yu: Yuc.
+za: Zac.
Oops, something went wrong.

0 comments on commit 0039cf9

Please sign in to comment.