未来降雨概率API

由来

本来想开个坑的,就是根据气温、风向、气压、湿度还有卫星云图这种气象信息,来预测未来降雨概率。

后来想想已经有大把大把现成的产品了,于是就上网找了一下,还真从中国气象网上扒了个API下来,这里记录和分享一下。

使用方法

URL

http://d3.weather.com.cn/webgis_rain_new/webgis/minute

参数

Name Type Description Example
lat Float 纬度 39.909187
lon Float 经度 116.397451

示例

http://d3.weather.com.cn/webgis_rain_new/webgis/minute?lat=39.909187&lon=116.397451

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"msg": "75分钟后开始下小雨,不过90分钟后雨就停了",
"times": [
"2021-08-30 22:15:00",
"2021-08-30 22:20:00",
"2021-08-30 22:25:00",
"2021-08-30 22:30:00",
"2021-08-30 22:35:00",
"2021-08-30 22:40:00",
"2021-08-30 22:45:00",
"2021-08-30 22:50:00",
"2021-08-30 22:55:00",
"2021-08-30 23:00:00",
"2021-08-30 23:05:00",
"2021-08-30 23:10:00",
"2021-08-30 23:15:00",
"2021-08-30 23:20:00",
"2021-08-30 23:25:00",
"2021-08-30 23:30:00",
"2021-08-30 23:35:00",
"2021-08-30 23:40:00",
"2021-08-30 23:45:00",
"2021-08-30 23:50:00",
"2021-08-30 23:55:00"
],
"values": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.02,
0.02,
0.02,
0.0,
0.0,
0.0
],
"ph": "rain",
"time": "2021-08-30 22:06",
"uptime": "2021-08-30 22:00:00",
"status": "true"
}

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!