@mailwoman/spatial 8.6.0 → 9.0.0

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.
Files changed (52) hide show
  1. package/README.md +4 -0
  2. package/geometries/point.ts +37 -15
  3. package/geometries/polygon.ts +70 -2
  4. package/h3/cell.ts +78 -39
  5. package/h3/index.ts +1 -1
  6. package/index.ts +1 -1
  7. package/osgb36.ts +371 -0
  8. package/out/geometries/point.d.ts +26 -1
  9. package/out/geometries/point.d.ts.map +1 -1
  10. package/out/geometries/point.js +33 -16
  11. package/out/geometries/point.js.map +1 -1
  12. package/out/geometries/polygon.d.ts +34 -2
  13. package/out/geometries/polygon.d.ts.map +1 -1
  14. package/out/geometries/polygon.js +43 -0
  15. package/out/geometries/polygon.js.map +1 -1
  16. package/out/h3/cell.d.ts +43 -15
  17. package/out/h3/cell.d.ts.map +1 -1
  18. package/out/h3/cell.js +63 -34
  19. package/out/h3/cell.js.map +1 -1
  20. package/out/h3/index.d.ts +1 -1
  21. package/out/h3/index.js +1 -1
  22. package/out/index.d.ts +1 -1
  23. package/out/index.d.ts.map +1 -1
  24. package/out/index.js +1 -1
  25. package/out/index.js.map +1 -1
  26. package/out/osgb36.d.ts +125 -0
  27. package/out/osgb36.d.ts.map +1 -0
  28. package/out/osgb36.js +301 -0
  29. package/out/osgb36.js.map +1 -0
  30. package/out/position.d.ts +28 -1
  31. package/out/position.d.ts.map +1 -1
  32. package/out/position.js +40 -1
  33. package/out/position.js.map +1 -1
  34. package/out/tsconfig.test.tsbuildinfo +1 -1
  35. package/out/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +3 -3
  37. package/position.ts +44 -1
  38. package/countries/codes.ts +0 -534
  39. package/countries/index.ts +0 -8
  40. package/countries/names.ts +0 -274
  41. package/out/countries/codes.d.ts +0 -529
  42. package/out/countries/codes.d.ts.map +0 -1
  43. package/out/countries/codes.js +0 -519
  44. package/out/countries/codes.js.map +0 -1
  45. package/out/countries/index.d.ts +0 -8
  46. package/out/countries/index.d.ts.map +0 -1
  47. package/out/countries/index.js +0 -8
  48. package/out/countries/index.js.map +0 -1
  49. package/out/countries/names.d.ts +0 -23
  50. package/out/countries/names.d.ts.map +0 -1
  51. package/out/countries/names.js +0 -264
  52. package/out/countries/names.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/spatial",
3
- "version": "8.6.0",
3
+ "version": "9.0.0",
4
4
  "description": "Spatial analysis, geocoding, and other geo-related utilities.",
5
5
  "keywords": [
6
6
  "geo",
@@ -57,14 +57,14 @@
57
57
  }
58
58
  },
59
59
  "dependencies": {
60
- "@mailwoman/core": "8.6.0",
60
+ "@mailwoman/core": "9.0.0",
61
61
  "geo-coordinates-parser": "^1.7.4",
62
62
  "h3-js": "^4.5.0",
63
63
  "wkx": "^0.5.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@googlemaps/google-maps-services-js": "^3.4.2",
67
- "@mailwoman/annotations": "8.6.0",
67
+ "@mailwoman/annotations": "9.0.0",
68
68
  "@types/google.maps": "^3.65.3",
69
69
  "type-fest": "^5.8.0"
70
70
  },
package/position.ts CHANGED
@@ -19,6 +19,39 @@ const LATITUDE_MIN = -90
19
19
  */
20
20
  const LATITUDE_MAX = 90
21
21
 
