@mailwoman/spatial 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/bbox.ts +3 -3
- package/coordinate-formats.test.ts +1 -1
- package/countries/codes.ts +255 -252
- package/countries/index.ts +2 -2
- package/feature.ts +1 -1
- package/geometries/collection.ts +4 -4
- package/geometries/index.ts +4 -4
- package/geometries/line-string.ts +2 -2
- package/geometries/point.ts +4 -4
- package/geometries/polygon.test.ts +1 -1
- package/geometries/polygon.ts +21 -19
- package/google/index.ts +1 -1
- package/h3/index.ts +1 -1
- package/index.ts +11 -11
- package/objects.ts +1 -1
- package/out/bbox.d.ts +2 -2
- package/out/countries/codes.d.ts +252 -251
- package/out/countries/codes.d.ts.map +1 -1
- package/out/countries/codes.js +251 -252
- package/out/countries/codes.js.map +1 -1
- package/out/countries/index.d.ts +2 -2
- package/out/feature.d.ts +1 -1
- package/out/geometries/collection.d.ts +4 -4
- package/out/geometries/index.d.ts +4 -4
- package/out/geometries/line-string.d.ts +2 -2
- package/out/geometries/point.d.ts +5 -5
- package/out/geometries/polygon.d.ts +20 -19
- package/out/geometries/polygon.d.ts.map +1 -1
- package/out/geometries/polygon.js +17 -18
- package/out/geometries/polygon.js.map +1 -1
- package/out/google/index.d.ts +1 -1
- package/out/h3/index.d.ts +1 -1
- package/out/index.d.ts +11 -11
- package/out/objects.d.ts +1 -1
- package/out/projection.d.ts +5 -4
- package/out/projection.d.ts.map +1 -1
- package/out/projection.js +4 -5
- package/out/projection.js.map +1 -1
- package/out/regions/index.d.ts +2 -2
- package/out/sdk/index.d.ts +1 -1
- package/out/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -5
- package/projection.ts +6 -4
- package/regions/codes.ts +1 -1
- package/regions/index.ts +2 -2
- package/sdk/index.ts +1 -1
- package/sdk/well-known-text.test.ts +1 -1
- package/tsconfig.json +2 -1
package/geometries/polygon.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { ResourceError } from "@mailwoman/core/errors"
|
|
8
8
|
|
|
9
|
-
import type { GeoObjectLiteral } from "../objects.
|
|
10
|
-
import type { LineStringPath } from "./line-string.
|
|
9
|
+
import type { GeoObjectLiteral } from "../objects.ts"
|
|
10
|
+
import type { LineStringPath } from "./line-string.ts"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* An array of positions forming a closed shape, such as a country or a lake.
|
|
@@ -156,23 +156,25 @@ export function polygonToOSMFilter(input: PolygonLiteral): string {
|
|
|
156
156
|
*
|
|
157
157
|
* @category OSM
|
|
158
158
|
*/
|
|
159
|
-
export
|
|
160
|
-
HouseNumber
|
|
161
|
-
PostCode
|
|
162
|
-
Street
|
|
163
|
-
State
|
|
164
|
-
City
|
|
165
|
-
Website
|
|
166
|
-
Email
|
|
167
|
-
Phone
|
|
168
|
-
Shop
|
|
169
|
-
Brand
|
|
170
|
-
Cuisine
|
|
171
|
-
Name
|
|
172
|
-
Healthcare
|
|
173
|
-
Office
|
|
174
|
-
Amenity
|
|
175
|
-
}
|
|
159
|
+
export const OSMNodeTag = {
|
|
160
|
+
HouseNumber: "addr:housenumber",
|
|
161
|
+
PostCode: "addr:postcode",
|
|
162
|
+
Street: "addr:street",
|
|
163
|
+
State: "addr:state",
|
|
164
|
+
City: "addr:city",
|
|
165
|
+
Website: "website",
|
|
166
|
+
Email: "email",
|
|
167
|
+
Phone: "phone",
|
|
168
|
+
Shop: "shop",
|
|
169
|
+
Brand: "brand",
|
|
170
|
+
Cuisine: "cuisine",
|
|
171
|
+
Name: "name",
|
|
172
|
+
Healthcare: "healthcare",
|
|
173
|
+
Office: "office",
|
|
174
|
+
Amenity: "amenity",
|
|
175
|
+
} as const
|
|
176
|
+
|
|
177
|
+
export type OSMNodeTag = (typeof OSMNodeTag)[keyof typeof OSMNodeTag]
|
|
176
178
|
|
|
177
179
|
export const ForbiddenResidentialOSMNodeTags: ReadonlySet<OSMNodeTag> = new Set<OSMNodeTag>([
|
|
178
180
|
OSMNodeTag.Shop,
|
package/google/index.ts
CHANGED
package/h3/index.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { cellToLatLng } from "h3-js"
|
|
8
8
|
import type { Tagged } from "type-fest"
|
|
9
9
|
|
|
10
|
-
import { GeoPoint, type PointLiteral } from "../geometries/point.
|
|
10
|
+
import { GeoPoint, type PointLiteral } from "../geometries/point.ts"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A H3 cell index, full 64 bits.
|
package/index.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export * from "./bbox.
|
|
8
|
-
export * from "./coordinate-formats.
|
|
9
|
-
export * from "./countries/index.
|
|
10
|
-
export * from "./feature.
|
|
11
|
-
export * from "./geometries/index.
|
|
12
|
-
export * from "./google/index.
|
|
13
|
-
export * from "./h3/index.
|
|
14
|
-
export * from "./objects.
|
|
15
|
-
export * from "./position.
|
|
16
|
-
export * from "./projection.
|
|
17
|
-
export * from "./regions/index.
|
|
7
|
+
export * from "./bbox.ts"
|
|
8
|
+
export * from "./coordinate-formats.ts"
|
|
9
|
+
export * from "./countries/index.ts"
|
|
10
|
+
export * from "./feature.ts"
|
|
11
|
+
export * from "./geometries/index.ts"
|
|
12
|
+
export * from "./google/index.ts"
|
|
13
|
+
export * from "./h3/index.ts"
|
|
14
|
+
export * from "./objects.ts"
|
|
15
|
+
export * from "./position.ts"
|
|
16
|
+
export * from "./projection.ts"
|
|
17
|
+
export * from "./regions/index.ts"
|
package/objects.ts
CHANGED
package/out/bbox.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* GeoJSON Bounding Boxes
|
|
7
7
|
*/
|
|
8
|
-
import type { PolygonLiteral } from "./geometries/polygon.
|
|
9
|
-
import { CoordinateProjection } from "./projection.
|
|
8
|
+
import type { PolygonLiteral } from "./geometries/polygon.ts";
|
|
9
|
+
import { CoordinateProjection } from "./projection.ts";
|
|
10
10
|
/**
|
|
11
11
|
* A 2-dimensional rectangular area that can be determined by two longitudes and two latitudes.
|
|
12
12
|
*
|