@idm-plugin/vessel 3.4.4 → 3.4.6
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/ais/src/index.d.ts +11 -2
- package/dist/index.js +585 -504
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ais/src/index.d.ts
CHANGED
|
@@ -145,17 +145,26 @@ export declare class MyVesselImpl extends AISImpl {
|
|
|
145
145
|
realTimePosition(mmsi: number, options?: {
|
|
146
146
|
requestId?: string;
|
|
147
147
|
}): Promise<AISRecord>;
|
|
148
|
+
/**
|
|
149
|
+
* @param from 始发点坐标 { lng, lat }
|
|
150
|
+
* @param to 目的点坐标 { lng, lat }
|
|
151
|
+
* @param crossMonths 规划月份 [1,...,12]
|
|
152
|
+
* @param excludeNodes 排除关键节点, [node.code]
|
|
153
|
+
* @param excludeSeas 排除水域, [sea.code]
|
|
154
|
+
* @param options { requiretId: '请求ID', useAIModel: '启用AI算法', withECA: '是否计算低硫区航行距离', withSpecial: '是否计算穿越的特战区列表和海盗区列表', draught: '最大吃水' }
|
|
155
|
+
*/
|
|
148
156
|
calculateRoute(from: {
|
|
149
157
|
lng: number;
|
|
150
158
|
lat: number;
|
|
151
159
|
}, to: {
|
|
152
160
|
lng: number;
|
|
153
161
|
lat: number;
|
|
154
|
-
}, options?: {
|
|
162
|
+
}, crossMonths: number[], excludeNodes: string[], excludeSeas: string[], options?: {
|
|
155
163
|
requestId?: string;
|
|
156
164
|
useAIModel?: boolean;
|
|
157
165
|
withECA?: boolean;
|
|
158
|
-
|
|
166
|
+
withSpecial?: boolean;
|
|
167
|
+
draught?: number;
|
|
159
168
|
}): Promise<any>;
|
|
160
169
|
trajectory(mmsi: number, startTime: string, endTime: string, offset: number, scale?: boolean, options?: {
|
|
161
170
|
requestId?: string;
|