22
+ /**
23
+ * Western limit of longitude in WGS84 degrees (the antimeridian, which is itself a valid longitude).
24
+ */
25
+ const LONGITUDE_MIN = -180
26
+
27
+ /**
28
+ * Eastern limit of longitude in WGS84 degrees.
29
+ */
30
+ const LONGITUDE_MAX = 180
31
+
32
+ /**
33
+ * Whether a number is a latitude a point can actually sit at: finite, and within [-90, 90] inclusive (the poles count).
34
+ * Distinct from {@link clampLatitude}, which folds an out-of-range value onto the nearest pole — clamping is right for a
35
+ * viewport edge and wrong for a coordinate, where an out-of-range value means the input was malformed and the repaired
36
+ * point is fiction.
37
+ *
38
+ * @category Position
39
+ */
40
+ export function isValidLatitude(value: number): boolean {
41
+ return Number.isFinite(value) && value >= LATITUDE_MIN && value <= LATITUDE_MAX
42
+ }
43
+
44
+ /**
45
+ * Whether a number is a longitude a point can actually sit at: finite, and within [-180, 180] inclusive. Same
46
+ * distinction from {@link wrapLongitude} that {@link isValidLatitude} draws from `clampLatitude` — wrapping 190° to -170°
47
+ * is correct for a pan gesture and a silent relocation for a parsed coordinate.
48
+ *
49
+ * @category Position
50
+ */
51
+ export function isValidLongitude(value: number): boolean {
52
+ return Number.isFinite(value) && value >= LONGITUDE_MIN && value <= LONGITUDE_MAX
53
+ }
54
+
22
55
  /**
23
56
  * Arity of a `[lon, lat]` coordinate tuple.
24
57
  */
