@mailwoman/spatial 9.2.0 → 9.4.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.
- package/{bbox.ts → lib/bbox.ts} +4 -4
- package/{coordinate-bounds.ts → lib/coordinate-bounds.ts} +11 -0
- package/{coordinate-formats.ts → lib/coordinate-formats.ts} +3 -1
- package/lib/distance.ts +204 -0
- package/{feature.ts → lib/feature.ts} +1 -1
- package/{geometries → lib/geometries}/collection.ts +4 -4
- package/lib/geometries/index.ts +13 -0
- package/{geometries → lib/geometries}/line-string.ts +4 -4
- package/{geometries → lib/geometries}/point.ts +14 -13
- package/{geometries → lib/geometries}/polygon.ts +82 -158
- package/lib/geometries/ring-blob.ts +521 -0
- package/{google → lib/google}/index.ts +1 -1
- package/{h3 → lib/h3}/cell.ts +83 -1
- package/lib/h3/coverage.ts +45 -0
- package/{h3 → lib/h3}/index.ts +5 -3
- package/lib/h3/interior-cells.ts +138 -0
- package/lib/h3/polygon-cells.ts +462 -0
- package/lib/index.ts +21 -0
- package/{objects.ts → lib/objects.ts} +1 -1
- package/{open-location-code.ts → lib/open-location-code.ts} +1 -1
- package/{osgb36.ts → lib/osgb36.ts} +2 -2
- package/{polyline.ts → lib/polyline.ts} +5 -5
- package/{position.ts → lib/position.ts} +2 -2
- package/lib/projection-transform.ts +115 -0
- package/{regions → lib/regions}/codes.ts +1 -1
- package/{regions → lib/regions}/index.ts +2 -2
- package/lib/tools/ogr-stream.ts +99 -0
- package/lib/tools/ogr.ts +201 -0
- package/out/bbox.d.ts +2 -2
- package/out/bbox.d.ts.map +1 -1
- package/out/bbox.js +3 -3
- package/out/bbox.js.map +1 -1
- package/out/coordinate-bounds.d.ts +9 -0
- package/out/coordinate-bounds.d.ts.map +1 -1
- package/out/coordinate-bounds.js +9 -0
- package/out/coordinate-bounds.js.map +1 -1
- package/out/coordinate-formats.d.ts.map +1 -1
- package/out/coordinate-formats.js +2 -1
- package/out/coordinate-formats.js.map +1 -1
- package/out/distance.d.ts +64 -1
- package/out/distance.d.ts.map +1 -1
- package/out/distance.js +85 -1
- package/out/distance.js.map +1 -1
- package/out/feature.d.ts +1 -1
- package/out/feature.d.ts.map +1 -1
- package/out/feature.js.map +1 -1
- package/out/geometries/collection.d.ts +4 -4
- package/out/geometries/collection.d.ts.map +1 -1
- package/out/geometries/collection.js.map +1 -1
- package/out/geometries/index.d.ts +5 -4
- package/out/geometries/index.d.ts.map +1 -1
- package/out/geometries/index.js +5 -4
- package/out/geometries/index.js.map +1 -1
- package/out/geometries/line-string.d.ts +4 -4
- package/out/geometries/line-string.d.ts.map +1 -1
- package/out/geometries/line-string.js.map +1 -1
- package/out/geometries/point.d.ts +14 -13
- package/out/geometries/point.d.ts.map +1 -1
- package/out/geometries/point.js +11 -10
- package/out/geometries/point.js.map +1 -1
- package/out/geometries/polygon.d.ts +51 -100
- package/out/geometries/polygon.d.ts.map +1 -1
- package/out/geometries/polygon.js +60 -90
- package/out/geometries/polygon.js.map +1 -1
- package/out/geometries/ring-blob.d.ts +183 -0
- package/out/geometries/ring-blob.d.ts.map +1 -0
- package/out/geometries/ring-blob.js +376 -0
- package/out/geometries/ring-blob.js.map +1 -0
- package/out/google/index.d.ts +1 -1
- package/out/google/index.d.ts.map +1 -1
- package/out/google/index.js +1 -1
- package/out/google/index.js.map +1 -1
- package/out/google/place-id.d.ts.map +1 -1
- package/out/google/place-id.js.map +1 -1
- package/out/h3/cell.d.ts +32 -0
- package/out/h3/cell.d.ts.map +1 -1
- package/out/h3/cell.js +68 -1
- package/out/h3/cell.js.map +1 -1
- package/out/h3/coverage.d.ts +32 -0
- package/out/h3/coverage.d.ts.map +1 -0
- package/out/h3/coverage.js +27 -0
- package/out/h3/coverage.js.map +1 -0
- package/out/h3/index.d.ts +5 -3
- package/out/h3/index.d.ts.map +1 -1
- package/out/h3/index.js +5 -3
- package/out/h3/index.js.map +1 -1
- package/out/h3/interior-cells.d.ts +54 -0
- package/out/h3/interior-cells.d.ts.map +1 -0
- package/out/h3/interior-cells.js +111 -0
- package/out/h3/interior-cells.js.map +1 -0
- package/out/h3/polygon-cells.d.ts +182 -0
- package/out/h3/polygon-cells.d.ts.map +1 -0
- package/out/h3/polygon-cells.js +339 -0
- package/out/h3/polygon-cells.js.map +1 -0
- package/out/index.d.ts +15 -15
- package/out/index.d.ts.map +1 -1
- package/out/index.js +15 -15
- package/out/index.js.map +1 -1
- package/out/objects.d.ts +1 -1
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +1 -1
- package/out/objects.js.map +1 -1
- package/out/open-location-code.d.ts.map +1 -1
- package/out/open-location-code.js +1 -1
- package/out/open-location-code.js.map +1 -1
- package/out/osgb36.d.ts +2 -2
- package/out/osgb36.d.ts.map +1 -1
- package/out/osgb36.js +1 -1
- package/out/osgb36.js.map +1 -1
- package/out/polyline.d.ts +4 -4
- package/out/polyline.d.ts.map +1 -1
- package/out/polyline.js +5 -5
- package/out/polyline.js.map +1 -1
- package/out/position.d.ts +1 -1
- package/out/position.d.ts.map +1 -1
- package/out/position.js +2 -2
- package/out/position.js.map +1 -1
- package/out/projection-transform.d.ts +67 -0
- package/out/projection-transform.d.ts.map +1 -0
- package/out/projection-transform.js +48 -0
- package/out/projection-transform.js.map +1 -0
- package/out/projection.d.ts.map +1 -1
- package/out/projection.js.map +1 -1
- package/out/regions/codes.d.ts.map +1 -1
- package/out/regions/codes.js.map +1 -1
- package/out/regions/index.d.ts +2 -2
- package/out/regions/index.d.ts.map +1 -1
- package/out/regions/index.js +2 -2
- package/out/regions/index.js.map +1 -1
- package/out/regions/names.d.ts.map +1 -1
- package/out/regions/names.js.map +1 -1
- package/out/tools/ogr-stream.d.ts +34 -0
- package/out/tools/ogr-stream.d.ts.map +1 -0
- package/out/tools/ogr-stream.js +74 -0
- package/out/tools/ogr-stream.js.map +1 -0
- package/out/tools/ogr.d.ts +87 -0
- package/out/tools/ogr.d.ts.map +1 -0
- package/out/tools/ogr.js +84 -0
- package/out/tools/ogr.js.map +1 -0
- package/out/tsconfig.test.tsbuildinfo +1 -1
- package/out/well-known-text.d.ts.map +1 -0
- package/out/well-known-text.js.map +1 -0
- package/package.json +94 -25
- package/distance.ts +0 -84
- package/geometries/index.ts +0 -12
- package/index.ts +0 -21
- package/out/sdk/index.d.ts +0 -7
- package/out/sdk/index.d.ts.map +0 -1
- package/out/sdk/index.js +0 -7
- package/out/sdk/index.js.map +0 -1
- package/out/sdk/well-known-text.d.ts.map +0 -1
- package/out/sdk/well-known-text.js.map +0 -1
- package/out/tsconfig.tsbuildinfo +0 -1
- package/sdk/index.ts +0 -7
- /package/{google → lib/google}/place-id.ts +0 -0
- /package/{projection.ts → lib/projection.ts} +0 -0
- /package/{regions → lib/regions}/names.ts +0 -0
- /package/{sdk → lib}/well-known-text.ts +0 -0
- /package/out/{sdk/well-known-text.d.ts → well-known-text.d.ts} +0 -0
- /package/out/{sdk/well-known-text.js → well-known-text.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/spatial",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Spatial analysis, geocoding, and other geo-related utilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"geo",
|
|
@@ -32,45 +32,80 @@
|
|
|
32
32
|
"!test/**"
|
|
33
33
|
],
|
|
34
34
|
"type": "module",
|
|
35
|
+
"sideEffects": false,
|
|
35
36
|
"imports": {
|
|
36
|
-
"
|
|
37
|
-
"types": "./out
|
|
38
|
-
"
|
|
37
|
+
"#*": {
|
|
38
|
+
"types": "./out/*.d.ts",
|
|
39
|
+
"node": "./out/*.js",
|
|
40
|
+
"default": "./out/*.js"
|
|
39
41
|
}
|
|
40
42
|
},
|
|
41
43
|
"exports": {
|
|
42
44
|
"./package.json": "./package.json",
|
|
43
45
|
"./coordinate-bounds": {
|
|
44
46
|
"types": "./out/coordinate-bounds.d.ts",
|
|
47
|
+
"node": "./out/coordinate-bounds.js",
|
|
45
48
|
"default": "./out/coordinate-bounds.js"
|
|
46
49
|
},
|
|
47
|
-
"./sdk": {
|
|
48
|
-
"types": "./out/sdk/index.d.ts",
|
|
49
|
-
"default": "./out/sdk/index.js"
|
|
50
|
-
},
|
|
51
50
|
".": {
|
|
52
51
|
"types": "./out/index.d.ts",
|
|
52
|
+
"node": "./out/index.js",
|
|
53
53
|
"default": "./out/index.js"
|
|
54
54
|
},
|
|
55
55
|
"./coordinate-formats": {
|
|
56
56
|
"types": "./out/coordinate-formats.d.ts",
|
|
57
|
+
"node": "./out/coordinate-formats.js",
|
|
57
58
|
"default": "./out/coordinate-formats.js"
|
|
58
59
|
},
|
|
59
60
|
"./open-location-code": {
|
|
60
61
|
"types": "./out/open-location-code.d.ts",
|
|
62
|
+
"node": "./out/open-location-code.js",
|
|
61
63
|
"default": "./out/open-location-code.js"
|
|
62
64
|
},
|
|
63
65
|
"./geometries/polygon": {
|
|
64
66
|
"types": "./out/geometries/polygon.d.ts",
|
|
67
|
+
"node": "./out/geometries/polygon.js",
|
|
65
68
|
"default": "./out/geometries/polygon.js"
|
|
66
69
|
},
|
|
67
70
|
"./h3/cell": {
|
|
68
71
|
"types": "./out/h3/cell.d.ts",
|
|
72
|
+
"node": "./out/h3/cell.js",
|
|
69
73
|
"default": "./out/h3/cell.js"
|
|
70
74
|
},
|
|
71
|
-
"./
|
|
72
|
-
"types": "./out/
|
|
73
|
-
"
|
|
75
|
+
"./h3/polygon-cells": {
|
|
76
|
+
"types": "./out/h3/polygon-cells.d.ts",
|
|
77
|
+
"node": "./out/h3/polygon-cells.js",
|
|
78
|
+
"default": "./out/h3/polygon-cells.js"
|
|
79
|
+
},
|
|
80
|
+
"./geometries/ring-blob": {
|
|
81
|
+
"types": "./out/geometries/ring-blob.d.ts",
|
|
82
|
+
"node": "./out/geometries/ring-blob.js",
|
|
83
|
+
"default": "./out/geometries/ring-blob.js"
|
|
84
|
+
},
|
|
85
|
+
"./projection-transform": {
|
|
86
|
+
"types": "./out/projection-transform.d.ts",
|
|
87
|
+
"node": "./out/projection-transform.js",
|
|
88
|
+
"default": "./out/projection-transform.js"
|
|
89
|
+
},
|
|
90
|
+
"./well-known-text": {
|
|
91
|
+
"types": "./out/well-known-text.d.ts",
|
|
92
|
+
"node": "./out/well-known-text.js",
|
|
93
|
+
"default": "./out/well-known-text.js"
|
|
94
|
+
},
|
|
95
|
+
"./tools/ogr": {
|
|
96
|
+
"types": "./out/tools/ogr.d.ts",
|
|
97
|
+
"node": "./out/tools/ogr.js",
|
|
98
|
+
"default": "./out/tools/ogr.js"
|
|
99
|
+
},
|
|
100
|
+
"./h3/coverage": {
|
|
101
|
+
"types": "./out/h3/coverage.d.ts",
|
|
102
|
+
"node": "./out/h3/coverage.js",
|
|
103
|
+
"default": "./out/h3/coverage.js"
|
|
104
|
+
},
|
|
105
|
+
"./tools/ogr-stream": {
|
|
106
|
+
"types": "./out/tools/ogr-stream.d.ts",
|
|
107
|
+
"node": "./out/tools/ogr-stream.js",
|
|
108
|
+
"default": "./out/tools/ogr-stream.js"
|
|
74
109
|
}
|
|
75
110
|
},
|
|
76
111
|
"publishConfig": {
|
|
@@ -79,58 +114,92 @@
|
|
|
79
114
|
"./package.json": "./package.json",
|
|
80
115
|
"./coordinate-bounds": {
|
|
81
116
|
"types": "./out/coordinate-bounds.d.ts",
|
|
117
|
+
"node": "./out/coordinate-bounds.js",
|
|
82
118
|
"default": "./out/coordinate-bounds.js"
|
|
83
119
|
},
|
|
84
|
-
"./sdk": {
|
|
85
|
-
"types": "./out/sdk/index.d.ts",
|
|
86
|
-
"default": "./out/sdk/index.js"
|
|
87
|
-
},
|
|
88
120
|
".": {
|
|
89
121
|
"types": "./out/index.d.ts",
|
|
122
|
+
"node": "./out/index.js",
|
|
90
123
|
"default": "./out/index.js"
|
|
91
124
|
},
|
|
92
125
|
"./coordinate-formats": {
|
|
93
126
|
"types": "./out/coordinate-formats.d.ts",
|
|
127
|
+
"node": "./out/coordinate-formats.js",
|
|
94
128
|
"default": "./out/coordinate-formats.js"
|
|
95
129
|
},
|
|
96
130
|
"./open-location-code": {
|
|
97
131
|
"types": "./out/open-location-code.d.ts",
|
|
132
|
+
"node": "./out/open-location-code.js",
|
|
98
133
|
"default": "./out/open-location-code.js"
|
|
99
134
|
},
|
|
100
135
|
"./geometries/polygon": {
|
|
101
136
|
"types": "./out/geometries/polygon.d.ts",
|
|
137
|
+
"node": "./out/geometries/polygon.js",
|
|
102
138
|
"default": "./out/geometries/polygon.js"
|
|
103
139
|
},
|
|
104
140
|
"./h3/cell": {
|
|
105
141
|
"types": "./out/h3/cell.d.ts",
|
|
142
|
+
"node": "./out/h3/cell.js",
|
|
106
143
|
"default": "./out/h3/cell.js"
|
|
107
144
|
},
|
|
108
|
-
"./
|
|
109
|
-
"types": "./out/
|
|
110
|
-
"
|
|
145
|
+
"./h3/polygon-cells": {
|
|
146
|
+
"types": "./out/h3/polygon-cells.d.ts",
|
|
147
|
+
"node": "./out/h3/polygon-cells.js",
|
|
148
|
+
"default": "./out/h3/polygon-cells.js"
|
|
149
|
+
},
|
|
150
|
+
"./geometries/ring-blob": {
|
|
151
|
+
"types": "./out/geometries/ring-blob.d.ts",
|
|
152
|
+
"node": "./out/geometries/ring-blob.js",
|
|
153
|
+
"default": "./out/geometries/ring-blob.js"
|
|
154
|
+
},
|
|
155
|
+
"./projection-transform": {
|
|
156
|
+
"types": "./out/projection-transform.d.ts",
|
|
157
|
+
"node": "./out/projection-transform.js",
|
|
158
|
+
"default": "./out/projection-transform.js"
|
|
159
|
+
},
|
|
160
|
+
"./well-known-text": {
|
|
161
|
+
"types": "./out/well-known-text.d.ts",
|
|
162
|
+
"node": "./out/well-known-text.js",
|
|
163
|
+
"default": "./out/well-known-text.js"
|
|
164
|
+
},
|
|
165
|
+
"./tools/ogr": {
|
|
166
|
+
"types": "./out/tools/ogr.d.ts",
|
|
167
|
+
"node": "./out/tools/ogr.js",
|
|
168
|
+
"default": "./out/tools/ogr.js"
|
|
169
|
+
},
|
|
170
|
+
"./h3/coverage": {
|
|
171
|
+
"types": "./out/h3/coverage.d.ts",
|
|
172
|
+
"node": "./out/h3/coverage.js",
|
|
173
|
+
"default": "./out/h3/coverage.js"
|
|
174
|
+
},
|
|
175
|
+
"./tools/ogr-stream": {
|
|
176
|
+
"types": "./out/tools/ogr-stream.d.ts",
|
|
177
|
+
"node": "./out/tools/ogr-stream.js",
|
|
178
|
+
"default": "./out/tools/ogr-stream.js"
|
|
111
179
|
}
|
|
112
180
|
},
|
|
113
181
|
"imports": {
|
|
114
|
-
"
|
|
115
|
-
"types": "./out
|
|
116
|
-
"
|
|
182
|
+
"#*": {
|
|
183
|
+
"types": "./out/*.d.ts",
|
|
184
|
+
"node": "./out/*.js",
|
|
185
|
+
"default": "./out/*.js"
|
|
117
186
|
}
|
|
118
187
|
}
|
|
119
188
|
},
|
|
120
189
|
"dependencies": {
|
|
121
|
-
"@mailwoman/core": "9.
|
|
190
|
+
"@mailwoman/core": "9.4.0",
|
|
122
191
|
"geo-coordinates-parser": "^1.7.4",
|
|
123
192
|
"h3-js": "^4.5.0",
|
|
124
193
|
"wkx": "^0.5.0"
|
|
125
194
|
},
|
|
126
195
|
"devDependencies": {
|
|
127
196
|
"@googlemaps/google-maps-services-js": "^3.4.2",
|
|
128
|
-
"@mailwoman/annotations": "9.
|
|
129
|
-
"type-fest": "^5.
|
|
197
|
+
"@mailwoman/annotations": "9.4.0",
|
|
198
|
+
"type-fest": "^5.9.0"
|
|
130
199
|
},
|
|
131
200
|
"optionalDependencies": {
|
|
132
201
|
"@googlemaps/google-maps-services-js": "^3.4.2",
|
|
133
|
-
"@types/google.maps": "^3.
|
|
202
|
+
"@types/google.maps": "^3.66.2"
|
|
134
203
|
},
|
|
135
204
|
"engines": {
|
|
136
205
|
"node": ">=24.18.0"
|
package/distance.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software.
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
* @file Great-circle distance utilities. This module imports geometry directly so spatial's
|
|
6
|
-
* lowest-level math never reaches back through its public barrel.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { GeoPoint, type GeoPointInput } from "./geometries/point.ts"
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Conversion factors for converting between degrees and radians.
|
|
13
|
-
*
|
|
14
|
-
* @category Position
|
|
15
|
-
* @see {@link https://en.wikipedia.org/wiki/Radian Wikipedia: Radian}
|
|
16
|
-
* @see {@link https://en.wikipedia.org/wiki/Degree_(angle) Wikipedia: Degree (angle)}
|
|
17
|
-
*/
|
|
18
|
-
export const ConversionFactor = {
|
|
19
|
-
DegreesToRadians: Math.PI / 180,
|
|
20
|
-
RadiansToDegrees: 180 / Math.PI,
|
|
21
|
-
} as const
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Available conversion units for the radius of the Earth.
|
|
25
|
-
*/
|
|
26
|
-
export type EarthRadiusUnit = "km" | "miles" | "meters"
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Radius of the Earth in various units.
|
|
30
|
-
*/
|
|
31
|
-
const RADII = {
|
|
32
|
-
km: 6371,
|
|
33
|
-
miles: 3958.8,
|
|
34
|
-
meters: 6_371_000,
|
|
35
|
-
} as const satisfies Record<EarthRadiusUnit, number>
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Shared great-circle math with no sentinel handling. `unit` selects the Earth radius.
|
|
39
|
-
*/
|
|
40
|
-
function greatCircle(lat1: number, lon1: number, lat2: number, lon2: number, unit: EarthRadiusUnit): number {
|
|
41
|
-
const dLat = (lat2 - lat1) * ConversionFactor.DegreesToRadians
|
|
42
|
-
const dLon = (lon2 - lon1) * ConversionFactor.DegreesToRadians
|
|
43
|
-
|
|
44
|
-
const a =
|
|
45
|
-
Math.pow(Math.sin(dLat / 2), 2) +
|
|
46
|
-
Math.cos(lat1 * ConversionFactor.DegreesToRadians) *
|
|
47
|
-
Math.cos(lat2 * ConversionFactor.DegreesToRadians) *
|
|
48
|
-
Math.pow(Math.sin(dLon / 2), 2)
|
|
49
|
-
|
|
50
|
-
return RADII[unit] * 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Calculate the distance between two points on the Earth's surface.
|
|
55
|
-
*
|
|
56
|
-
* @category Position
|
|
57
|
-
* @param point1 The first point to calculate the distance from.
|
|
58
|
-
* @param point2 The second point to calculate the distance to.
|
|
59
|
-
* @param unit The unit of measurement to return the distance in.
|
|
60
|
-
*
|
|
61
|
-
* @returns The distance between the two points in the specified unit.
|
|
62
|
-
*/
|
|
63
|
-
export function haversine(point1: GeoPointInput, point2: GeoPointInput, unit: EarthRadiusUnit = "km"): number {
|
|
64
|
-
const p1 = GeoPoint.from(point1)
|
|
65
|
-
const p2 = GeoPoint.from(point2)
|
|
66
|
-
|
|
67
|
-
if (!p1 || !p2) return Number.NaN
|
|
68
|
-
|
|
69
|
-
return greatCircle(p1.latitude, p1.longitude, p2.latitude, p2.longitude, unit)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Great-circle distance in kilometres between two lat/lon pairs given as raw scalars. The formula's one true home —
|
|
74
|
-
* every resolver + eval consumer of the `(aLat, aLon, bLat, bLon)` shape imports this instead of re-declaring it.
|
|
75
|
-
*
|
|
76
|
-
* Unlike {@link haversine}, this is pure math with NO Null-Island sentinel: `(0, 0)` is the Gulf of Guinea — a real
|
|
77
|
-
* point, not "missing coordinate". That sentinel convention belongs to the `GeoPointInput` object form (where a 0/0
|
|
78
|
-
* input means "no coordinate"), not to a raw scalar distance.
|
|
79
|
-
*
|
|
80
|
-
* @category Position
|
|
81
|
-
*/
|
|
82
|
-
export function haversineKm(aLat: number, aLon: number, bLat: number, bLon: number): number {
|
|
83
|
-
return greatCircle(aLat, aLon, bLat, bLon, "km")
|
|
84
|
-
}
|
package/geometries/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software.
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* GeoJSON Geometry Entry Point
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export * from "./collection.ts"
|
|
10
|
-
export * from "./line-string.ts"
|
|
11
|
-
export * from "./point.ts"
|
|
12
|
-
export * from "./polygon.ts"
|
package/index.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software.
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export * from "./bbox.ts"
|
|
8
|
-
export * from "./coordinate-formats.ts"
|
|
9
|
-
export * from "./coordinate-bounds.ts"
|
|
10
|
-
export * from "./distance.ts"
|
|
11
|
-
export * from "./feature.ts"
|
|
12
|
-
export * from "./open-location-code.ts"
|
|
13
|
-
export * from "./geometries/index.ts"
|
|
14
|
-
export * from "./google/index.ts"
|
|
15
|
-
export * from "./h3/index.ts"
|
|
16
|
-
export * from "./objects.ts"
|
|
17
|
-
export * from "./osgb36.ts"
|
|
18
|
-
export * from "./polyline.ts"
|
|
19
|
-
export * from "./position.ts"
|
|
20
|
-
export * from "./projection.ts"
|
|
21
|
-
export * from "./regions/index.ts"
|
package/out/sdk/index.d.ts
DELETED
package/out/sdk/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../sdk/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAA"}
|
package/out/sdk/index.js
DELETED
package/out/sdk/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../sdk/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"well-known-text.d.ts","sourceRoot":"","sources":["../../sdk/well-known-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAEjE;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,GAAG,eAAe,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC,CAAA;AACnG;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,GAAG,eAAe,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC,CAAA;AACzF;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,GAAG,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAA;AAM1F;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,GAAG,kBAAkB,2BAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,GAAG,kBAAkB,2BAE5E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,GAAG,kBAAkB,UAE5E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,GAAG,kBAAkB,GAAG,MAAM,CAEpF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,eAAe,GAAG,kBAAkB,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,gBAM3G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"well-known-text.js","sourceRoot":"","sources":["../../sdk/well-known-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAA;AAuBrB,MAAM,UAAU,0BAA0B,CAAsB,KAAsB;IACrF,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,EAAO,CAAA;AAClD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,QAA8C;IAC3E,OAAO,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAA;AACnD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,QAA8C;IAC5E,OAAO,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAA;AACpD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,QAA8C;IAC5E,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAChD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,QAA8C;IAC3E,OAAO,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAA;AACnD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAiD,QAA8B;IAC3G,OAAO,GAAG,EAAE;QACX,IAAI,CAAC,QAAQ;YAAE,OAAO,MAAM,CAAA;QAE5B,OAAO,SAAS,CAAC,iBAAiB,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAA;IAC/D,CAAC,CAAA;AACF,CAAC"}
|