当前位置:网站首页>How to use weather warning API interface for rapid development
How to use weather warning API interface for rapid development
2022-06-10 04:37:00 【grownto9】
Weather warning can guide people to travel . The warning signal levels of the same kind of meteorological disasters are different , The corresponding defense measures are also different , People use meteorological disaster warning signals , Arrange your travel reasonably . The public should improve their awareness of prevention , Develop the habit of receiving and paying attention to early warning information , Understand the meaning behind the early warning information , Master the knowledge and skills of disaster prevention and risk avoidance , The critical moment is not “ Underestimate the enemy ”.
So I thought of making a special weather warning applet , Think if you use ready-made API Can greatly improve the development efficiency , Finally I found it on the Internet APISpace, Find the weather warning inside API It meets my development needs very well .
Weather warning API, You can obtain various weather warnings currently in effect in the specified city , Such as cold wave blue warning signal , Or pull all effective weather warnings in the country at one time . The early warning data comes from the national early warning center .
APISpace There are also many free generic API Interface , Using these interfaces can help you realize and develop many functions , Web pages with stable services 、APP And the little program , It is a good choice for both hands training and actual combat .
Next, I will share some information about the interface with you .
Weather warning
- Interface request address : Click to see
- Request method :GET
- Returns the format :JSON
- Request parameters
- areacode: City ID, Not required , If not, all effective alerts will be returned ( It can be obtained from the following domestic city list interface ).
- Return to example :
{
"status": 0,
"result": {
"location": {
"areacode": "101250101",
"name": " Changsha ",
"country": " China ",
"path": " Changsha , Changsha City , Hunan province , China "
},
"alerts": [{
"typeCode": "11B03",
"type": " Heavy rains ",
"levelCode": "Orange",
"level": " Orange alert ",
"public_time": "2022-06-02 15:48:00",
"geocode": "430000",
"title": " Hunan Province issued an orange rainstorm warning ",
"desc": " Hunan Meteorological Observatory 2022 year 6 month 2 Japan 15 when 48 Orange rainstorm warning will be issued separately :2 Japan 15 when 48 Points to the 3 Japan 15 when 48 Part of Changde ( Taoyuan County 、 Shimen County )、 Southeast of Yueyang ( Pingjiang county )、 Southwest of Yiyang ( Anhua County )、 Eastern Changsha ( Liuyang City )、 zhangjiajie ( Sangzhi County 、 Yongding District 、 Cili County 、 Wulingyuan District )、 Some areas of Huaihua ( Yuanling County 、 Chenxi County 、 Mayang county 、 Xupu County 、 Hecheng district 、 China County )、 Most areas of Xiangxi Prefecture ( Luxi County 、 Jishou City 、 Yongshun County 、 Guzhang County 、 Longshan County 、 Phoenix county 、 Baojing County 、 Huayuan County ) There has been a rainstorm , Local heavy rain ; expect 2 Japan 15 when 48 Points to the 3 Japan 15 when 48 branch , Part of Changde ( Taoyuan County 、 Shimen County )、 Southeast of Yueyang ( Pingjiang county )、 Southwest of Yiyang ( Anhua County )、 Eastern Changsha ( Liuyang City )、 zhangjiajie ( Sangzhi County 、 Yongding District 、 Cili County 、 Wulingyuan District )、 Some areas of Huaihua ( Yuanling County 、 Chenxi County 、 Mayang county 、 Xupu County 、 Hecheng district 、 China County )、 Most areas of Xiangxi Prefecture ( Luxi County 、 Jishou City 、 Yongshun County 、 Guzhang County 、 Longshan County 、 Phoenix county 、 Baojing County 、 Huayuan County ) There will also be rainstorms in some areas , Local heavy rain , Accompanied by thunderstorms 、 Strong convective weather such as thunderstorm and gale .( Sources of early warning information : National early warning information release center )",
"effective": "2022-06-02 15:48:00",
"expires": "2022-06-03 15:00:00"
}, {
"typeCode": "11B03",
"type": " Heavy rains ",
"levelCode": "Yellow",
"level": " Yellow warning ",
"public_time": "2022-06-02 14:21:00",
"geocode": "430100",
"title": " Changsha City, Hunan Province issued a yellow rainstorm warning ",
"desc": " Changsha meteorological observatory 2022 year 6 month 2 Japan 14 when 21 The upgraded rainstorm warning signal is yellow : It is estimated that Tianxin District 、 The south of Yuelu District 、 Yuhua district 、 South of Changsha County 、 Liuyang City 14 when 30 Points to the 20 when 30 The precipitation will reach 50 Mm or more , And accompanied by thunderstorms, gales and other severe convective weather , High disaster risk , Please take precautions .( Sources of early warning information : National early warning information release center )",
"effective": "2022-06-02 14:21:00",
"expires": "2022-06-03 00:00:00"
}]
}
}
List of domestic cities
- Interface request address : Click to see
- Request method :GET
- Request parameters
- province: Query the name of the province , for example : Beijing , The city information of the whole country will be returned by default . Not required
- Interface specification : This interface serves as the auxiliary interface of the weather warning interface , Get the city you want to query through this interface ID, And then to get ID Call the weather warning interface , You can query the weather warning information of the city .
边栏推荐
- mindconvert模型转换中clip算子报错
- 元道通信通过注册:年营收16.25亿 业绩高度依赖中移动
- Using kubekey to build kubernetes/kubesphere environment
- Puzzling color deviation of unity illumination black
- Informatics Olympiad 1288: Triangle optimal path problem | openjudge noi 2.6 7625: triangle optimal path problem
- mindspore官网教程中的初学入门中,导入数据时有map映射不太懂
- JDBC 入門示例
- Error of clip operator in mindconvert model transformation
- 91. fence
- MindSpore缺失与torch.nn.Maxpool3d和torch.nn.Avgpool3d对标的算子
猜你喜欢

Kubernetes distributed performance test using locust

FastApi-16-页面美化-1

EasyRecovery数据恢复软件100%恢复的成功率

Tutorial on using midway

Celery | 任务队列神器

大事件回顾 | Eolink 5月重要动态速览!

Metersphere | a super easy-to-use open source testing platform

Who ate IO?

ThreadLocal basic and advanced use

Jenkinsclient | easy to use Jenkins client
随机推荐
Super easy to use chrome plug-in!
S系列·删除文件夹的几种姿势
25. BOM事件
Pampy | powerful pattern matching tool
Basic methods of stack and related problems
信息学奥赛一本通 1274:【例9.18】合并石子 | 洛谷 P1775 石子合并(弱化版)
Use mindspire in gpu-national/ cpu-graph_ Mode and gpu-graph_ Inconsistent mode execution
Jmeter测试TCP百万连接
25. BOM events
[Android L]SEAndroid增强Androd安全性背景概要及带来的影响
Manage global variables (2)
Unit test with%unittest
Crack the five myths of programmers, and new programmer 004 is officially launched!
OpenJudge NOI 1.13 13:人民币支付
Cross in tensorflow_ entropy
. Net C Foundation (7): interface - how people interact with cats
MindSpore缺失与torch.nn.Maxpool3d和torch.nn.Avgpool3d对标的算子
分布式数据对象:超级终端的'全局变量'
S系列·向文本文件新增数据并且不添加重复值
大事件回顾 | Eolink 5月重要动态速览!