current
查询当前台风位置及预测值。
调用方式:
typescript
const data = await client.typhoon.current(params);typescript
import { Typhoon } from 'loongship-data';
const data = await Typhoon.current({ key: 'YOUR_KEY', ...params });请求参数 (TyphoonCurrentParams)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| type | number | 是 | 类型,固定值 2。 |
| nodetype | string | 是 | 节点数量控制,固定值 all。 |
| key | string | 否 | User authorization key. Optional when an instance key or global key is registered. |
返回类型: TyphoonCurrentData
查看类型定义
typescript
export type LoongshipRecord = Record<string, unknown>;