跳到主要内容

雷达图

可视化说明

提示

现已推出支持各种数据可视化的 Rainbow SaaS

高德地图覆盖物文档

根据 API 返回的图片边界创建 AMap.Bounds(southWest:LngLat, northEast:LngLat)

实况

curl "http://api.caiyunapp.com/v1/radar/images?lon=116.427301&lat=39.902451&level=1&token=TOKEN"
  • level 控制单站/拼图:1 为单站,2 为拼图
    • level=1 单站,过去 20 帧实况图,4~6 分钟一帧
    • level=2 拼图,加上 world_map=true 可以切换到新版拼图上, 20 帧,5 分钟一帧
{
"status": "ok",
"timezone": "Asia/Shanghai",
"tzshift": 28800,
"station": "NMIC_AZ9010",
"images": [
[
"http://cdn-s.caiyunapp.com/weather/radar/color/AZ9010_1640780414_1640780414_ab4b91d31f3f45bca005040f96f42041.png?auth_key=xxx",
1640780414,
[
37.742471186275736, 113.78227438031607, 41.874723213724266,
119.16149781968394
]
],
// ...
[
"http://cdn-s.caiyunapp.com/weather/radar/color/AZ9010_1640787254_1640787254_20dfc4f347324034af83912a3f94346c.png?auth_key=xxx",
1640787254,
[
37.742471186275736, 113.78227438031607, 41.874723213724266,
119.16149781968394
]
]
]
}

坐标顺序为

  • 图片最南处纬度 lat0
  • 图片最西处经度 lon0
  • 图片最北处纬度 lat1
  • 图片最东处经度 lon1

预报

curl "http://api.caiyunapp.com/v1/radar/forecast_images?lon=116.427301&lat=39.902451&level=2&token=TOKEN"
  • level 控制单站/拼图:1 为单站,2 为拼图
    • level=1: 单站,最新一帧实况图+未来两小时预报图,一共 25 帧,去除掉实况图,还有 20 帧逐 4~6 分钟的预报
    • level=2: 拼图,加上 world_map=true 可以切换到新版拼图上, 25 帧,5 分钟一帧
{
"status": "ok",
"station": "CN03",
"images": [
[
"http://cdn.caiyunapp.com/weather/radar/o/cnmap_merca_202112291420_202112291420_3d6ffbaed7.png?auth_key=xxx",
1640787600,
[3.9079, 71.9282, 57.9079, 150.6026]
],
// ...
[
"http://cdn.caiyunapp.com/weather/radar/o/cnmap_merca_202112291420_202112291620_3d6ffbaed7.png?auth_key=xxx",
1640794800,
[3.9079, 71.9282, 57.9079, 150.6026]
]
]
}

坐标顺序为

  • 图片最南处纬度 lat0
  • 图片最西处经度 lon0
  • 图片最北处纬度 lat1
  • 图片最东处经度 lon1

实况栅格图

请联系商务:api@caiyunapp.com

提供三种文件

  1. 降水强度图
  2. 可用区域 mask 图
  3. 雨雪类型 mask 图

文件名为格林威治时间,提供最近十帧(45 分钟历史+当前最新),每 5 分钟更新 1 次(每小时 12 次,从 00H:00M 开始)