实时天气详情
POST
/weather/v1/realTimeInfo
接口描述
实时天气详情
请求头
参数名
类型
描述
必填
ACCESSTOKEN
string
登录注册时返回的用户ppId
必填
请求参数
参数名
类型
描述
必填
type
int
查询类型 0-根据城市id查询 1-根据经纬度查询
必填
cityId
string
城市id 必传字段
必填
lon
string
经度
必填
lat
string
纬度
必填
响应参数
参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-未成功
必填
air
string
空气质量指数
必填
airLevel
string
空气质量等级
必填
cityId
string
城市id
必填
air
string
空气指数
必填
aqiLevel
string
空气质量等级
必填
hours
string
小时时间
必填
tem
string
气温
必填
wea
string
天气情况
必填
weaImg
string
天气图标
必填
win
string
风向
必填
winSpeed
string
风力风速
必填
humidity
string
湿度
必填
pressure
string
气压
必填
sunrise
string
日出时间
必填
sunset
string
日落时间
必填
tem
string
示例:27
必填
temFeels
string
体感温度
必填
tips
string
小贴士
必填
updateTime
string
数据更新时间
必填
visibility
string
能见度 (km)
必填
wea
string
天气情况
必填
weaImg
string
天气图标
必填
win
string
风向
必填
winSpeed
string
风力风速
必填
ziwaixian
string
紫外线等级
必填
message
string
返回结果信息
必填