-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcountry_ca.rb
46 lines (42 loc) · 1.36 KB
/
country_ca.rb
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
# encoding: utf-8
CA_STATES_MAPPING = {
'British Columbia' => 'bc',
'Alberta' => 'ab',
'Saskatchewan' => 'sk',
'Manitoba' => 'mb',
'Ontario' => 'on',
'Quebec' => 'qc',
'New Brunswick' => 'nb',
'Nova Scotia' => 'ns',
'BC' => 'bc',
'AB' => 'ab',
'SK' => 'sk',
'MB' => 'mb',
'ON' => 'on',
'QC' => 'qc',
'NB' => 'nb',
'NS' => 'ns',
'PE' => 'pe',
'PEI' => 'pe',
'NL' => 'nl',
'YT' => 'yt',
'NT' => 'nt',
'NU' => 'nu',
}
## map canadian states/provinces to file name
CA_STATES = {
'bc' => '1--bc-british-columbia--pacific',
'ab' => '2--ab-alberta--prairies',
'mb' => '2--mb-manitoba--prairies',
'sk' => '2--sk-saskatchewan--prairies',
'on' => '3--on-ontario--central',
'qc' => '4--qc-quebec--central',
'nb' => '5--nb-new-brunswick--atlantic',
'ns' => '5--ns-nova-scotia--atlantic',
'pe' => '5--pe-prince-edward-island--atlantic',
'nl' => '5--nl-newfoundland-n-labrador--atlantic',
'yt' => '6--yt-yukon--northern',
'nt' => '6--nt-northwest-territories--northern',
'nu' => '6--nu-nunavut--northern',
'?' => '99--??--uncategorized',
}