@aibee/crc-bmap 0.8.39 → 0.8.41
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/lib/bmap.cjs.min.js +375 -375
- package/lib/bmap.esm.js +351 -9
- package/lib/bmap.esm.min.js +375 -375
- package/lib/bmap.min.js +375 -375
- package/lib/src/plugins/car-inertial-position/car-inertial-position.d.ts +33 -0
- package/lib/src/plugins/car-inertial-position/car-inertial-position.js +90 -0
- package/lib/src/plugins/car-inertial-position/compass.d.ts +44 -0
- package/lib/src/plugins/car-inertial-position/compass.js +125 -0
- package/lib/src/plugins/car-inertial-position/index.d.ts +2 -0
- package/lib/src/plugins/car-inertial-position/index.js +3 -0
- package/lib/src/plugins/car-inertial-position/utils.d.ts +41 -0
- package/lib/src/plugins/car-inertial-position/utils.js +157 -0
- package/lib/src/plugins/index.d.ts +1 -0
- package/lib/src/plugins/index.js +1 -0
- package/lib/src/plugins/navigation/navigation.d.ts +2 -2
- package/lib/src/plugins/navigation/position-navigation.d.ts +7 -5
- package/lib/src/plugins/navigation/position-navigation.js +13 -5
- package/lib/src/utils/road2.d.ts +8 -0
- package/lib/src/utils/road2.js +4 -0
- package/package.json +1 -1
package/lib/src/utils/road2.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface RoadData2 {
|
|
|
30
30
|
endTime?: string;
|
|
31
31
|
permission?: number;
|
|
32
32
|
relatedId?: string;
|
|
33
|
+
crossName?: string;
|
|
33
34
|
}>;
|
|
34
35
|
}
|
|
35
36
|
export interface Facility {
|
|
@@ -74,6 +75,7 @@ export type RouteType2 = "" | "escalator" | "straightLadder" | "forward";
|
|
|
74
75
|
export type PathData2 = {
|
|
75
76
|
floor: string;
|
|
76
77
|
points: [number, number][];
|
|
78
|
+
pointInfos: RoadData2['points'];
|
|
77
79
|
endType: string;
|
|
78
80
|
destId: string;
|
|
79
81
|
distance: number;
|
|
@@ -101,6 +103,7 @@ export declare class RoadNetwork2 {
|
|
|
101
103
|
endTime?: string;
|
|
102
104
|
permission?: number;
|
|
103
105
|
relatedId?: string;
|
|
106
|
+
crossName?: string;
|
|
104
107
|
}>;
|
|
105
108
|
nodeMap: Map<string, string>;
|
|
106
109
|
facilityMap: Map<string, {
|
|
@@ -121,6 +124,7 @@ export declare class RoadNetwork2 {
|
|
|
121
124
|
endTime?: string;
|
|
122
125
|
permission?: number;
|
|
123
126
|
relatedId?: string;
|
|
127
|
+
crossName?: string;
|
|
124
128
|
}[]>;
|
|
125
129
|
straightLadderMap: Map<string, {
|
|
126
130
|
id: string;
|
|
@@ -140,6 +144,7 @@ export declare class RoadNetwork2 {
|
|
|
140
144
|
endTime?: string;
|
|
141
145
|
permission?: number;
|
|
142
146
|
relatedId?: string;
|
|
147
|
+
crossName?: string;
|
|
143
148
|
}[]>;
|
|
144
149
|
escalatorMap: Map<string, {
|
|
145
150
|
start?: RoadData2["points"][0];
|
|
@@ -167,6 +172,7 @@ export declare class RoadNetwork2 {
|
|
|
167
172
|
endTime?: string;
|
|
168
173
|
permission?: number;
|
|
169
174
|
relatedId?: string;
|
|
175
|
+
crossName?: string;
|
|
170
176
|
}[]>;
|
|
171
177
|
connectionPointMap: Map<string, {
|
|
172
178
|
id: string;
|
|
@@ -186,6 +192,7 @@ export declare class RoadNetwork2 {
|
|
|
186
192
|
endTime?: string;
|
|
187
193
|
permission?: number;
|
|
188
194
|
relatedId?: string;
|
|
195
|
+
crossName?: string;
|
|
189
196
|
}[]>;
|
|
190
197
|
parkingMap: Map<string, {
|
|
191
198
|
id: string;
|
|
@@ -205,6 +212,7 @@ export declare class RoadNetwork2 {
|
|
|
205
212
|
endTime?: string;
|
|
206
213
|
permission?: number;
|
|
207
214
|
relatedId?: string;
|
|
215
|
+
crossName?: string;
|
|
208
216
|
}>;
|
|
209
217
|
lineMap: Map<string, Map<string, number>>;
|
|
210
218
|
baseRoute: Graph;
|
package/lib/src/utils/road2.js
CHANGED
|
@@ -738,6 +738,7 @@ export class RoadNetwork2 {
|
|
|
738
738
|
if (((_arr_ = arr[arr.length - 1]) == null ? void 0 : _arr_.floor) === floor) {
|
|
739
739
|
const pathData = arr[arr.length - 1];
|
|
740
740
|
pathData.points.push(point.cds);
|
|
741
|
+
pathData.pointInfos.push(point);
|
|
741
742
|
// type: normal | graph | escalator(扶梯) | straightLadder(直梯) | staircase(楼梯) | facility(设备) | connectionPoint(路网连接点)
|
|
742
743
|
pathData.endType = endType;
|
|
743
744
|
pathData.destId = point.nodeId;
|
|
@@ -748,6 +749,9 @@ export class RoadNetwork2 {
|
|
|
748
749
|
points: [
|
|
749
750
|
point.cds
|
|
750
751
|
],
|
|
752
|
+
pointInfos: [
|
|
753
|
+
point
|
|
754
|
+
],
|
|
751
755
|
endType: endType,
|
|
752
756
|
destId: point.nodeId,
|
|
753
757
|
distance: 0,
|