Appearance
forecast
预测气象
根据经纬度查询未来气象预报数据。
调用方式:
typescript
const data = await client.weather.forecast(params);请求信息: GET /apicall/GetForecastMeteorological,鉴权参数 k
请求参数 (WeatherForecastParams)
| 参数名 | 类型 | 必填 | 描述 | 补充说明 |
|---|---|---|---|---|
| lon | number | 是 | 经度,SDK 不做单位转换。 | 备注: 按上游接口要求传入 |
| lat | number | 是 | 纬度,SDK 不做单位转换。 | 备注: 按上游接口要求传入 |
返回包装说明: 外层响应还包含 lon、lat、tzshift。
返回类型: WeatherForecastData
查看类型定义
typescript
export type WeatherForecastData = WeatherRecord;