@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/out/state.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import type { GeoFeature, MultiPolygonLiteral } from "@mailwoman/spatial";
|
|
7
|
-
import { GeoIDPart } from "./geoid.
|
|
8
|
-
import type { TIGERTabulatedBlockProperties } from "./tabulation-block.
|
|
7
|
+
import { GeoIDPart } from "./geoid.ts";
|
|
8
|
+
import type { TIGERTabulatedBlockProperties } from "./tabulation-block.ts";
|
|
9
9
|
/**
|
|
10
10
|
* FIPS codes for US States.
|
|
11
11
|
*
|
|
@@ -15,110 +15,111 @@ import type { TIGERTabulatedBlockProperties } from "./tabulation-block.js";
|
|
|
15
15
|
* @see {@linkcode FIPSTerritoryCode} for territories.
|
|
16
16
|
* @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
|
|
17
17
|
*/
|
|
18
|
-
export declare
|
|
18
|
+
export declare const FIPSStateCode: {
|
|
19
19
|
/** @title Alabama */
|
|
20
|
-
AL
|
|
20
|
+
readonly AL: "01";
|
|
21
21
|
/** @title Alaska */
|
|
22
|
-
AK
|
|
22
|
+
readonly AK: "02";
|
|
23
23
|
/** @title Arizona */
|
|
24
|
-
AZ
|
|
24
|
+
readonly AZ: "04";
|
|
25
25
|
/** @title Arkansas */
|
|
26
|
-
AR
|
|
26
|
+
readonly AR: "05";
|
|
27
27
|
/** @title California */
|
|
28
|
-
CA
|
|
28
|
+
readonly CA: "06";
|
|
29
29
|
/** @title Colorado */
|
|
30
|
-
CO
|
|
30
|
+
readonly CO: "08";
|
|
31
31
|
/** @title Connecticut */
|
|
32
|
-
CT
|
|
32
|
+
readonly CT: "09";
|
|
33
33
|
/** @title Delaware */
|
|
34
|
-
DE
|
|
34
|
+
readonly DE: "10";
|
|
35
35
|
/** @title District Of Columbia */
|
|
36
|
-
DC
|
|
36
|
+
readonly DC: "11";
|
|
37
37
|
/** @title Florida */
|
|
38
|
-
FL
|
|
38
|
+
readonly FL: "12";
|
|
39
39
|
/** @title Georgia */
|
|
40
|
-
GA
|
|
40
|
+
readonly GA: "13";
|
|
41
41
|
/** @title Hawaii */
|
|
42
|
-
HI
|
|
42
|
+
readonly HI: "15";
|
|
43
43
|
/** @title Idaho */
|
|
44
|
-
ID
|
|
44
|
+
readonly ID: "16";
|
|
45
45
|
/** @title Illinois */
|
|
46
|
-
IL
|
|
46
|
+
readonly IL: "17";
|
|
47
47
|
/** @title Indiana */
|
|
48
|
-
IN
|
|
48
|
+
readonly IN: "18";
|
|
49
49
|
/** @title Iowa */
|
|
50
|
-
IA
|
|
50
|
+
readonly IA: "19";
|
|
51
51
|
/** @title Kansas */
|
|
52
|
-
KS
|
|
52
|
+
readonly KS: "20";
|
|
53
53
|
/** @title Kentucky */
|
|
54
|
-
KY
|
|
54
|
+
readonly KY: "21";
|
|
55
55
|
/** @title Louisiana */
|
|
56
|
-
LA
|
|
56
|
+
readonly LA: "22";
|
|
57
57
|
/** @title Maine */
|
|
58
|
-
ME
|
|
58
|
+
readonly ME: "23";
|
|
59
59
|
/** @title Maryland */
|
|
60
|
-
MD
|
|
60
|
+
readonly MD: "24";
|
|
61
61
|
/** @title Massachusetts */
|
|
62
|
-
MA
|
|
62
|
+
readonly MA: "25";
|
|
63
63
|
/** @title Michigan */
|
|
64
|
-
MI
|
|
64
|
+
readonly MI: "26";
|
|
65
65
|
/** @title Minnesota */
|
|
66
|
-
MN
|
|
66
|
+
readonly MN: "27";
|
|
67
67
|
/** @title Mississippi */
|
|
68
|
-
MS
|
|
68
|
+
readonly MS: "28";
|
|
69
69
|
/** @title Missouri */
|
|
70
|
-
MO
|
|
70
|
+
readonly MO: "29";
|
|
71
71
|
/** @title Montana */
|
|
72
|
-
MT
|
|
72
|
+
readonly MT: "30";
|
|
73
73
|
/** @title Nebraska */
|
|
74
|
-
NE
|
|
74
|
+
readonly NE: "31";
|
|
75
75
|
/** @title Nevada */
|
|
76
|
-
NV
|
|
76
|
+
readonly NV: "32";
|
|
77
77
|
/** @title New Hampshire */
|
|
78
|
-
NH
|
|
78
|
+
readonly NH: "33";
|
|
79
79
|
/** @title New Jersey */
|
|
80
|
-
NJ
|
|
80
|
+
readonly NJ: "34";
|
|
81
81
|
/** @title New Mexico */
|
|
82
|
-
NM
|
|
82
|
+
readonly NM: "35";
|
|
83
83
|
/** @title New York */
|
|
84
|
-
NY
|
|
84
|
+
readonly NY: "36";
|
|
85
85
|
/** @title North Carolina */
|
|
86
|
-
NC
|
|
86
|
+
readonly NC: "37";
|
|
87
87
|
/** @title North Dakota */
|
|
88
|
-
ND
|
|
88
|
+
readonly ND: "38";
|
|
89
89
|
/** @title Ohio */
|
|
90
|
-
OH
|
|
90
|
+
readonly OH: "39";
|
|
91
91
|
/** @title Oklahoma */
|
|
92
|
-
OK
|
|
92
|
+
readonly OK: "40";
|
|
93
93
|
/** @title Oregon */
|
|
94
|
-
OR
|
|
94
|
+
readonly OR: "41";
|
|
95
95
|
/** @title Pennsylvania */
|
|
96
|
-
PA
|
|
96
|
+
readonly PA: "42";
|
|
97
97
|
/** @title Rhode Island */
|
|
98
|
-
RI
|
|
98
|
+
readonly RI: "44";
|
|
99
99
|
/** @title South Carolina */
|
|
100
|
-
SC
|
|
100
|
+
readonly SC: "45";
|
|
101
101
|
/** @title South Dakota */
|
|
102
|
-
SD
|
|
102
|
+
readonly SD: "46";
|
|
103
103
|
/** @title Tennessee */
|
|
104
|
-
TN
|
|
104
|
+
readonly TN: "47";
|
|
105
105
|
/** @title Texas */
|
|
106
|
-
TX
|
|
106
|
+
readonly TX: "48";
|
|
107
107
|
/** @title Utah */
|
|
108
|
-
UT
|
|
108
|
+
readonly UT: "49";
|
|
109
109
|
/** @title Vermont */
|
|
110
|
-
VT
|
|
110
|
+
readonly VT: "50";
|
|
111
111
|
/** @title Virginia */
|
|
112
|
-
VA
|
|
112
|
+
readonly VA: "51";
|
|
113
113
|
/** @title Washington */
|
|
114
|
-
WA
|
|
114
|
+
readonly WA: "53";
|
|
115
115
|
/** @title West Virginia */
|
|
116
|
-
WV
|
|
116
|
+
readonly WV: "54";
|
|
117
117
|
/** @title Wisconsin */
|
|
118
|
-
WI
|
|
118
|
+
readonly WI: "55";
|
|
119
119
|
/** @title Wyoming */
|
|
120
|
-
WY
|
|
121
|
-
}
|
|
120
|
+
readonly WY: "56";
|
|
121
|
+
};
|
|
122
|
+
export type FIPSStateCode = (typeof FIPSStateCode)[keyof typeof FIPSStateCode];
|
|
122
123
|
/**
|
|
123
124
|
* FIPS codes for US Territories.
|
|
124
125
|
*
|
|
@@ -130,22 +131,23 @@ export declare enum FIPSStateCode {
|
|
|
130
131
|
* @see {@linkcode FIPSStateCode} for states.
|
|
131
132
|
* @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
|
|
132
133
|
*/
|
|
133
|
-
export declare
|
|
134
|
+
export declare const FIPSTerritoryCode: {
|
|
134
135
|
/**
|
|
135
136
|
* @title Johnston Atoll
|
|
136
137
|
*/
|
|
137
|
-
JA
|
|
138
|
+
readonly JA: "74";
|
|
138
139
|
/** @title American Samoa */
|
|
139
|
-
AS
|
|
140
|
+
readonly AS: "60";
|
|
140
141
|
/** @title Guam */
|
|
141
|
-
GU
|
|
142
|
+
readonly GU: "66";
|
|
142
143
|
/** @title Northern Mariana Islands */
|
|
143
|
-
MP
|
|
144
|
+
readonly MP: "69";
|
|
144
145
|
/** @title Puerto Rico */
|
|
145
|
-
PR
|
|
146
|
+
readonly PR: "72";
|
|
146
147
|
/** @title Virgin Islands */
|
|
147
|
-
VI
|
|
148
|
-
}
|
|
148
|
+
readonly VI: "78";
|
|
149
|
+
};
|
|
150
|
+
export type FIPSTerritoryCode = (typeof FIPSTerritoryCode)[keyof typeof FIPSTerritoryCode];
|
|
149
151
|
/**
|
|
150
152
|
* A combined set of FIPS codes for US States and Territories.
|
|
151
153
|
*
|
|
@@ -163,119 +165,119 @@ export declare const AdminLevel1Code: {
|
|
|
163
165
|
/**
|
|
164
166
|
* @title Johnston Atoll
|
|
165
167
|
*/
|
|
166
|
-
readonly JA:
|
|
168
|
+
readonly JA: "74";
|
|
167
169
|
/** @title American Samoa */
|
|
168
|
-
readonly AS:
|
|
170
|
+
readonly AS: "60";
|
|
169
171
|
/** @title Guam */
|
|
170
|
-
readonly GU:
|
|
172
|
+
readonly GU: "66";
|
|
171
173
|
/** @title Northern Mariana Islands */
|
|
172
|
-
readonly MP:
|
|
174
|
+
readonly MP: "69";
|
|
173
175
|
/** @title Puerto Rico */
|
|
174
|
-
readonly PR:
|
|
176
|
+
readonly PR: "72";
|
|
175
177
|
/** @title Virgin Islands */
|
|
176
|
-
readonly VI:
|
|
178
|
+
readonly VI: "78";
|
|
177
179
|
/** @title Alabama */
|
|
178
|
-
readonly AL:
|
|
180
|
+
readonly AL: "01";
|
|
179
181
|
/** @title Alaska */
|
|
180
|
-
readonly AK:
|
|
182
|
+
readonly AK: "02";
|
|
181
183
|
/** @title Arizona */
|
|
182
|
-
readonly AZ:
|
|
184
|
+
readonly AZ: "04";
|
|
183
185
|
/** @title Arkansas */
|
|
184
|
-
readonly AR:
|
|
186
|
+
readonly AR: "05";
|
|
185
187
|
/** @title California */
|
|
186
|
-
readonly CA:
|
|
188
|
+
readonly CA: "06";
|
|
187
189
|
/** @title Colorado */
|
|
188
|
-
readonly CO:
|
|
190
|
+
readonly CO: "08";
|
|
189
191
|
/** @title Connecticut */
|
|
190
|
-
readonly CT:
|
|
192
|
+
readonly CT: "09";
|
|
191
193
|
/** @title Delaware */
|
|
192
|
-
readonly DE:
|
|
194
|
+
readonly DE: "10";
|
|
193
195
|
/** @title District Of Columbia */
|
|
194
|
-
readonly DC:
|
|
196
|
+
readonly DC: "11";
|
|
195
197
|
/** @title Florida */
|
|
196
|
-
readonly FL:
|
|
198
|
+
readonly FL: "12";
|
|
197
199
|
/** @title Georgia */
|
|
198
|
-
readonly GA:
|
|
200
|
+
readonly GA: "13";
|
|
199
201
|
/** @title Hawaii */
|
|
200
|
-
readonly HI:
|
|
202
|
+
readonly HI: "15";
|
|
201
203
|
/** @title Idaho */
|
|
202
|
-
readonly ID:
|
|
204
|
+
readonly ID: "16";
|
|
203
205
|
/** @title Illinois */
|
|
204
|
-
readonly IL:
|
|
206
|
+
readonly IL: "17";
|
|
205
207
|
/** @title Indiana */
|
|
206
|
-
readonly IN:
|
|
208
|
+
readonly IN: "18";
|
|
207
209
|
/** @title Iowa */
|
|
208
|
-
readonly IA:
|
|
210
|
+
readonly IA: "19";
|
|
209
211
|
/** @title Kansas */
|
|
210
|
-
readonly KS:
|
|
212
|
+
readonly KS: "20";
|
|
211
213
|
/** @title Kentucky */
|
|
212
|
-
readonly KY:
|
|
214
|
+
readonly KY: "21";
|
|
213
215
|
/** @title Louisiana */
|
|
214
|
-
readonly LA:
|
|
216
|
+
readonly LA: "22";
|
|
215
217
|
/** @title Maine */
|
|
216
|
-
readonly ME:
|
|
218
|
+
readonly ME: "23";
|
|
217
219
|
/** @title Maryland */
|
|
218
|
-
readonly MD:
|
|
220
|
+
readonly MD: "24";
|
|
219
221
|
/** @title Massachusetts */
|
|
220
|
-
readonly MA:
|
|
222
|
+
readonly MA: "25";
|
|
221
223
|
/** @title Michigan */
|
|
222
|
-
readonly MI:
|
|
224
|
+
readonly MI: "26";
|
|
223
225
|
/** @title Minnesota */
|
|
224
|
-
readonly MN:
|
|
226
|
+
readonly MN: "27";
|
|
225
227
|
/** @title Mississippi */
|
|
226
|
-
readonly MS:
|
|
228
|
+
readonly MS: "28";
|
|
227
229
|
/** @title Missouri */
|
|
228
|
-
readonly MO:
|
|
230
|
+
readonly MO: "29";
|
|
229
231
|
/** @title Montana */
|
|
230
|
-
readonly MT:
|
|
232
|
+
readonly MT: "30";
|
|
231
233
|
/** @title Nebraska */
|
|
232
|
-
readonly NE:
|
|
234
|
+
readonly NE: "31";
|
|
233
235
|
/** @title Nevada */
|
|
234
|
-
readonly NV:
|
|
236
|
+
readonly NV: "32";
|
|
235
237
|
/** @title New Hampshire */
|
|
236
|
-
readonly NH:
|
|
238
|
+
readonly NH: "33";
|
|
237
239
|
/** @title New Jersey */
|
|
238
|
-
readonly NJ:
|
|
240
|
+
readonly NJ: "34";
|
|
239
241
|
/** @title New Mexico */
|
|
240
|
-
readonly NM:
|
|
242
|
+
readonly NM: "35";
|
|
241
243
|
/** @title New York */
|
|
242
|
-
readonly NY:
|
|
244
|
+
readonly NY: "36";
|
|
243
245
|
/** @title North Carolina */
|
|
244
|
-
readonly NC:
|
|
246
|
+
readonly NC: "37";
|
|
245
247
|
/** @title North Dakota */
|
|
246
|
-
readonly ND:
|
|
248
|
+
readonly ND: "38";
|
|
247
249
|
/** @title Ohio */
|
|
248
|
-
readonly OH:
|
|
250
|
+
readonly OH: "39";
|
|
249
251
|
/** @title Oklahoma */
|
|
250
|
-
readonly OK:
|
|
252
|
+
readonly OK: "40";
|
|
251
253
|
/** @title Oregon */
|
|
252
|
-
readonly OR:
|
|
254
|
+
readonly OR: "41";
|
|
253
255
|
/** @title Pennsylvania */
|
|
254
|
-
readonly PA:
|
|
256
|
+
readonly PA: "42";
|
|
255
257
|
/** @title Rhode Island */
|
|
256
|
-
readonly RI:
|
|
258
|
+
readonly RI: "44";
|
|
257
259
|
/** @title South Carolina */
|
|
258
|
-
readonly SC:
|
|
260
|
+
readonly SC: "45";
|
|
259
261
|
/** @title South Dakota */
|
|
260
|
-
readonly SD:
|
|
262
|
+
readonly SD: "46";
|
|
261
263
|
/** @title Tennessee */
|
|
262
|
-
readonly TN:
|
|
264
|
+
readonly TN: "47";
|
|
263
265
|
/** @title Texas */
|
|
264
|
-
readonly TX:
|
|
266
|
+
readonly TX: "48";
|
|
265
267
|
/** @title Utah */
|
|
266
|
-
readonly UT:
|
|
268
|
+
readonly UT: "49";
|
|
267
269
|
/** @title Vermont */
|
|
268
|
-
readonly VT:
|
|
270
|
+
readonly VT: "50";
|
|
269
271
|
/** @title Virginia */
|
|
270
|
-
readonly VA:
|
|
272
|
+
readonly VA: "51";
|
|
271
273
|
/** @title Washington */
|
|
272
|
-
readonly WA:
|
|
274
|
+
readonly WA: "53";
|
|
273
275
|
/** @title West Virginia */
|
|
274
|
-
readonly WV:
|
|
276
|
+
readonly WV: "54";
|
|
275
277
|
/** @title Wisconsin */
|
|
276
|
-
readonly WI:
|
|
278
|
+
readonly WI: "55";
|
|
277
279
|
/** @title Wyoming */
|
|
278
|
-
readonly WY:
|
|
280
|
+
readonly WY: "56";
|
|
279
281
|
};
|
|
280
282
|
export type AdminLevel1Code = FIPSStateCode | FIPSTerritoryCode;
|
|
281
283
|
/**
|
|
@@ -305,67 +307,69 @@ export declare function isAdminLevel1FIPSCode(code: string | null | undefined):
|
|
|
305
307
|
* @maxLength 2
|
|
306
308
|
* @public
|
|
307
309
|
*/
|
|
308
|
-
export declare
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"District of Columbia"
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"North Carolina"
|
|
337
|
-
"North Dakota"
|
|
338
|
-
|
|
339
|
-
"New Hampshire"
|
|
340
|
-
"New Jersey"
|
|
341
|
-
"New Mexico"
|
|
342
|
-
|
|
343
|
-
"New York"
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
"Rhode Island"
|
|
349
|
-
"South Carolina"
|
|
350
|
-
"South Dakota"
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
"West Virginia"
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
export
|
|
362
|
-
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
-
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
310
|
+
export declare const StateAbbreviation: {
|
|
311
|
+
readonly Alaska: "AK";
|
|
312
|
+
readonly Alabama: "AL";
|
|
313
|
+
readonly Arkansas: "AR";
|
|
314
|
+
readonly Arizona: "AZ";
|
|
315
|
+
readonly California: "CA";
|
|
316
|
+
readonly Colorado: "CO";
|
|
317
|
+
readonly Connecticut: "CT";
|
|
318
|
+
readonly "District of Columbia": "DC";
|
|
319
|
+
readonly Delaware: "DE";
|
|
320
|
+
readonly Florida: "FL";
|
|
321
|
+
readonly Georgia: "GA";
|
|
322
|
+
readonly Hawaii: "HI";
|
|
323
|
+
readonly Iowa: "IA";
|
|
324
|
+
readonly Idaho: "ID";
|
|
325
|
+
readonly Illinois: "IL";
|
|
326
|
+
readonly Indiana: "IN";
|
|
327
|
+
readonly Kansas: "KS";
|
|
328
|
+
readonly Kentucky: "KY";
|
|
329
|
+
readonly Louisiana: "LA";
|
|
330
|
+
readonly Massachusetts: "MA";
|
|
331
|
+
readonly Maryland: "MD";
|
|
332
|
+
readonly Maine: "ME";
|
|
333
|
+
readonly Michigan: "MI";
|
|
334
|
+
readonly Minnesota: "MN";
|
|
335
|
+
readonly Missouri: "MO";
|
|
336
|
+
readonly Mississippi: "MS";
|
|
337
|
+
readonly Montana: "MT";
|
|
338
|
+
readonly "North Carolina": "NC";
|
|
339
|
+
readonly "North Dakota": "ND";
|
|
340
|
+
readonly Nebraska: "NE";
|
|
341
|
+
readonly "New Hampshire": "NH";
|
|
342
|
+
readonly "New Jersey": "NJ";
|
|
343
|
+
readonly "New Mexico": "NM";
|
|
344
|
+
readonly Nevada: "NV";
|
|
345
|
+
readonly "New York": "NY";
|
|
346
|
+
readonly Ohio: "OH";
|
|
347
|
+
readonly Oklahoma: "OK";
|
|
348
|
+
readonly Oregon: "OR";
|
|
349
|
+
readonly Pennsylvania: "PA";
|
|
350
|
+
readonly "Rhode Island": "RI";
|
|
351
|
+
readonly "South Carolina": "SC";
|
|
352
|
+
readonly "South Dakota": "SD";
|
|
353
|
+
readonly Tennessee: "TN";
|
|
354
|
+
readonly Texas: "TX";
|
|
355
|
+
readonly Utah: "UT";
|
|
356
|
+
readonly Virginia: "VA";
|
|
357
|
+
readonly Vermont: "VT";
|
|
358
|
+
readonly Washington: "WA";
|
|
359
|
+
readonly Wisconsin: "WI";
|
|
360
|
+
readonly "West Virginia": "WV";
|
|
361
|
+
readonly Wyoming: "WY";
|
|
362
|
+
};
|
|
363
|
+
export type StateAbbreviation = (typeof StateAbbreviation)[keyof typeof StateAbbreviation];
|
|
364
|
+
export declare const TerritoryAbbreviation: {
|
|
365
|
+
readonly "American Samoa": "AS";
|
|
366
|
+
readonly "Johnston Atoll": "JA";
|
|
367
|
+
readonly Guam: "GU";
|
|
368
|
+
readonly "Virgin Islands": "VI";
|
|
369
|
+
readonly "Northern Mariana Islands": "MP";
|
|
370
|
+
readonly "Puerto Rico": "PR";
|
|
371
|
+
};
|
|
372
|
+
export type TerritoryAbbreviation = (typeof TerritoryAbbreviation)[keyof typeof TerritoryAbbreviation];
|
|
369
373
|
/**
|
|
370
374
|
* Two-letter abbreviations of a US states and territories.
|
|
371
375
|
*
|
|
@@ -375,128 +379,129 @@ export declare enum TerritoryAbbreviation {
|
|
|
375
379
|
*/
|
|
376
380
|
export type AdminLevel1Abbreviation = StateAbbreviation | TerritoryAbbreviation;
|
|
377
381
|
export declare const AdminLevel1Abbreviation: {
|
|
378
|
-
readonly "American Samoa":
|
|
379
|
-
readonly "Johnston Atoll":
|
|
380
|
-
readonly Guam:
|
|
381
|
-
readonly "Virgin Islands":
|
|
382
|
-
readonly "Northern Mariana Islands":
|
|
383
|
-
readonly "Puerto Rico":
|
|
384
|
-
readonly Alaska:
|
|
385
|
-
readonly Alabama:
|
|
386
|
-
readonly Arkansas:
|
|
387
|
-
readonly Arizona:
|
|
388
|
-
readonly California:
|
|
389
|
-
readonly Colorado:
|
|
390
|
-
readonly Connecticut:
|
|
391
|
-
readonly "District of Columbia":
|
|
392
|
-
readonly Delaware:
|
|
393
|
-
readonly Florida:
|
|
394
|
-
readonly Georgia:
|
|
395
|
-
readonly Hawaii:
|
|
396
|
-
readonly Iowa:
|
|
397
|
-
readonly Idaho:
|
|
398
|
-
readonly Illinois:
|
|
399
|
-
readonly Indiana:
|
|
400
|
-
readonly Kansas:
|
|
401
|
-
readonly Kentucky:
|
|
402
|
-
readonly Louisiana:
|
|
403
|
-
readonly Massachusetts:
|
|
404
|
-
readonly Maryland:
|
|
405
|
-
readonly Maine:
|
|
406
|
-
readonly Michigan:
|
|
407
|
-
readonly Minnesota:
|
|
408
|
-
readonly Missouri:
|
|
409
|
-
readonly Mississippi:
|
|
410
|
-
readonly Montana:
|
|
411
|
-
readonly "North Carolina":
|
|
412
|
-
readonly "North Dakota":
|
|
413
|
-
readonly Nebraska:
|
|
414
|
-
readonly "New Hampshire":
|
|
415
|
-
readonly "New Jersey":
|
|
416
|
-
readonly "New Mexico":
|
|
417
|
-
readonly Nevada:
|
|
418
|
-
readonly "New York":
|
|
419
|
-
readonly Ohio:
|
|
420
|
-
readonly Oklahoma:
|
|
421
|
-
readonly Oregon:
|
|
422
|
-
readonly Pennsylvania:
|
|
423
|
-
readonly "Rhode Island":
|
|
424
|
-
readonly "South Carolina":
|
|
425
|
-
readonly "South Dakota":
|
|
426
|
-
readonly Tennessee:
|
|
427
|
-
readonly Texas:
|
|
428
|
-
readonly Utah:
|
|
429
|
-
readonly Virginia:
|
|
430
|
-
readonly Vermont:
|
|
431
|
-
readonly Washington:
|
|
432
|
-
readonly Wisconsin:
|
|
433
|
-
readonly "West Virginia":
|
|
434
|
-
readonly Wyoming:
|
|
382
|
+
readonly "American Samoa": "AS";
|
|
383
|
+
readonly "Johnston Atoll": "JA";
|
|
384
|
+
readonly Guam: "GU";
|
|
385
|
+
readonly "Virgin Islands": "VI";
|
|
386
|
+
readonly "Northern Mariana Islands": "MP";
|
|
387
|
+
readonly "Puerto Rico": "PR";
|
|
388
|
+
readonly Alaska: "AK";
|
|
389
|
+
readonly Alabama: "AL";
|
|
390
|
+
readonly Arkansas: "AR";
|
|
391
|
+
readonly Arizona: "AZ";
|
|
392
|
+
readonly California: "CA";
|
|
393
|
+
readonly Colorado: "CO";
|
|
394
|
+
readonly Connecticut: "CT";
|
|
395
|
+
readonly "District of Columbia": "DC";
|
|
396
|
+
readonly Delaware: "DE";
|
|
397
|
+
readonly Florida: "FL";
|
|
398
|
+
readonly Georgia: "GA";
|
|
399
|
+
readonly Hawaii: "HI";
|
|
400
|
+
readonly Iowa: "IA";
|
|
401
|
+
readonly Idaho: "ID";
|
|
402
|
+
readonly Illinois: "IL";
|
|
403
|
+
readonly Indiana: "IN";
|
|
404
|
+
readonly Kansas: "KS";
|
|
405
|
+
readonly Kentucky: "KY";
|
|
406
|
+
readonly Louisiana: "LA";
|
|
407
|
+
readonly Massachusetts: "MA";
|
|
408
|
+
readonly Maryland: "MD";
|
|
409
|
+
readonly Maine: "ME";
|
|
410
|
+
readonly Michigan: "MI";
|
|
411
|
+
readonly Minnesota: "MN";
|
|
412
|
+
readonly Missouri: "MO";
|
|
413
|
+
readonly Mississippi: "MS";
|
|
414
|
+
readonly Montana: "MT";
|
|
415
|
+
readonly "North Carolina": "NC";
|
|
416
|
+
readonly "North Dakota": "ND";
|
|
417
|
+
readonly Nebraska: "NE";
|
|
418
|
+
readonly "New Hampshire": "NH";
|
|
419
|
+
readonly "New Jersey": "NJ";
|
|
420
|
+
readonly "New Mexico": "NM";
|
|
421
|
+
readonly Nevada: "NV";
|
|
422
|
+
readonly "New York": "NY";
|
|
423
|
+
readonly Ohio: "OH";
|
|
424
|
+
readonly Oklahoma: "OK";
|
|
425
|
+
readonly Oregon: "OR";
|
|
426
|
+
readonly Pennsylvania: "PA";
|
|
427
|
+
readonly "Rhode Island": "RI";
|
|
428
|
+
readonly "South Carolina": "SC";
|
|
429
|
+
readonly "South Dakota": "SD";
|
|
430
|
+
readonly Tennessee: "TN";
|
|
431
|
+
readonly Texas: "TX";
|
|
432
|
+
readonly Utah: "UT";
|
|
433
|
+
readonly Virginia: "VA";
|
|
434
|
+
readonly Vermont: "VT";
|
|
435
|
+
readonly Washington: "WA";
|
|
436
|
+
readonly Wisconsin: "WI";
|
|
437
|
+
readonly "West Virginia": "WV";
|
|
438
|
+
readonly Wyoming: "WY";
|
|
435
439
|
};
|
|
436
440
|
/**
|
|
437
441
|
* US State abbreviations to their full names.
|
|
438
442
|
*
|
|
439
443
|
* @public
|
|
440
444
|
*/
|
|
441
|
-
export declare
|
|
442
|
-
AS
|
|
443
|
-
AK
|
|
444
|
-
AL
|
|
445
|
-
AR
|
|
446
|
-
AZ
|
|
447
|
-
CA
|
|
448
|
-
CO
|
|
449
|
-
CT
|
|
450
|
-
DC
|
|
451
|
-
DE
|
|
452
|
-
FL
|
|
453
|
-
GA
|
|
454
|
-
HI
|
|
455
|
-
IA
|
|
456
|
-
ID
|
|
457
|
-
IL
|
|
458
|
-
IN
|
|
459
|
-
JA
|
|
460
|
-
KS
|
|
461
|
-
KY
|
|
462
|
-
LA
|
|
463
|
-
MA
|
|
464
|
-
MD
|
|
465
|
-
ME
|
|
466
|
-
MI
|
|
467
|
-
MN
|
|
468
|
-
MO
|
|
469
|
-
MS
|
|
470
|
-
MT
|
|
471
|
-
NC
|
|
472
|
-
ND
|
|
473
|
-
NE
|
|
474
|
-
NH
|
|
475
|
-
NJ
|
|
476
|
-
NM
|
|
477
|
-
NV
|
|
478
|
-
NY
|
|
479
|
-
OH
|
|
480
|
-
OK
|
|
481
|
-
OR
|
|
482
|
-
PA
|
|
483
|
-
PR
|
|
484
|
-
RI
|
|
485
|
-
SC
|
|
486
|
-
SD
|
|
487
|
-
TN
|
|
488
|
-
TX
|
|
489
|
-
UT
|
|
490
|
-
VA
|
|
491
|
-
VT
|
|
492
|
-
WA
|
|
493
|
-
WI
|
|
494
|
-
WV
|
|
495
|
-
WY
|
|
496
|
-
VI
|
|
497
|
-
MP
|
|
498
|
-
GU
|
|
499
|
-
}
|
|
445
|
+
export declare const StateName: {
|
|
446
|
+
readonly AS: "American Samoa";
|
|
447
|
+
readonly AK: "Alaska";
|
|
448
|
+
readonly AL: "Alabama";
|
|
449
|
+
readonly AR: "Arkansas";
|
|
450
|
+
readonly AZ: "Arizona";
|
|
451
|
+
readonly CA: "California";
|
|
452
|
+
readonly CO: "Colorado";
|
|
453
|
+
readonly CT: "Connecticut";
|
|
454
|
+
readonly DC: "District of Columbia";
|
|
455
|
+
readonly DE: "Delaware";
|
|
456
|
+
readonly FL: "Florida";
|
|
457
|
+
readonly GA: "Georgia";
|
|
458
|
+
readonly HI: "Hawaii";
|
|
459
|
+
readonly IA: "Iowa";
|
|
460
|
+
readonly ID: "Idaho";
|
|
461
|
+
readonly IL: "Illinois";
|
|
462
|
+
readonly IN: "Indiana";
|
|
463
|
+
readonly JA: "Johnston Atoll";
|
|
464
|
+
readonly KS: "Kansas";
|
|
465
|
+
readonly KY: "Kentucky";
|
|
466
|
+
readonly LA: "Louisiana";
|
|
467
|
+
readonly MA: "Massachusetts";
|
|
468
|
+
readonly MD: "Maryland";
|
|
469
|
+
readonly ME: "Maine";
|
|
470
|
+
readonly MI: "Michigan";
|
|
471
|
+
readonly MN: "Minnesota";
|
|
472
|
+
readonly MO: "Missouri";
|
|
473
|
+
readonly MS: "Mississippi";
|
|
474
|
+
readonly MT: "Montana";
|
|
475
|
+
readonly NC: "North Carolina";
|
|
476
|
+
readonly ND: "North Dakota";
|
|
477
|
+
readonly NE: "Nebraska";
|
|
478
|
+
readonly NH: "New Hampshire";
|
|
479
|
+
readonly NJ: "New Jersey";
|
|
480
|
+
readonly NM: "New Mexico";
|
|
481
|
+
readonly NV: "Nevada";
|
|
482
|
+
readonly NY: "New York";
|
|
483
|
+
readonly OH: "Ohio";
|
|
484
|
+
readonly OK: "Oklahoma";
|
|
485
|
+
readonly OR: "Oregon";
|
|
486
|
+
readonly PA: "Pennsylvania";
|
|
487
|
+
readonly PR: "Puerto Rico";
|
|
488
|
+
readonly RI: "Rhode Island";
|
|
489
|
+
readonly SC: "South Carolina";
|
|
490
|
+
readonly SD: "South Dakota";
|
|
491
|
+
readonly TN: "Tennessee";
|
|
492
|
+
readonly TX: "Texas";
|
|
493
|
+
readonly UT: "Utah";
|
|
494
|
+
readonly VA: "Virginia";
|
|
495
|
+
readonly VT: "Vermont";
|
|
496
|
+
readonly WA: "Washington";
|
|
497
|
+
readonly WI: "Wisconsin";
|
|
498
|
+
readonly WV: "West Virginia";
|
|
499
|
+
readonly WY: "Wyoming";
|
|
500
|
+
readonly VI: "Virgin Islands";
|
|
501
|
+
readonly MP: "Northern Mariana Islands";
|
|
502
|
+
readonly GU: "Guam";
|
|
503
|
+
};
|
|
504
|
+
export type StateName = (typeof StateName)[keyof typeof StateName];
|
|
500
505
|
/**
|
|
501
506
|
* Predicate for checking if a string is a proper abbreviation for a US State or territory, rather than a random
|
|
502
507
|
* 2-letter string.
|