@@ -84,8 +117,18 @@ export function orderGeoJSONToCoordPair([longitude, latitude]: Coordinates2D): [
84
117
  * Given an input which appears to be reversed GeoJSON coordinates (i.e. [latitude, longitude]), returns the coordinates
85
118
  * in the correct order of [longitude, latitude].
86
119
  *
87
- * Note that this is a heuristic and is only accurate for North American coordinates.
120
+ * **This cannot do what its name promises, and nothing in this repo calls it.** The only signal it has is the [-90, 90]
121
+ * latitude range, so it transposes a pair only when the SECOND magnitude falls outside that range — i.e. only where
122
+ * |longitude| > 90. It is therefore inert across every longitude in [-90, 90]: all of Europe and Africa, western
123
+ * Russia, the Middle East, India, and the Atlantic. A caller who hands it `[latitude, longitude]` gets the pair
124
+ * repaired in Dallas and left corrupted in Berlin, from one code path, decided by the data. That is why `GeoPoint`
125
+ * stopped calling it on 2026-08-05 (recorded in `e9bfd139`; `registry/tools/geocoder-vs-provided-coords.ts` had already
126
+ * routed around it) and now reads a 2-tuple as GeoJSON [longitude, latitude], full stop.
127
+ *
128
+ * Retained as an explicit, opt-in escape hatch for a caller who knows their source is lat-first AND North American. If
129
+ * you know the axis order, use {@link orderCoordPairToGeoJSON}; if you do not, no function can tell you.
88
130
  *
131
+ * @deprecated Axis order is metadata, not something a magnitude can recover. Prefer `orderCoordPairToGeoJSON`.
89
132
  * @category GeoJSON
90
133
  * @category Position
91
134
  */
@@ -1,534 +0,0 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- */
6
-
7
- import type { CountryName } from "./names.ts"
8
-
9
- /**
10
- * @category Country
11
- * @title Country ISO 3166-1 Alpha-2 code
12
- * @public
13
- */
14
- export const CountryISO2 = {
15
- Afghanistan: "AF",
16
- Albania: "AL",
17
- Algeria: "DZ",
18
- "American Samoa": "AS",
19
- Andorra: "AD",
20
- Angola: "AO",
21
- Anguilla: "AI",
22
- Antarctica: "AQ",
23
- "Antigua and Barbuda": "AG",
24
- Argentina: "AR",
25
- Armenia: "AM",
26
- Aruba: "AW",
27
- Australia: "AU",
28
- Austria: "AT",
29
- Azerbaijan: "AZ",
30
- Bahamas: "BS",
31
- Bahrain: "BH",
32
- Bangladesh: "BD",
33
- Barbados: "BB",
34
- Belarus: "BY",
35
- Belgium: "BE",
36
- Belize: "BZ",
37
- Benin: "BJ",
38
- Bermuda: "BM",
39
- Bhutan: "BT",
40
- Bolivia: "BO",
41
- "Bonaire, Sint Eustatius and Saba": "BQ",
42
- "Bosnia and Herzegovina": "BA",
43
- Botswana: "BW",
44
- "Bouvet Island": "BV",
45
- Brazil: "BR",
46
- "British Indian Ocean Territory": "IO",
47
- "Brunei Darussalam": "BN",
48
- Bulgaria: "BG",
49
- "Burkina Faso": "BF",
50
- Burundi: "BI",
51
- Cambodia: "KH",
52
- Cameroon: "CM",
53
- Canada: "CA",
54
- "Cape Verde": "CV",
55
- "Cayman Islands": "KY",
56
- "Central African Republic": "CF",
57
- Chad: "TD",
58
- Chile: "CL",
59
- China: "CN",
60
- "Christmas Island": "CX",
61
- "Cocos (Keeling) Islands": "CC",
62
- Colombia: "CO",
63
- Comoros: "KM",
64
- Congo: "CG",
65
- "Congo, the Democratic Republic of the": "CD",
66
- "Cook Islands": "CK",
67
- "Costa Rica": "CR",
68
- "Cote DIvoire": "CI",
69
- Croatia: "HR",
70
- Cuba: "CU",
71
- Curaçao: "CW",
72
- Cyprus: "CY",
73
- "Czech Republic": "CZ",
74
- Denmark: "DK",
75
- Djibouti: "DJ",
76
- Dominica: "DM",
77
- "Dominican Republic": "DO",
78
- Ecuador: "EC",
79
- Egypt: "EG",
80
- "El Salvador": "SV",
81
- "Equatorial Guinea": "GQ",
82
- Eritrea: "ER",
83
- Estonia: "EE",
84
- Ethiopia: "ET",
85
- "Falkland Islands (Malvinas)": "FK",
86
- "Faroe Islands": "FO",
87
- Fiji: "FJ",
88
- Finland: "FI",
89
- France: "FR",
90
- "French Guiana": "GF",
91
- "French Polynesia": "PF",
92
- "French Southern Territories": "TF",
93
- Gabon: "GA",
94
- Gambia: "GM",
95
- Georgia: "GE",
96
- Germany: "DE",
97
- Ghana: "GH",
98
- Gibraltar: "GI",
99
- Greece: "GR",
100
- Greenland: "GL",
101
- Grenada: "GD",
102
- Guadeloupe: "GP",
103
- Guam: "GU",
104
- Guatemala: "GT",
105
- Guernsey: "GG",
106
- Guinea: "GN",
107
- "Guinea-Bissau": "GW",
108
- Guyana: "GY",
109
- Haiti: "HT",
110
- "Heard Island and Mcdonald Islands": "HM",
111
- "Holy See (Vatican City State)": "VA",
112
- Honduras: "HN",
113
- "Hong Kong": "HK",
114
- Hungary: "HU",
115
- Iceland: "IS",
116
- India: "IN",
117
- Indonesia: "ID",
118
- "Iran, Islamic Republic of": "IR",
119
- Iraq: "IQ",
120
- Ireland: "IE",
121
- "Isle of Man": "IM",
122
- Israel: "IL",
123
- Italy: "IT",
124
- Jamaica: "JM",
125
- Japan: "JP",
126
- Jersey: "JE",
127
- Jordan: "JO",
128
- Kazakhstan: "KZ",
129
- Kenya: "KE",
130
- Kiribati: "KI",
131
- "Korea, Democratic People's Republic of": "KP",
132
- "Korea, Republic of": "KR",
133
- Kuwait: "KW",
134
- Kyrgyzstan: "KG",
135
- "Lao People's Democratic Republic": "LA",
136
- Latvia: "LV",
137
- Lebanon: "LB",
138
- Lesotho: "LS",
139
- Liberia: "LR",
140
- Libya: "LY",
141
- Liechtenstein: "LI",
142
- Lithuania: "LT",
143
- Luxembourg: "LU",
144
- Macao: "MO",
145
- "Macedonia, the Former Yugoslav Republic of": "MK",
146
- Madagascar: "MG",
147
- Malawi: "MW",
148
- Malaysia: "MY",
149
- Maldives: "MV",
150
- Mali: "ML",
151
- Malta: "MT",
152
- "Marshall Islands": "MH",
153
- Martinique: "MQ",
154
- Mauritania: "MR",
155
- Mauritius: "MU",
156
- Mayotte: "YT",
157
- Mexico: "MX",
158
- "Micronesia, Federated States of": "FM",
159
- "Moldova, Republic of": "MD",
160
- Monaco: "MC",
161
- Mongolia: "MN",
162
- Montenegro: "ME",
163
- Montserrat: "MS",
164
- Morocco: "MA",
165
- Mozambique: "MZ",
166
- Myanmar: "MM",
167
- Namibia: "NA",
168
- Nauru: "NR",
169
- Nepal: "NP",
170
- Netherlands: "NL",
171
- "New Caledonia": "NC",
172
- "New Zealand": "NZ",
173
- Nicaragua: "NI",
174
- Niger: "NE",
175
- Nigeria: "NG",
176
- Niue: "NU",
177
- "Norfolk Island": "NF",
178
- "Northern Mariana Islands": "MP",
179
- Norway: "NO",
180
- Oman: "OM",
181
- Pakistan: "PK",
182
- Palau: "PW",
183
- "Palestine, State of": "PS",
184
- Panama: "PA",
185
- "Papua New Guinea": "PG",
186
- Paraguay: "PY",
187
- Peru: "PE",
188
- Philippines: "PH",
189
- Pitcairn: "PN",
190
- Poland: "PL",
191
- Portugal: "PT",
192
- "Puerto Rico": "PR",
193
- Qatar: "QA",
194
- Reunion: "RE",
195
- Romania: "RO",
196
- "Russian Federation": "RU",
197
- Rwanda: "RW",
198
- "Saint Barthélemy": "BL",
199
- "Saint Helena, Ascension and Tristan da Cunha": "SH",
200
- "Saint Kitts and Nevis": "KN",
201
- "Saint Lucia": "LC",
202
- "Saint Martin (French part)": "MF",
203
- "Saint Pierre and Miquelon": "PM",
204
- "Saint Vincent and the Grenadines": "VC",
205
- Samoa: "WS",
206
- "San Marino": "SM",
207
- "Sao Tome and Principe": "ST",
208
- "Saudi Arabia": "SA",
209
- Senegal: "SN",
210
- Serbia: "RS",
211
- Seychelles: "SC",
212
- "Sierra Leone": "SL",
213
- Singapore: "SG",
214
- "Sint Maarten (Dutch part)": "SX",
215
- Slovakia: "SK",
216
- Slovenia: "SI",
217
- "Solomon Islands": "SB",
218
- Somalia: "SO",
219
- "South Africa": "ZA",
220
- "South Georgia and the South Sandwich Islands": "GS",
221
- "South Sudan": "SS",
222
- Spain: "ES",
223
- "Sri Lanka": "LK",
224
- Sudan: "SD",
225
- Suriname: "SR",
226
- "Svalbard and Jan Mayen": "SJ",
227
- Swaziland: "SZ",
228
- Sweden: "SE",
229
- Switzerland: "CH",
230
- "Syrian Arab Republic": "SY",
231
- "Taiwan (Province of China)": "TW",
232
- Tajikistan: "TJ",
233
- "Tanzania, United Republic of": "TZ",
234
- Thailand: "TH",
235
- "Timor-Leste": "TL",
236
- Togo: "TG",
237
- Tokelau: "TK",
238
- Tonga: "TO",
239
- "Trinidad and Tobago": "TT",
240
- Tunisia: "TN",
241
- Turkey: "TR",
242
- Turkmenistan: "TM",
243
- "Turks and Caicos Islands": "TC",
244
- Tuvalu: "TV",
245
- Uganda: "UG",
246
- Ukraine: "UA",
247
- "United Arab Emirates": "AE",
248
- "United Kingdom": "GB",
249
- "United States": "US",
250
- "United States Minor Outlying Islands": "UM",
251
- Uruguay: "UY",
252
- Uzbekistan: "UZ",
253
- Vanuatu: "VU",
254
- Venezuela: "VE",
255
- "Viet Nam": "VN",
256
- "Virgin Islands (British)": "VG",
257
- "Virgin Islands (U.S.)": "VI",
258
- "Wallis and Futuna": "WF",
259
- "Western Sahara": "EH",
260
- Yemen: "YE",
261
- Zambia: "ZM",
262
- Zimbabwe: "ZW",
263
- "Åland Islands": "AX",
264
- } as const
265
-
266
- export type CountryISO2 = (typeof CountryISO2)[keyof typeof CountryISO2]
267
-
268
- /**
269
- * ISO 3166-1 alpha-3 country codes to country names.
270
- *
271
- * @internal
272
- * @title Country ISO 3166-1 Alpha-3 Code
273
- */
274
- export const Alpha3ToCountryRecord = {
275
- AFG: "Afghanistan",
276
- ALB: "Albania",
277
- DZA: "Algeria",
278
- ASM: "American Samoa",
279
- AND: "Andorra",
280
- AGO: "Angola",
281
- AIA: "Anguilla",
282
- ATA: "Antarctica",
283
- ATG: "Antigua and Barbuda",
284
- ARG: "Argentina",
285
- ARM: "Armenia",
286
- ABW: "Aruba",
287
- AUS: "Australia",
288
- AUT: "Austria",
289
- AZE: "Azerbaijan",
290
- BHS: "Bahamas",
291
- BHR: "Bahrain",
292
- BGD: "Bangladesh",
293
- BRB: "Barbados",
294
- BLR: "Belarus",
295
- BEL: "Belgium",
296
- BLZ: "Belize",
297
- BEN: "Benin",
298
- BMU: "Bermuda",
299
- BTN: "Bhutan",
300
- BOL: "Bolivia",
301
- BES: "Bonaire, Sint Eustatius and Saba",
302
- BIH: "Bosnia and Herzegovina",
303
- BWA: "Botswana",
304
- BVT: "Bouvet Island",
305
- BRA: "Brazil",
306
- IOT: "British Indian Ocean Territory",
307
- BRN: "Brunei Darussalam",
308
- BGR: "Bulgaria",
309
- BFA: "Burkina Faso",
310
- BDI: "Burundi",
311
- KHM: "Cambodia",
312
- CMR: "Cameroon",
313
- CAN: "Canada",
314
- CPV: "Cape Verde",
315
- CYM: "Cayman Islands",
316
- CAF: "Central African Republic",
317
- TCD: "Chad",
318
- CHL: "Chile",
319
- CHN: "China",
320
- CXR: "Christmas Island",
321
- CCK: "Cocos (Keeling) Islands",
322
- COL: "Colombia",
323
- COM: "Comoros",
324
- COG: "Congo",
325
- COD: "Congo, the Democratic Republic of the",
326
- COK: "Cook Islands",
327
- CRI: "Costa Rica",
328
- CIV: "Cote DIvoire",
329
- HRV: "Croatia",
330
- CUB: "Cuba",
331
- CUW: "Curaçao",
332
- CYP: "Cyprus",
333
- CZE: "Czech Republic",
334
- DNK: "Denmark",
335
- DJI: "Djibouti",
336
- DMA: "Dominica",
337
- DOM: "Dominican Republic",
338
- ECU: "Ecuador",
339
- EGY: "Egypt",
340
- SLV: "El Salvador",
341
- GNQ: "Equatorial Guinea",
342
- ERI: "Eritrea",
343
- EST: "Estonia",
344
- ETH: "Ethiopia",
345
- FLK: "Falkland Islands (Malvinas)",
346
- FRO: "Faroe Islands",
347
- FJI: "Fiji",
348
- FIN: "Finland",
349
- FRA: "France",
350
- GUF: "French Guiana",
351
- PYF: "French Polynesia",
352
- ATF: "French Southern Territories",
353
- GAB: "Gabon",
354
- GMB: "Gambia",
355
- GEO: "Georgia",
356
- DEU: "Germany",
357
- GHA: "Ghana",
358
- GIB: "Gibraltar",
359
- GRC: "Greece",
360
- GRL: "Greenland",
361
- GRD: "Grenada",
362
- GLP: "Guadeloupe",
363
- GUM: "Guam",
364
- GTM: "Guatemala",
365
- GGY: "Guernsey",
366
- GIN: "Guinea",
367
- GNB: "Guinea-Bissau",
368
- GUY: "Guyana",
369
- HTI: "Haiti",
370
- HMD: "Heard Island and Mcdonald Islands",
371
- VAT: "Holy See (Vatican City State)",
372
- HND: "Honduras",
373
- HKG: "Hong Kong",
374
- HUN: "Hungary",
375
- ISL: "Iceland",
376
- IND: "India",
377
- IDN: "Indonesia",
378
- IRN: "Iran, Islamic Republic of",
379
- IRQ: "Iraq",
380
- IRL: "Ireland",
381
- IMN: "Isle of Man",
382
- ISR: "Israel",
383
- ITA: "Italy",
384
- JAM: "Jamaica",
385
- JPN: "Japan",
386
- JEY: "Jersey",
387
- JOR: "Jordan",
388
- KAZ: "Kazakhstan",
389
- KEN: "Kenya",
390
- KIR: "Kiribati",
391
- PRK: "Korea, Democratic People's Republic of",
392
- KOR: "Korea, Republic of",
393
- KWT: "Kuwait",
394
- KGZ: "Kyrgyzstan",
395
- LAO: "Lao People's Democratic Republic",
396
- LVA: "Latvia",
397
- LBN: "Lebanon",
398
- LSO: "Lesotho",
399
- LBR: "Liberia",
400
- LBY: "Libya",
401
- LIE: "Liechtenstein",
402
- LTU: "Lithuania",
403
- LUX: "Luxembourg",
404
- MAC: "Macao",
405
- MKD: "Macedonia, the Former Yugoslav Republic of",
406
- MDG: "Madagascar",
407
- MWI: "Malawi",
408
- MYS: "Malaysia",
409
- MDV: "Maldives",
410
- MLI: "Mali",
411
- MLT: "Malta",
412
- MHL: "Marshall Islands",
413
- MTQ: "Martinique",
414
- MRT: "Mauritania",
415
- MUS: "Mauritius",
416
- MYT: "Mayotte",
417
- MEX: "Mexico",
418
- FSM: "Micronesia, Federated States of",
419
- MDA: "Moldova, Republic of",
420
- MCO: "Monaco",
421
- MNG: "Mongolia",
422
- MNE: "Montenegro",
423
- MSR: "Montserrat",
424
- MAR: "Morocco",
425
- MOZ: "Mozambique",
426
- MMR: "Myanmar",
427
- NAM: "Namibia",
428
- NRU: "Nauru",
429
- NPL: "Nepal",
430
- NLD: "Netherlands",
431
- NCL: "New Caledonia",
432
- NZL: "New Zealand",
433
- NIC: "Nicaragua",
434
- NER: "Niger",
435
- NGA: "Nigeria",
436
- NIU: "Niue",
437
- NFK: "Norfolk Island",
438
- MNP: "Northern Mariana Islands",
439
- NOR: "Norway",
440
- OMN: "Oman",
441
- PAK: "Pakistan",
442
- PLW: "Palau",
443
- PSE: "Palestine, State of",
444
- PAN: "Panama",
445
- PNG: "Papua New Guinea",
446
- PRY: "Paraguay",
447
- PER: "Peru",
448
- PHL: "Philippines",
449
- PCN: "Pitcairn",
450
- POL: "Poland",
451
- PRT: "Portugal",
452
- PRI: "Puerto Rico",
453
- QAT: "Qatar",
454
- REU: "Reunion",
455
- ROM: "Romania",
456
- RUS: "Russian Federation",
457
- RWA: "Rwanda",
458
- BLM: "Saint Barthélemy",
459
- SHN: "Saint Helena, Ascension and Tristan da Cunha",
460
- KNA: "Saint Kitts and Nevis",
461
- LCA: "Saint Lucia",
462
- MAF: "Saint Martin (French part)",
463
- SPM: "Saint Pierre and Miquelon",
464
- VCT: "Saint Vincent and the Grenadines",
465
- WSM: "Samoa",
466
- SMR: "San Marino",
467
- STP: "Sao Tome and Principe",
468
- SAU: "Saudi Arabia",
469
- SEN: "Senegal",
470
- SRB: "Serbia",
471
- SYC: "Seychelles",
472
- SLE: "Sierra Leone",
473
- SGP: "Singapore",
474
- SXM: "Sint Maarten (Dutch part)",
475
- SVK: "Slovakia",
476
- SVN: "Slovenia",
477
- SLB: "Solomon Islands",
478
- SOM: "Somalia",
479
- ZAF: "South Africa",
480
- SGS: "South Georgia and the South Sandwich Islands",
481
- SSD: "South Sudan",
482
- ESP: "Spain",
483
- LKA: "Sri Lanka",
484
- SDN: "Sudan",
485
- SUR: "Suriname",
486
- SJM: "Svalbard and Jan Mayen",
487
- SWZ: "Swaziland",
488
- SWE: "Sweden",
489
- CHE: "Switzerland",
490
- SYR: "Syrian Arab Republic",
491
- TWN: "Taiwan (Province of China)",
492
- TJK: "Tajikistan",
493
- TZA: "Tanzania, United Republic of",
494
- THA: "Thailand",
495
- TLS: "Timor-Leste",
496
- TGO: "Togo",
497
- TKL: "Tokelau",
498
- TON: "Tonga",
499
- TTO: "Trinidad and Tobago",
500
- TUN: "Tunisia",
501
- TUR: "Turkey",
502
- TKM: "Turkmenistan",
503
- TCA: "Turks and Caicos Islands",
504
- TUV: "Tuvalu",
505
- UGA: "Uganda",
506
- UKR: "Ukraine",
507
- ARE: "United Arab Emirates",
508
- GBR: "United Kingdom",
509
- USA: "United States",
510
- UMI: "United States Minor Outlying Islands",
511
- URY: "Uruguay",
512
- UZB: "Uzbekistan",
513
- VUT: "Vanuatu",
514
- VEN: "Venezuela",
515
- VNM: "Viet Nam",
516
- VGB: "Virgin Islands (British)",
517
- VIR: "Virgin Islands (U.S.)",
518
- WLF: "Wallis and Futuna",
519
- ESH: "Western Sahara",
520
- YEM: "Yemen",
521
- ZMB: "Zambia",
522
- ZWE: "Zimbabwe",
523
- ALA: "Åland Islands",
524
- } as const satisfies Record<string, CountryName>
525
-
526
- /**
527
- * ISO 3166-1 alpha-3 country code.
528
- *
529
- * @category Geographic
530
- * @category Country
531
- * @title Country ISO 3166-1 Alpha-3 Code
532
- * @public
533
- */
534
- export type CountryISO3 = keyof typeof Alpha3ToCountryRecord
@@ -1,8 +0,0 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- */
6
-
7
- export * from "./codes.ts"
8
- export * from "./names.ts"