Skip to content

forecast

预测气象。

调用方式:

typescript
const data = await client.weather.forecast(params);
typescript
import { Weather } from 'loongship-data';

const data = await Weather.forecast({ key: 'YOUR_KEY', ...params });

请求参数 (WeatherForecastParams)

参数名类型必填描述
lonnumber经度,SDK 不做单位转换。
latnumber纬度,SDK 不做单位转换。
keystringUser authorization key. Optional when an instance key or global key is registered.

返回类型: WeatherForecastData

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