@wemap/geo 10.9.2 → 10.11.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/index.d.ts +23 -5
- package/package.json +4 -4
- package/src/graph/Network.js +1 -0
package/index.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { Quaternion_t, Vector3_t } from '@wemap/maths';
|
|
2
2
|
declare module '@wemap/geo' {
|
|
3
3
|
|
|
4
|
+
export interface Constants {
|
|
5
|
+
R_MAJOR: number;
|
|
6
|
+
R_MINOR: number;
|
|
7
|
+
EARTH_GRAVITY: number;
|
|
8
|
+
EPS_DEG_MM: number;
|
|
9
|
+
EPS_MM: number;
|
|
10
|
+
ELLIPSOID_FLATNESS: number;
|
|
11
|
+
ECCENTRICITY: number;
|
|
12
|
+
R_MAJOR_2: number;
|
|
13
|
+
R_MAJOR_4: number;
|
|
14
|
+
R_MINOR_2: number;
|
|
15
|
+
R_MINOR_4: number;
|
|
16
|
+
ECCENTRICITY_2: number;
|
|
17
|
+
CIRCUMFERENCE: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
4
20
|
/*************
|
|
5
21
|
* Coordinates
|
|
6
22
|
*************/
|
|
@@ -105,7 +121,7 @@ declare module '@wemap/geo' {
|
|
|
105
121
|
get bearing(): number | null;
|
|
106
122
|
set bearing(bearing: number | null);
|
|
107
123
|
|
|
108
|
-
fromCoordinates(coords: Coordinates): UserPosition;
|
|
124
|
+
static fromCoordinates(coords: Coordinates): UserPosition;
|
|
109
125
|
clone(): UserPosition;
|
|
110
126
|
equals(other: Coordinates, eps?: number, epsAlt?: number): boolean;
|
|
111
127
|
toJson(): UserPositionJson;
|
|
@@ -249,9 +265,11 @@ declare module '@wemap/geo' {
|
|
|
249
265
|
static fromCoordinates<T>(segments: Coordinates[][]): Network<T>;
|
|
250
266
|
}
|
|
251
267
|
|
|
252
|
-
export
|
|
253
|
-
|
|
254
|
-
|
|
268
|
+
export class GraphUtils {
|
|
269
|
+
static getEdgeByNodes<T>(
|
|
270
|
+
edges: GraphEdge<T>[], node1: GraphNode<T>, node2: GraphNode<T>
|
|
271
|
+
): GraphNode<T> | undefined;
|
|
272
|
+
}
|
|
255
273
|
|
|
256
274
|
export class MapMatching<T> {
|
|
257
275
|
constructor(network?: Network<T>);
|
|
@@ -343,7 +361,7 @@ declare module '@wemap/geo' {
|
|
|
343
361
|
|
|
344
362
|
export class GraphRouter<T> {
|
|
345
363
|
constructor(network: Network<T>);
|
|
346
|
-
|
|
364
|
+
|
|
347
365
|
disabledEdges: Set<GraphEdge<T>>;
|
|
348
366
|
|
|
349
367
|
getShortestPath(
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/geo"
|
|
14
14
|
},
|
|
15
15
|
"name": "@wemap/geo",
|
|
16
|
-
"version": "10.
|
|
16
|
+
"version": "10.11.1",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
19
19
|
},
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@wemap/logger": "^10.
|
|
32
|
-
"@wemap/maths": "^10.
|
|
31
|
+
"@wemap/logger": "^10.11.1",
|
|
32
|
+
"@wemap/maths": "^10.10.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e01001affc1f02f2c847a63de870f63734b98a1c"
|
|
35
35
|
}
|