@mailwoman/spatial 5.9.0 → 5.10.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 (48) hide show
  1. package/bbox.ts +3 -3
  2. package/coordinate-formats.test.ts +1 -1
  3. package/countries/codes.ts +255 -252
  4. package/countries/index.ts +2 -2
  5. package/feature.ts +1 -1
  6. package/geometries/collection.ts +4 -4
  7. package/geometries/index.ts +4 -4
  8. package/geometries/line-string.ts +2 -2
  9. package/geometries/point.ts +4 -4
  10. package/geometries/polygon.test.ts +1 -1
  11. package/geometries/polygon.ts +21 -19
  12. package/google/index.ts +1 -1
  13. package/h3/index.ts +1 -1
  14. package/index.ts +11 -11
  15. package/objects.ts +1 -1
  16. package/out/bbox.d.ts +2 -2
  17. package/out/countries/codes.d.ts +252 -251
  18. package/out/countries/codes.d.ts.map +1 -1
  19. package/out/countries/codes.js +251 -252
  20. package/out/countries/codes.js.map +1 -1
  21. package/out/countries/index.d.ts +2 -2
  22. package/out/feature.d.ts +1 -1
  23. package/out/geometries/collection.d.ts +4 -4
  24. package/out/geometries/index.d.ts +4 -4
  25. package/out/geometries/line-string.d.ts +2 -2
  26. package/out/geometries/point.d.ts +5 -5
  27. package/out/geometries/polygon.d.ts +20 -19
  28. package/out/geometries/polygon.d.ts.map +1 -1
  29. package/out/geometries/polygon.js +17 -18
  30. package/out/geometries/polygon.js.map +1 -1
  31. package/out/google/index.d.ts +1 -1
  32. package/out/h3/index.d.ts +1 -1
  33. package/out/index.d.ts +11 -11
  34. package/out/objects.d.ts +1 -1
  35. package/out/projection.d.ts +5 -4
  36. package/out/projection.d.ts.map +1 -1
  37. package/out/projection.js +4 -5
  38. package/out/projection.js.map +1 -1
  39. package/out/regions/index.d.ts +2 -2
  40. package/out/sdk/index.d.ts +1 -1
  41. package/out/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +23 -5
  43. package/projection.ts +6 -4
  44. package/regions/codes.ts +1 -1
  45. package/regions/index.ts +2 -2
  46. package/sdk/index.ts +1 -1
  47. package/sdk/well-known-text.test.ts +1 -1
  48. package/tsconfig.json +2 -1
package/bbox.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  * GeoJSON Bounding Boxes
7
7
  */
8
8
 
9
- import type { PolygonLiteral, SolidPolygonPath } from "./geometries/polygon.js"
10
- import { clampLatitude, wrapLongitude } from "./position.js"
11
- import { CoordinateProjection } from "./projection.js"
9
+ import type { PolygonLiteral, SolidPolygonPath } from "./geometries/polygon.ts"
10
+ import { clampLatitude, wrapLongitude } from "./position.ts"
11
+ import { CoordinateProjection } from "./projection.ts"
12
12
 
13
13
  //#region Bounding Box Literals
14
14
 
@@ -15,7 +15,7 @@ import {
15
15
  toMaidenhead,
16
16
  toMercator,
17
17
  toMGRS,
18
- } from "./coordinate-formats.js"
18
+ } from "./coordinate-formats.ts"
19
19
 
20
20
  // The White House (38.8977, -77.0365) — reference values cross-checked against published converters.
21
21
  const LAT = 38.8977
@@ -4,264 +4,267 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- import type { CountryName } from "./names.js"
7
+ import type { CountryName } from "./names.ts"
8
8
 
9
9
  /**
10
10
  * @category Country
11
11
  * @title Country ISO 3166-1 Alpha-2 code
12
12
  * @public
13
13
  */
