Difference between revisions of "雾霾区域实况图接口"
Liuzhonghua (talk | contribs) (→返回结构和说明) |
Liuzhonghua (talk | contribs) (→返回结构和说明) |
||
Line 57: | Line 57: | ||
} | } | ||
}, | }, | ||
− | + | 1:{...}, | |
− | + | ... | |
− | + | 47:{...} | |
} | } | ||
</syntaxhighlight></blockquote> | </syntaxhighlight></blockquote> |
Revision as of 06:17, 20 March 2019
API概述 :
- 雾霾区域实况图 API, 提供两个区域的pm25实况栅格图:亚洲和北美;
- 文件名为格林威治时间,提供最近48帧(47逐小时历史+实况),每60分钟更新1次(从00H:00M开始);
授权与认证
请先至彩云开放平台注册,注册后可以获得 token 。使用本接口,开发者token需要额外开通权限,请联系商务:api@caiyunapp.com
请求样例
样例一(亚洲):api.caiyunapp.com/v1/aqi/images?token=@TOKEN&lon=120&lat=20
样例二(北美):api.caiyunapp.com/v1/aqi/images?token=@TOKEN&lon=-120&lat=20参数:
经纬度:经度在前,纬度在后,中间用半角逗号隔开,这里是 121.6544,25.1552
token :这里是测试 token ,即 TAkhjf8d1nlSlspN
返回结构和说明
样例一(亚洲):
{ status "ok" category "aqi_latest_obs_image" imagee: 0:{ 0: "http://cdn.caiyunapp.com/weather/pm25_rt_as_20190318_05.png", 1: 1552885200, 2:{ -10, #图片最南处纬度 lat0 60, #图片最西处经度 lon0 56, #图片最北处纬度 lat1 146 #图片最东处经度 lon1 } }, 1:{...}, ... 47:{...} }
样例二(北美):
{ status "ok" category "aqi_latest_obs_image" imagee: 0:{ 0: "http://cdn.caiyunapp.com/weather/pm25_rt_na_20190318_05.png" 1: 1552885200 2:{ 15, #图片最南处纬度 lat0 -169, #图片最西处经度 lon0 71.5, #图片最北处纬度 lat1 -52 #图片最东处经度 lon1 } }, 1:{...}, ... 47:{...} }