Skip to content

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)

参数名类型必填描述
beginnumber开始时间,UTC 秒。
endnumber结束时间,UTC 秒。
typenumber类型,固定值 1。
keystringUser authorization key. Optional when an instance key or global key is registered.

返回类型: TyphoonHistoryData

查看类型定义
typescript
export type LoongshipRecord = Record<string, unknown>;