Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 0e5918e

Browse files
authored
Merge pull request #337 from nprapps/miles/bugfix/336-ne-county-title-case
Fix New England county mapping to use proper casing; closes #336
2 parents 335936a + d3120f6 commit 0e5918e

File tree

1 file changed

+67
-67
lines changed

1 file changed

+67
-67
lines changed

elex/api/maps.py

+67-67
Original file line numberDiff line numberDiff line change
@@ -4,83 +4,83 @@
44
"""
55
FIPS_TO_STATE = {
66
'CT': {
7-
'09001': 'FAIRFIELD',
8-
'09003': 'HARTFORD',
9-
'09005': 'LITCHFIELD',
10-
'09007': 'MIDDLESEX',
11-
'09009': 'NEW HAVEN',
12-
'09011': 'NEW LONDON',
13-
'09013': 'TOLLAND',
14-
'09015': 'WINDHAM'
7+
'09001': 'Fairfield',
8+
'09003': 'Hartford',
9+
'09005': 'Litchfield',
10+
'09007': 'Middlesex',
11+
'09009': 'New Haven',
12+
'09011': 'New London',
13+
'09013': 'Tolland',
14+
'09015': 'Windham'
1515
},
1616
'ME': {
17-
'23001': 'ANDROSCOGGIN',
18-
'23003': 'AROOSTOOK',
19-
'23005': 'CUMBERLAND',
20-
'23007': 'FRANKLIN',
21-
'23009': 'HANCOCK',
22-
'23011': 'KENNEBEC',
23-
'23013': 'KNOX',
24-
'23015': 'LINCOLN',
25-
'23017': 'OXFORD',
26-
'23019': 'PENOBSCOT',
27-
'23021': 'PISCATAQUIS',
28-
'23023': 'SAGADAHOC',
29-
'23025': 'SOMERSET',
30-
'23027': 'WALDO',
31-
'23029': 'WASHINGTON',
32-
'23031': 'YORK'
17+
'23001': 'Androscoggin',
18+
'23003': 'Aroostook',
19+
'23005': 'Cumberland',
20+
'23007': 'Franklin',
21+
'23009': 'Hancock',
22+
'23011': 'Kennebec',
23+
'23013': 'Knox',
24+
'23015': 'Lincoln',
25+
'23017': 'Oxford',
26+
'23019': 'Penobscot',
27+
'23021': 'Piscataquis',
28+
'23023': 'Sagadahoc',
29+
'23025': 'Somerset',
30+
'23027': 'Waldo',
31+
'23029': 'Washington',
32+
'23031': 'York'
3333
},
3434
'MA': {
35-
'25001': 'BARNSTABLE',
36-
'25003': 'BERKSHIRE',
37-
'25005': 'BRISTOL',
38-
'25007': 'DUKES',
39-
'25009': 'ESSEX',
40-
'25011': 'FRANKLIN',
41-
'25013': 'HAMPDEN',
42-
'25015': 'HAMPSHIRE',
43-
'25017': 'MIDDLESEX',
44-
'25019': 'NANTUCKET',
45-
'25021': 'NORFOLK',
46-
'25023': 'PLYMOUTH',
47-
'25025': 'SUFFOLK',
48-
'25027': 'WORCESTER'
35+
'25001': 'Barnstable',
36+
'25003': 'Berkshire',
37+
'25005': 'Bristol',
38+
'25007': 'Dukes',
39+
'25009': 'Essex',
40+
'25011': 'Franklin',
41+
'25013': 'Hampden',
42+
'25015': 'Hampshire',
43+
'25017': 'Middlesex',
44+
'25019': 'Nantucket',
45+
'25021': 'Norfolk',
46+
'25023': 'Plymouth',
47+
'25025': 'Suffolk',
48+
'25027': 'Worcester'
4949
},
5050
'NH': {
51-
'33001': 'BELKNAP',
52-
'33003': 'CARROLL',
53-
'33005': 'CHESHIRE',
54-
'33007': 'COOS',
55-
'33009': 'GRAFTON',
56-
'33011': 'HILLSBOROUGH',
57-
'33013': 'MERRIMACK',
58-
'33015': 'ROCKINGHAM',
59-
'33017': 'STRAFFORD',
60-
'33019': 'SULLIVAN'
51+
'33001': 'Belknap',
52+
'33003': 'Carroll',
53+
'33005': 'Cheshire',
54+
'33007': 'Coos',
55+
'33009': 'Grafton',
56+
'33011': 'Hillsborough',
57+
'33013': 'Merrimack',
58+
'33015': 'Rockingham',
59+
'33017': 'Strafford',
60+
'33019': 'Sullivan'
6161
},
6262
'RI': {
63-
'44001': 'BRISTOL',
64-
'44003': 'KENT',
65-
'44005': 'NEWPORT',
66-
'44007': 'PROVIDENCE',
67-
'44009': 'WASHINGTON'
63+
'44001': 'Bristol',
64+
'44003': 'Kent',
65+
'44005': 'Newport',
66+
'44007': 'Providence',
67+
'44009': 'Washington'
6868
},
6969
'VT': {
70-
'50001': 'ADDISON',
71-
'50003': 'BENNINGTON',
72-
'50005': 'CALEDONIA',
73-
'50007': 'CHITTENDEN',
74-
'50009': 'ESSEX',
75-
'50011': 'FRANKLIN',
76-
'50013': 'GRAND ISLE',
77-
'50015': 'LAMOILLE',
78-
'50017': 'ORANGE',
79-
'50019': 'ORLEANS',
80-
'50021': 'RUTLAND',
81-
'50023': 'WASHINGTON',
82-
'50025': 'WINDHAM',
83-
'50027': 'WINDSOR'
70+
'50001': 'Addison',
71+
'50003': 'Bennington',
72+
'50005': 'Caledonia',
73+
'50007': 'Chittenden',
74+
'50009': 'Essex',
75+
'50011': 'Franklin',
76+
'50013': 'Grand Isle',
77+
'50015': 'Lamoille',
78+
'50017': 'Orange',
79+
'50019': 'Orleans',
80+
'50021': 'Rutland',
81+
'50023': 'Washington',
82+
'50025': 'Windham',
83+
'50027': 'Windsor'
8484
}
8585

8686
}

0 commit comments

Comments
 (0)