@idm-plugin/geo 1.9.1 → 1.9.3
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/dist/index.js +200 -148
- package/dist/index.umd.cjs +3 -3
- package/dist/lane/src/index.d.ts +24 -14
- package/package.json +1 -1
package/dist/lane/src/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
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
|
}
|