@idm-plugin/geo 1.9.3 → 1.9.5

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.
@@ -362,4 +362,20 @@ export declare class LaneHelper {
362
362
  * }
363
363
  */
364
364
  static pickUTCSampleFromSpeed(utc: string, speed: any): any;
365
+ /**
366
+ * 查询特定时间的船位及航行区间
367
+ * @param utc 目标时间, UTC格式
368
+ * @param from 起点, 包含speed, etd, lat, lng
369
+ * @param route
370
+ * @return {
371
+ * routes: [],
372
+ * hour: Coordinate
373
+ * }
374
+ */
375
+ static pickUTCSampleFromRoute(utc: string, from: {
376
+ lat: number;
377
+ lng: number;
378
+ speed: number;
379
+ etd: string;
380
+ }, route: any[]): any;
365
381
  }
@@ -7,6 +7,7 @@ export declare class TropicalHelper {
7
7
  static convert2Geojson(raw: {
8
8
  id: string;
9
9
  name: string;
10
+ nameCn?: string;
10
11
  forecasts: any[];
11
12
  history: any[];
12
13
  }[]): turf.helpers.FeatureCollection<turf.helpers.Geometry, turf.helpers.Properties>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idm-plugin/geo",
3
3
  "private": false,
4
- "version": "1.9.3",
4
+ "version": "1.9.5",
5
5
  "description": "idm plugin for geo in browser",
6
6
  "type": "module",
7
7
  "keywords": [