@idm-plugin/geo 1.5.2 → 1.5.4

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.
@@ -315,4 +315,22 @@ export declare class LaneHelper {
315
315
  * @param waypoints 带时间的轨迹, 单位秒
316
316
  */
317
317
  static nearestTSPointInWaypoints(ts: number, step: number, waypoints: Coordinate[]): Coordinate | undefined;
318
+ /**
319
+ * 计算AIRoute
320
+ * @param from
321
+ * @param to
322
+ * @param options
323
+ */
324
+ static calculateAIRoute(from: Coordinate, to: Coordinate, options?: {
325
+ requestId?: string;
326
+ open?: string;
327
+ close?: string;
328
+ }): Promise<any>;
329
+ /**
330
+ * 重新加载AI路由数据
331
+ * @param options
332
+ */
333
+ static reloadAIRoute(options: {
334
+ requestId: string;
335
+ }): Promise<boolean>;
318
336
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idm-plugin/geo",
3
3
  "private": false,
4
- "version": "1.5.2",
4
+ "version": "1.5.4",
5
5
  "description": "idm plugin for geo",
6
6
  "type": "module",
7
7
  "keywords": [
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@log4js-node/log4js-api": "^1.0.2",
31
31
  "@turf/turf": "^6.5.0",
32
+ "got": "11",
32
33
  "moment": "^2.30.1",
33
34
  "moment-timezone": "^0.5.45",
34
35
  "tz-lookup": "^6.1.25"