分钟级降水Android SDK(临近预报)支持中国1公里精度的未来2小时每5分钟降雨预报数据。
接口代码 |
接口说明 |
数据类 |
getMinutely |
分钟级降雨 |
MinutelyBean |
接口参数说明
-
location
(必选)需要查询地区的以英文逗号分隔的经度,纬度坐标(十进制,最多支持小数点后两位)。例如 location=116.41,39.92
-
lang
多语言设置,默认中文,本数据仅支持中文和英文。可选语言请参考多语言参数。
示例代码
QWeather.getMinuteLy(Context context, String location,QWeather.OnResultMinutelyListener listener);
QWeather.getMinuteLy(Context context, String location, Lang lang, QWeather.OnResultMinutelyListener listener);
MinutelyBean属性
属性 |
说明 |
示例值 |
getCode |
接口状态 |
Status Code |
getSummary |
分钟降水描述 |
未来2小时无降雨 |
getMinutelyList |
临近预报 |
List<Minutely> |
getRefer |
Refer 数据来源以及数据授权 |
Refer |
getBasic |
Basic 基础信息 |
Basic |
Refer
属性 |
说明 |
示例值 |
getSourcesList |
原始数据来源 |
qweather.com |
getLicenseList |
使用许可 |
commercial license |
Basic
属性 |
说明 |
示例值 |
getUpdateTime |
接口更新时间 |
2017-10-25T04:34+08:00 |
getFxLink |
所查询城市的天气预报网页 |
http://hfx.link/ae45 |
Minutely 未来两小时5分钟降水量
属性 |
说明 |
示例值 |
getFxTime |
时间,格式yyyy-MM-dd HH:mm |
2013-12-30T20:35+08:00 |
getPrecip |
降水量 |
10 |
getType |
降水类型 |
rain |