@mailwoman/tiger 5.9.0 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/block-group.ts +4 -4
- package/class-code.ts +168 -166
- package/constants.ts +35 -28
- package/county-subdivision.ts +4 -4
- package/county.ts +4 -4
- package/files.ts +41 -32
- package/functional-status.ts +16 -14
- package/geoid.ts +13 -11
- package/index.ts +12 -12
- package/legal-statistical-area.ts +140 -137
- package/out/block-group.d.ts +4 -4
- package/out/class-code.d.ts +167 -166
- package/out/class-code.d.ts.map +1 -1
- package/out/class-code.js +166 -167
- package/out/class-code.js.map +1 -1
- package/out/constants.d.ts +31 -28
- package/out/constants.d.ts.map +1 -1
- package/out/constants.js +23 -26
- package/out/constants.js.map +1 -1
- package/out/county-subdivision.d.ts +4 -4
- package/out/county.d.ts +4 -4
- package/out/files.d.ts +35 -33
- package/out/files.d.ts.map +1 -1
- package/out/files.js +19 -21
- package/out/files.js.map +1 -1
- package/out/functional-status.d.ts +15 -14
- package/out/functional-status.d.ts.map +1 -1
- package/out/functional-status.js +14 -15
- package/out/functional-status.js.map +1 -1
- package/out/geoid.d.ts +20 -19
- package/out/geoid.d.ts.map +1 -1
- package/out/geoid.js +10 -11
- package/out/geoid.js.map +1 -1
- package/out/index.d.ts +12 -12
- package/out/legal-statistical-area.d.ts +138 -137
- package/out/legal-statistical-area.d.ts.map +1 -1
- package/out/legal-statistical-area.js +137 -138
- package/out/legal-statistical-area.js.map +1 -1
- package/out/sdk/index.d.ts +4 -4
- package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts +1 -2
- package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts.map +1 -1
- package/out/sdk/state/index.d.ts +3 -3
- package/out/state.d.ts +302 -297
- package/out/state.d.ts.map +1 -1
- package/out/state.js +181 -186
- package/out/state.js.map +1 -1
- package/out/tabulation-block.d.ts +3 -3
- package/out/tabulation-block.d.ts.map +1 -1
- package/out/tools/index.d.ts +15 -0
- package/out/tools/index.d.ts.map +1 -0
- package/out/tools/index.js +15 -0
- package/out/tools/index.js.map +1 -0
- package/out/tools/race-dots-map.d.ts +29 -5
- package/out/tools/race-dots-map.d.ts.map +1 -1
- package/out/tools/race-dots-map.js +53 -64
- package/out/tools/race-dots-map.js.map +1 -1
- package/out/tools/race-dots.d.ts +27 -7
- package/out/tools/race-dots.d.ts.map +1 -1
- package/out/tools/race-dots.js +85 -89
- package/out/tools/race-dots.js.map +1 -1
- package/out/tools/serve-range.d.ts +23 -4
- package/out/tools/serve-range.d.ts.map +1 -1
- package/out/tools/serve-range.js +47 -36
- package/out/tools/serve-range.js.map +1 -1
- package/out/tract.d.ts +3 -3
- package/out/tract.d.ts.map +1 -1
- package/out/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -6
- package/sdk/fetch.ts +2 -2
- package/sdk/index.ts +4 -4
- package/sdk/redistricting.ts +2 -2
- package/sdk/state/index.ts +3 -3
- package/state.ts +193 -183
- package/tabulation-block.ts +20 -20
- package/tools/index.ts +15 -0
- package/tools/race-dots-map.ts +79 -70
- package/tools/race-dots.ts +127 -104
- package/tools/serve-range.ts +69 -38
- package/tract.ts +12 -12
- package/tsconfig.json +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/tiger",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.1",
|
|
4
4
|
"description": "US Census TIGER/Line data processing and analysis.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"census",
|
|
@@ -27,19 +27,44 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
"./package.json": "./package.json",
|
|
29
29
|
"./schema/*.json": "./dist/schema/*.json",
|
|
30
|
-
"./
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
"./sdk": {
|
|
31
|
+
"types": "./out/sdk/index.d.ts",
|
|
32
|
+
"default": "./out/sdk/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./tools": {
|
|
35
|
+
"types": "./out/tools/index.d.ts",
|
|
36
|
+
"default": "./out/tools/index.js"
|
|
37
|
+
},
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./out/index.d.ts",
|
|
40
|
+
"default": "./out/index.js"
|
|
41
|
+
}
|
|
33
42
|
},
|
|
34
43
|
"publishConfig": {
|
|
44
|
+
"exports": {
|
|
45
|
+
"./package.json": "./package.json",
|
|
46
|
+
"./schema/*.json": "./dist/schema/*.json",
|
|
47
|
+
"./sdk": {
|
|
48
|
+
"types": "./out/sdk/index.d.ts",
|
|
49
|
+
"default": "./out/sdk/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./tools": {
|
|
52
|
+
"types": "./out/tools/index.d.ts",
|
|
53
|
+
"default": "./out/tools/index.js"
|
|
54
|
+
},
|
|
55
|
+
".": {
|
|
56
|
+
"types": "./out/index.d.ts",
|
|
57
|
+
"default": "./out/index.js"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
35
60
|
"access": "public"
|
|
36
61
|
},
|
|
37
62
|
"scripts": {
|
|
38
63
|
"test": "node ./out/sdk/TIGERService.test.js"
|
|
39
64
|
},
|
|
40
65
|
"dependencies": {
|
|
41
|
-
"@mailwoman/core": "5.
|
|
42
|
-
"@mailwoman/spatial": "5.
|
|
66
|
+
"@mailwoman/core": "5.10.1",
|
|
67
|
+
"@mailwoman/spatial": "5.10.1",
|
|
43
68
|
"@turf/boolean-contains": "^7.3.5",
|
|
44
69
|
"kysely": "^0.29.2",
|
|
45
70
|
"shapefile-parser": "^1.0.3",
|
package/sdk/fetch.ts
CHANGED
|
@@ -36,8 +36,8 @@ import { DatabaseClient } from "@mailwoman/core/kysley/client"
|
|
|
36
36
|
import { mailwomanDataRoot } from "@mailwoman/core/utils"
|
|
37
37
|
import { TextSpliterator } from "spliterator"
|
|
38
38
|
|
|
39
|
-
import type { TIGERBlockTable, TIGERDatabase, TIGERPlaceTable, TIGERStreetTable } from "./schema.
|
|
40
|
-
import { initializeTIGERSchema, TIGER_PRAGMAS } from "./schema.
|
|
39
|
+
import type { TIGERBlockTable, TIGERDatabase, TIGERPlaceTable, TIGERStreetTable } from "./schema.ts"
|
|
40
|
+
import { initializeTIGERSchema, TIGER_PRAGMAS } from "./schema.ts"
|
|
41
41
|
|
|
42
42
|
const CENSUS_HOST = "https://www2.census.gov"
|
|
43
43
|
const DEFAULT_DATA_ROOT = mailwomanDataRoot()
|
package/sdk/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export * from "./fetch.
|
|
8
|
-
export * from "./redistricting.
|
|
9
|
-
export * from "./schema.
|
|
10
|
-
export * from "./state/index.
|
|
7
|
+
export * from "./fetch.ts"
|
|
8
|
+
export * from "./redistricting.ts"
|
|
9
|
+
export * from "./schema.ts"
|
|
10
|
+
export * from "./state/index.ts"
|
package/sdk/redistricting.ts
CHANGED
|
@@ -28,8 +28,8 @@ import { DatabaseClient } from "@mailwoman/core/kysley/client"
|
|
|
28
28
|
import { mailwomanDataRoot } from "@mailwoman/core/utils"
|
|
29
29
|
import { TextSpliterator } from "spliterator"
|
|
30
30
|
|
|
31
|
-
import { AdminLevel1CodeToAbbreviation, StateName, type AdminLevel1Code } from "../state.
|
|
32
|
-
import { initializeTIGERSchema, TIGER_PRAGMAS, type PLBlockTable, type TIGERDatabase } from "./schema.
|
|
31
|
+
import { AdminLevel1CodeToAbbreviation, StateName, type AdminLevel1Code } from "../state.ts"
|
|
32
|
+
import { initializeTIGERSchema, TIGER_PRAGMAS, type PLBlockTable, type TIGERDatabase } from "./schema.ts"
|
|
33
33
|
|
|
34
34
|
const REDISTRICTING_BASE =
|
|
35
35
|
"https://www2.census.gov/programs-surveys/decennial/2020/data/01-Redistricting_File--PL_94-171"
|
package/sdk/state/index.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export * from "./block-operations.
|
|
8
|
-
export * from "./TIGERTabulatedBlockEntity.
|
|
9
|
-
export * from "./TIGERTractEntity.
|
|
7
|
+
export * from "./block-operations.ts"
|
|
8
|
+
export * from "./TIGERTabulatedBlockEntity.ts"
|
|
9
|
+
export * from "./TIGERTractEntity.ts"
|
package/state.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import type { GeoFeature, MultiPolygonLiteral } from "@mailwoman/spatial"
|
|
8
8
|
|
|
9
|
-
import { GeoIDPart } from "./geoid.
|
|
10
|
-
import type { TIGERTabulatedBlockProperties } from "./tabulation-block.
|
|
9
|
+
import { GeoIDPart } from "./geoid.ts"
|
|
10
|
+
import type { TIGERTabulatedBlockProperties } from "./tabulation-block.ts"
|
|
11
11
|
|
|
12
12
|
//#region FIPS Codes
|
|
13
13
|
|
|
@@ -20,160 +20,162 @@ import type { TIGERTabulatedBlockProperties } from "./tabulation-block.js"
|
|
|
20
20
|
* @see {@linkcode FIPSTerritoryCode} for territories.
|
|
21
21
|
* @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export const FIPSStateCode = {
|
|
24
24
|
/** @title Alabama */
|
|
25
|
-
AL
|
|
25
|
+
AL: "01",
|
|
26
26
|
|
|
27
27
|
/** @title Alaska */
|
|
28
|
-
AK
|
|
28
|
+
AK: "02",
|
|
29
29
|
|
|
30
30
|
/** @title Arizona */
|
|
31
|
-
AZ
|
|
31
|
+
AZ: "04",
|
|
32
32
|
|
|
33
33
|
/** @title Arkansas */
|
|
34
|
-
AR
|
|
34
|
+
AR: "05",
|
|
35
35
|
|
|
36
36
|
/** @title California */
|
|
37
|
-
CA
|
|
37
|
+
CA: "06",
|
|
38
38
|
|
|
39
39
|
/** @title Colorado */
|
|
40
|
-
CO
|
|
40
|
+
CO: "08",
|
|
41
41
|
|
|
42
42
|
/** @title Connecticut */
|
|
43
|
-
CT
|
|
43
|
+
CT: "09",
|
|
44
44
|
|
|
45
45
|
/** @title Delaware */
|
|
46
|
-
DE
|
|
46
|
+
DE: "10",
|
|
47
47
|
|
|
48
48
|
/** @title District Of Columbia */
|
|
49
|
-
DC
|
|
49
|
+
DC: "11",
|
|
50
50
|
|
|
51
51
|
/** @title Florida */
|
|
52
|
-
FL
|
|
52
|
+
FL: "12",
|
|
53
53
|
|
|
54
54
|
/** @title Georgia */
|
|
55
|
-
GA
|
|
55
|
+
GA: "13",
|
|
56
56
|
|
|
57
57
|
/** @title Hawaii */
|
|
58
|
-
HI
|
|
58
|
+
HI: "15",
|
|
59
59
|
|
|
60
60
|
/** @title Idaho */
|
|
61
|
-
ID
|
|
61
|
+
ID: "16",
|
|
62
62
|
|
|
63
63
|
/** @title Illinois */
|
|
64
|
-
IL
|
|
64
|
+
IL: "17",
|
|
65
65
|
|
|
66
66
|
/** @title Indiana */
|
|
67
|
-
IN
|
|
67
|
+
IN: "18",
|
|
68
68
|
|
|
69
69
|
/** @title Iowa */
|
|
70
|
-
IA
|
|
70
|
+
IA: "19",
|
|
71
71
|
|
|
72
72
|
/** @title Kansas */
|
|
73
|
-
KS
|
|
73
|
+
KS: "20",
|
|
74
74
|
|
|
75
75
|
/** @title Kentucky */
|
|
76
|
-
KY
|
|
76
|
+
KY: "21",
|
|
77
77
|
|
|
78
78
|
/** @title Louisiana */
|
|
79
|
-
LA
|
|
79
|
+
LA: "22",
|
|
80
80
|
|
|
81
81
|
/** @title Maine */
|
|
82
|
-
ME
|
|
82
|
+
ME: "23",
|
|
83
83
|
|
|
84
84
|
/** @title Maryland */
|
|
85
|
-
MD
|
|
85
|
+
MD: "24",
|
|
86
86
|
|
|
87
87
|
/** @title Massachusetts */
|
|
88
|
-
MA
|
|
88
|
+
MA: "25",
|
|
89
89
|
|
|
90
90
|
/** @title Michigan */
|
|
91
|
-
MI
|
|
91
|
+
MI: "26",
|
|
92
92
|
|
|
93
93
|
/** @title Minnesota */
|
|
94
|
-
MN
|
|
94
|
+
MN: "27",
|
|
95
95
|
|
|
96
96
|
/** @title Mississippi */
|
|
97
|
-
MS
|
|
97
|
+
MS: "28",
|
|
98
98
|
|
|
99
99
|
/** @title Missouri */
|
|
100
|
-
MO
|
|
100
|
+
MO: "29",
|
|
101
101
|
|
|
102
102
|
/** @title Montana */
|
|
103
|
-
MT
|
|
103
|
+
MT: "30",
|
|
104
104
|
|
|
105
105
|
/** @title Nebraska */
|
|
106
|
-
NE
|
|
106
|
+
NE: "31",
|
|
107
107
|
|
|
108
108
|
/** @title Nevada */
|
|
109
|
-
NV
|
|
109
|
+
NV: "32",
|
|
110
110
|
|
|
111
111
|
/** @title New Hampshire */
|
|
112
|
-
NH
|
|
112
|
+
NH: "33",
|
|
113
113
|
|
|
114
114
|
/** @title New Jersey */
|
|
115
|
-
NJ
|
|
115
|
+
NJ: "34",
|
|
116
116
|
|
|
117
117
|
/** @title New Mexico */
|
|
118
|
-
NM
|
|
118
|
+
NM: "35",
|
|
119
119
|
|
|
120
120
|
/** @title New York */
|
|
121
|
-
NY
|
|
121
|
+
NY: "36",
|
|
122
122
|
|
|
123
123
|
/** @title North Carolina */
|
|
124
|
-
NC
|
|
124
|
+
NC: "37",
|
|
125
125
|
|
|
126
126
|
/** @title North Dakota */
|
|
127
|
-
ND
|
|
127
|
+
ND: "38",
|
|
128
128
|
|
|
129
129
|
/** @title Ohio */
|
|
130
|
-
OH
|
|
130
|
+
OH: "39",
|
|
131
131
|
|
|
132
132
|
/** @title Oklahoma */
|
|
133
|
-
OK
|
|
133
|
+
OK: "40",
|
|
134
134
|
|
|
135
135
|
/** @title Oregon */
|
|
136
|
-
OR
|
|
136
|
+
OR: "41",
|
|
137
137
|
|
|
138
138
|
/** @title Pennsylvania */
|
|
139
|
-
PA
|
|
139
|
+
PA: "42",
|
|
140
140
|
|
|
141
141
|
/** @title Rhode Island */
|
|
142
|
-
RI
|
|
142
|
+
RI: "44",
|
|
143
143
|
|
|
144
144
|
/** @title South Carolina */
|
|
145
|
-
SC
|
|
145
|
+
SC: "45",
|
|
146
146
|
|
|
147
147
|
/** @title South Dakota */
|
|
148
|
-
SD
|
|
148
|
+
SD: "46",
|
|
149
149
|
|
|
150
150
|
/** @title Tennessee */
|
|
151
|
-
TN
|
|
151
|
+
TN: "47",
|
|
152
152
|
|
|
153
153
|
/** @title Texas */
|
|
154
|
-
TX
|
|
154
|
+
TX: "48",
|
|
155
155
|
|
|
156
156
|
/** @title Utah */
|
|
157
|
-
UT
|
|
157
|
+
UT: "49",
|
|
158
158
|
|
|
159
159
|
/** @title Vermont */
|
|
160
|
-
VT
|
|
160
|
+
VT: "50",
|
|
161
161
|
|
|
162
162
|
/** @title Virginia */
|
|
163
|
-
VA
|
|
163
|
+
VA: "51",
|
|
164
164
|
|
|
165
165
|
/** @title Washington */
|
|
166
|
-
WA
|
|
166
|
+
WA: "53",
|
|
167
167
|
|
|
168
168
|
/** @title West Virginia */
|
|
169
|
-
WV
|
|
169
|
+
WV: "54",
|
|
170
170
|
|
|
171
171
|
/** @title Wisconsin */
|
|
172
|
-
WI
|
|
172
|
+
WI: "55",
|
|
173
173
|
|
|
174
174
|
/** @title Wyoming */
|
|
175
|
-
WY
|
|
176
|
-
}
|
|
175
|
+
WY: "56",
|
|
176
|
+
} as const
|
|
177
|
+
|
|
178
|
+
export type FIPSStateCode = (typeof FIPSStateCode)[keyof typeof FIPSStateCode]
|
|
177
179
|
|
|
178
180
|
/**
|
|
179
181
|
* FIPS codes for US Territories.
|
|
@@ -186,27 +188,29 @@ export enum FIPSStateCode {
|
|
|
186
188
|
* @see {@linkcode FIPSStateCode} for states.
|
|
187
189
|
* @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
|
|
188
190
|
*/
|
|
189
|
-
export
|
|
191
|
+
export const FIPSTerritoryCode = {
|
|
190
192
|
/**
|
|
191
193
|
* @title Johnston Atoll
|
|
192
194
|
*/
|
|
193
|
-
JA
|
|
195
|
+
JA: "74",
|
|
194
196
|
|
|
195
197
|
/** @title American Samoa */
|
|
196
|
-
AS
|
|
198
|
+
AS: "60",
|
|
197
199
|
|
|
198
200
|
/** @title Guam */
|
|
199
|
-
GU
|
|
201
|
+
GU: "66",
|
|
200
202
|
|
|
201
203
|
/** @title Northern Mariana Islands */
|
|
202
|
-
MP
|
|
204
|
+
MP: "69",
|
|
203
205
|
|
|
204
206
|
/** @title Puerto Rico */
|
|
205
|
-
PR
|
|
207
|
+
PR: "72",
|
|
206
208
|
|
|
207
209
|
/** @title Virgin Islands */
|
|
208
|
-
VI
|
|
209
|
-
}
|
|
210
|
+
VI: "78",
|
|
211
|
+
} as const
|
|
212
|
+
|
|
213
|
+
export type FIPSTerritoryCode = (typeof FIPSTerritoryCode)[keyof typeof FIPSTerritoryCode]
|
|
210
214
|
|
|
211
215
|
/**
|
|
212
216
|
* A combined set of FIPS codes for US States and Territories.
|
|
@@ -284,68 +288,72 @@ export function isAdminLevel1FIPSCode(code: string | null | undefined): code is
|
|
|
284
288
|
* @maxLength 2
|
|
285
289
|
* @public
|
|
286
290
|
*/
|
|
287
|
-
export
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"District of Columbia"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
"North Carolina"
|
|
316
|
-
"North Dakota"
|
|
317
|
-
|
|
318
|
-
"New Hampshire"
|
|
319
|
-
"New Jersey"
|
|
320
|
-
"New Mexico"
|
|
321
|
-
|
|
322
|
-
"New York"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
"Rhode Island"
|
|
328
|
-
"South Carolina"
|
|
329
|
-
"South Dakota"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"West Virginia"
|
|
338
|
-
|
|
339
|
-
}
|
|
291
|
+
export const StateAbbreviation = {
|
|
292
|
+
Alaska: "AK",
|
|
293
|
+
Alabama: "AL",
|
|
294
|
+
Arkansas: "AR",
|
|
295
|
+
Arizona: "AZ",
|
|
296
|
+
California: "CA",
|
|
297
|
+
Colorado: "CO",
|
|
298
|
+
Connecticut: "CT",
|
|
299
|
+
"District of Columbia": "DC",
|
|
300
|
+
Delaware: "DE",
|
|
301
|
+
Florida: "FL",
|
|
302
|
+
Georgia: "GA",
|
|
303
|
+
Hawaii: "HI",
|
|
304
|
+
Iowa: "IA",
|
|
305
|
+
Idaho: "ID",
|
|
306
|
+
Illinois: "IL",
|
|
307
|
+
Indiana: "IN",
|
|
308
|
+
Kansas: "KS",
|
|
309
|
+
Kentucky: "KY",
|
|
310
|
+
Louisiana: "LA",
|
|
311
|
+
Massachusetts: "MA",
|
|
312
|
+
Maryland: "MD",
|
|
313
|
+
Maine: "ME",
|
|
314
|
+
Michigan: "MI",
|
|
315
|
+
Minnesota: "MN",
|
|
316
|
+
Missouri: "MO",
|
|
317
|
+
Mississippi: "MS",
|
|
318
|
+
Montana: "MT",
|
|
319
|
+
"North Carolina": "NC",
|
|
320
|
+
"North Dakota": "ND",
|
|
321
|
+
Nebraska: "NE",
|
|
322
|
+
"New Hampshire": "NH",
|
|
323
|
+
"New Jersey": "NJ",
|
|
324
|
+
"New Mexico": "NM",
|
|
325
|
+
Nevada: "NV",
|
|
326
|
+
"New York": "NY",
|
|
327
|
+
Ohio: "OH",
|
|
328
|
+
Oklahoma: "OK",
|
|
329
|
+
Oregon: "OR",
|
|
330
|
+
Pennsylvania: "PA",
|
|
331
|
+
"Rhode Island": "RI",
|
|
332
|
+
"South Carolina": "SC",
|
|
333
|
+
"South Dakota": "SD",
|
|
334
|
+
Tennessee: "TN",
|
|
335
|
+
Texas: "TX",
|
|
336
|
+
Utah: "UT",
|
|
337
|
+
Virginia: "VA",
|
|
338
|
+
Vermont: "VT",
|
|
339
|
+
Washington: "WA",
|
|
340
|
+
Wisconsin: "WI",
|
|
341
|
+
"West Virginia": "WV",
|
|
342
|
+
Wyoming: "WY",
|
|
343
|
+
} as const
|
|
340
344
|
|
|
341
|
-
export
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
|
|
347
|
-
"
|
|
348
|
-
|
|
345
|
+
export type StateAbbreviation = (typeof StateAbbreviation)[keyof typeof StateAbbreviation]
|
|
346
|
+
|
|
347
|
+
export const TerritoryAbbreviation = {
|
|
348
|
+
"American Samoa": "AS",
|
|
349
|
+
"Johnston Atoll": "JA",
|
|
350
|
+
Guam: "GU",
|
|
351
|
+
"Virgin Islands": "VI",
|
|
352
|
+
"Northern Mariana Islands": "MP",
|
|
353
|
+
"Puerto Rico": "PR",
|
|
354
|
+
} as const
|
|
355
|
+
|
|
356
|
+
export type TerritoryAbbreviation = (typeof TerritoryAbbreviation)[keyof typeof TerritoryAbbreviation]
|
|
349
357
|
|
|
350
358
|
/**
|
|
351
359
|
* Two-letter abbreviations of a US states and territories.
|
|
@@ -370,65 +378,67 @@ export const AdminLevel1Abbreviation = {
|
|
|
370
378
|
*
|
|
371
379
|
* @public
|
|
372
380
|
*/
|
|
373
|
-
export
|
|
374
|
-
AS
|
|
375
|
-
AK
|
|
376
|
-
AL
|
|
377
|
-
AR
|
|
378
|
-
AZ
|
|
379
|
-
CA
|
|
380
|
-
CO
|
|
381
|
-
CT
|
|
382
|
-
DC
|
|
383
|
-
DE
|
|
384
|
-
FL
|
|
385
|
-
GA
|
|
386
|
-
HI
|
|
387
|
-
IA
|
|
388
|
-
ID
|
|
389
|
-
IL
|
|
390
|
-
IN
|
|
391
|
-
JA
|
|
392
|
-
KS
|
|
393
|
-
KY
|
|
394
|
-
LA
|
|
395
|
-
MA
|
|
396
|
-
MD
|
|
397
|
-
ME
|
|
398
|
-
MI
|
|
399
|
-
MN
|
|
400
|
-
MO
|
|
401
|
-
MS
|
|
402
|
-
MT
|
|
403
|
-
NC
|
|
404
|
-
ND
|
|
405
|
-
NE
|
|
406
|
-
NH
|
|
407
|
-
NJ
|
|
408
|
-
NM
|
|
409
|
-
NV
|
|
410
|
-
NY
|
|
411
|
-
OH
|
|
412
|
-
OK
|
|
413
|
-
OR
|
|
414
|
-
PA
|
|
415
|
-
PR
|
|
416
|
-
RI
|
|
417
|
-
SC
|
|
418
|
-
SD
|
|
419
|
-
TN
|
|
420
|
-
TX
|
|
421
|
-
UT
|
|
422
|
-
VA
|
|
423
|
-
VT
|
|
424
|
-
WA
|
|
425
|
-
WI
|
|
426
|
-
WV
|
|
427
|
-
WY
|
|
428
|
-
VI
|
|
429
|
-
MP
|
|
430
|
-
GU
|
|
431
|
-
}
|
|
381
|
+
export const StateName = {
|
|
382
|
+
AS: "American Samoa",
|
|
383
|
+
AK: "Alaska",
|
|
384
|
+
AL: "Alabama",
|
|
385
|
+
AR: "Arkansas",
|
|
386
|
+
AZ: "Arizona",
|
|
387
|
+
CA: "California",
|
|
388
|
+
CO: "Colorado",
|
|
389
|
+
CT: "Connecticut",
|
|
390
|
+
DC: "District of Columbia",
|
|
391
|
+
DE: "Delaware",
|
|
392
|
+
FL: "Florida",
|
|
393
|
+
GA: "Georgia",
|
|
394
|
+
HI: "Hawaii",
|
|
395
|
+
IA: "Iowa",
|
|
396
|
+
ID: "Idaho",
|
|
397
|
+
IL: "Illinois",
|
|
398
|
+
IN: "Indiana",
|
|
399
|
+
JA: "Johnston Atoll",
|
|
400
|
+
KS: "Kansas",
|
|
401
|
+
KY: "Kentucky",
|
|
402
|
+
LA: "Louisiana",
|
|
403
|
+
MA: "Massachusetts",
|
|
404
|
+
MD: "Maryland",
|
|
405
|
+
ME: "Maine",
|
|
406
|
+
MI: "Michigan",
|
|
407
|
+
MN: "Minnesota",
|
|
408
|
+
MO: "Missouri",
|
|
409
|
+
MS: "Mississippi",
|
|
410
|
+
MT: "Montana",
|
|
411
|
+
NC: "North Carolina",
|
|
412
|
+
ND: "North Dakota",
|
|
413
|
+
NE: "Nebraska",
|
|
414
|
+
NH: "New Hampshire",
|
|
415
|
+
NJ: "New Jersey",
|
|
416
|
+
NM: "New Mexico",
|
|
417
|
+
NV: "Nevada",
|
|
418
|
+
NY: "New York",
|
|
419
|
+
OH: "Ohio",
|
|
420
|
+
OK: "Oklahoma",
|
|
421
|
+
OR: "Oregon",
|
|
422
|
+
PA: "Pennsylvania",
|
|
423
|
+
PR: "Puerto Rico",
|
|
424
|
+
RI: "Rhode Island",
|
|
425
|
+
SC: "South Carolina",
|
|
426
|
+
SD: "South Dakota",
|
|
427
|
+
TN: "Tennessee",
|
|
428
|
+
TX: "Texas",
|
|
429
|
+
UT: "Utah",
|
|
430
|
+
VA: "Virginia",
|
|
431
|
+
VT: "Vermont",
|
|
432
|
+
WA: "Washington",
|
|
433
|
+
WI: "Wisconsin",
|
|
434
|
+
WV: "West Virginia",
|
|
435
|
+
WY: "Wyoming",
|
|
436
|
+
VI: "Virgin Islands",
|
|
437
|
+
MP: "Northern Mariana Islands",
|
|
438
|
+
GU: "Guam",
|
|
439
|
+
} as const
|
|
440
|
+
|
|
441
|
+
export type StateName = (typeof StateName)[keyof typeof StateName]
|
|
432
442
|
|
|
433
443
|
//#endregion
|
|
434
444
|
|