search
船舶搜索。
调用方式:
typescript
const data = await client.ship.search(params);typescript
import { Ship } from 'loongship-data';
const data = await Ship.search({ key: 'YOUR_KEY', ...params });请求参数 (ShipSearchParams)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| kw | string | 是 | 船名、呼号、MMSI、IMO。 |
| max | number | 否 | 最大返回数,默认 100。 |
| key | string | 否 | User authorization key. Optional when an instance key or global key is registered. |
返回类型: ShipSearchData
查看类型定义
typescript
export type ShipSearchData = LoongshipRecord[];