history
查询历史台风位置及预测值。
调用方式:
typescript
const data = await client.typhoon.history(params);typescript
import { Typhoon } from 'loongship-data';
const data = await Typhoon.history({ key: 'YOUR_KEY', ...params });请求参数 (TyphoonHistoryParams)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| begin | number | 是 | 开始时间,UTC 秒。 |
| end | number | 是 | 结束时间,UTC 秒。 |
| type | number | 是 | 类型,固定值 1。 |
| key | string | 否 | User authorization key. Optional when an instance key or global key is registered. |
返回类型: TyphoonHistoryData
查看类型定义
typescript
export type LoongshipRecord = Record<string, unknown>;