14
- export enum 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
- }
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
+
265
268
  /**
266
269
  * ISO 3166-1 alpha-3 country codes to country names.
267
270
  *
@@ -4,5 +4,5 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- export * from "./codes.js"
8
- export * from "./names.js"
7
+ export * from "./codes.ts"
8
+ export * from "./names.ts"
package/feature.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  /* eslint-disable @typescript-eslint/no-explicit-any */
8
- import { type GeometryLiteral } from "./geometries/index.js"
8
+ import { type GeometryLiteral } from "./geometries/index.ts"
9
9
 
10
10
  export interface IdentifiableGeoFeature {
11
11
  GEOID: string | number
@@ -6,10 +6,10 @@
6
6
  * GeoJSON Geometry Collection
7
7
  */
8
8
 
9
- import type { GeoObjectLiteral } from "../objects.js"
10
- import type { LineStringLiteral, MultiLineStringLiteral } from "./line-string.js"
11
- import type { MultiPointLiteral, PointLiteral } from "./point.js"
12
- import type { MultiPolygonLiteral, PolygonLiteral } from "./polygon.js"
9
+ import type { GeoObjectLiteral } from "../objects.ts"
10
+ import type { LineStringLiteral, MultiLineStringLiteral } from "./line-string.ts"
11
+ import type { MultiPointLiteral, PointLiteral } from "./point.ts"
12
+ import type { MultiPolygonLiteral, PolygonLiteral } from "./polygon.ts"
13
13
 
14
14
  /**
15
15
  * Union of the GeoJSON geometry types.
@@ -6,7 +6,7 @@
6
6
  * GeoJSON Geometry Entry Point
7
7
  */
8
8
 
9
- export * from "./collection.js"
10
- export * from "./line-string.js"
11
- export * from "./point.js"
12
- export * from "./polygon.js"
9
+ export * from "./collection.ts"
10
+ export * from "./line-string.ts"
11
+ export * from "./point.ts"
12
+ export * from "./polygon.ts"
@@ -6,8 +6,8 @@
6
6
  * GeoJSON Line String
7
7
  */
8
8
 
9
- import type { GeoObjectLiteral } from "../objects.js"
10
- import type { Coordinates2D, Coordinates3D } from "../position.js"
9
+ import type { GeoObjectLiteral } from "../objects.ts"
10
+ import type { Coordinates2D, Coordinates3D } from "../position.ts"
11
11
 
12
12
  /**
13
13
  * An array of positions forming a line, such as a road or a path.
@@ -10,9 +10,9 @@ import { tryParsingJSON } from "@mailwoman/core/objects"
10
10
  import { convert as convertCoords } from "geo-coordinates-parser"
11
11
  import { latLngToCell } from "h3-js"
12
12
 
13
- import { type BBox2DLiteral, type BBox3DLiteral, GeoBoundingBox, isBBox } from "../bbox.js"
14
- import { type H3Cell, shortenH3Cell } from "../h3/index.js"
15
- import { type GeoObjectLiteral, GeometryType } from "../objects.js"
13
+ import { type BBox2DLiteral, type BBox3DLiteral, GeoBoundingBox, isBBox } from "../bbox.ts"
14
+ import { type H3Cell, shortenH3Cell } from "../h3/index.ts"
15
+ import { type GeoObjectLiteral, GeometryType } from "../objects.ts"
16
16
  import {
17
17
  type InternalPointCoordinates,
18
18
  type Coordinates2D as Point2DCoordinates,
@@ -23,7 +23,7 @@ import {
23
23
  isGoogleMapsLatLngLiteral,
24
24
  isInterpolatedCoordinates,
25
25
  wrapLongitude,
26
- } from "../position.js"
26
+ } from "../position.ts"
27
27
 
28
28
  /**
29
29
  * A JSON-serializeable single point geometry, such as a specific location, address, or longitude, latitude pair.
@@ -13,7 +13,7 @@ import {
13
13
  polygonToOSMFilter,
14
14
  type OSMOverpassElement,
15
15
  type PolygonLiteral,
16
- } from "./polygon.js"
16
+ } from "./polygon.ts"
17
17
 
18
18
  const SOLID: PolygonLiteral = {
19
19
  type: "Polygon",