@idm-plugin/geo 1.9.1 → 1.9.2

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.
@@ -334,22 +334,32 @@ export declare class LaneHelper {
334
334
  */
335
335
  static reverseRoute(route: number[][][]): number[][][];
336
336
  static reverseCoordinates(coordinates: Coordinate[]): Coordinate[];
337
+ /**
338
+ * 路径转RTZ
339
+ * @param name 路径名称
340
+ * @param waypoints 途径点
341
+ */
337
342
  static waypoints2RTZ(name: string, waypoints: Coordinate[]): string;
338
343
  /**
339
344
  * 路径摘要
340
345
  * @param coordinates 已排序的坐标
341
- */
342
- static coordinatesSummary(coordinates: Coordinate[]): {
343
- begin: string;
344
- end: string;
345
- distance: number;
346
- hours: number;
347
- avgSpeed: number;
348
- } | {
349
- begin: undefined;
350
- end: undefined;
351
- distance: number;
352
- hours: number;
353
- avgSpeed: number;
354
- };
346
+ * @return {
347
+ * begin: string, // 开始时间
348
+ * end: string, // 结束时间
349
+ * distance: number, // 航行距离,单位海里
350
+ * hours: number, // 航行时间,单位小时
351
+ * avgSpeed: number // 平均航速,单位节
352
+ * }
353
+ */
354
+ static coordinatesSummary(coordinates: Coordinate[]): any;
355
+ /**
356
+ * 查询特定时间的船位及航行区间
357
+ * @param utc
358
+ * @param speed
359
+ * @return {
360
+ * routes: [],
361
+ * hour: Coordinate
362
+ * }
363
+ */
364
+ static pickUTCSampleFromSpeed(utc: string, speed: any): any;
355
365
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idm-plugin/geo",
3
3
  "private": false,
4
- "version": "1.9.1",
4
+ "version": "1.9.2",
5
5
  "description": "idm plugin for geo in browser",
6
6
  "type": "module",
7
7
  "keywords": [