Abstract
Keywords
Citation Yao Qing-sheng.天气预报接口.FUTURE & CIVILIZATION Natural/Social Philosophy & Infomation Sciences,20220607. https://yaoqs.github.io/20220607/tian-qi-yu-bao-jie-kou/
1
{"data":{"yesterday":{"date":"6日星期一","high":"高温 22℃","fx":"东北风","low":"低温 15℃","fl":"<![CDATA[2级]]>","type":"小雨"},"city":"昆明","forecast":[{"date":"7日星期二","high":"高温 23℃","fengli":"<![CDATA[1级]]>","low":"低温 15℃","fengxiang":"北风","type":"小雨"},{"date":"8日星期三","high":"高温 22℃","fengli":"<![CDATA[1级]]>","low":"低温 16℃","fengxiang":"南风","type":"阴"},{"date":"9日星期四","high":"高温 21℃","fengli":"<![CDATA[1级]]>","low":"低温 16℃","fengxiang":"西南风","type":"小雨"},{"date":"10日星期五","high":"高温 21℃","fengli":"<![CDATA[2级]]>","low":"低温 16℃","fengxiang":"东北风","type":"中雨"},{"date":"11日星期六","high":"高温 21℃","fengli":"<![CDATA[1级]]>","low":"低温 16℃","fengxiang":"东风","type":"小雨"}],"ganmao":"感冒低发期,天气舒适,请注意多吃蔬菜水果,多喝水哦。","wendu":"22"},"status":1000,"desc":"OK"}
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
54
55
56
57
58
59
{
"data": {
"yesterday": {
"date": "6日星期一",
"high": "高温 22℃",
"fx": "东北风",
"low": "低温 15℃",
"fl": "<![CDATA[2级]]>",
"type": "小雨"
},
"city": "昆明",
"forecast": [
{
"date": "7日星期二",
"high": "高温 23℃",
"fengli": "<![CDATA[1级]]>",
"low": "低温 15℃",
"fengxiang": "北风",
"type": "小雨"
},
{
"date": "8日星期三",
"high": "高温 22℃",
"fengli": "<![CDATA[1级]]>",
"low": "低温 16℃",
"fengxiang": "南风",
"type": "阴"
},
{
"date": "9日星期四",
"high": "高温 21℃",
"fengli": "<![CDATA[1级]]>",
"low": "低温 16℃",
"fengxiang": "西南风",
"type": "小雨"
},
{
"date": "10日星期五",
"high": "高温 21℃",
"fengli": "<![CDATA[2级]]>",
"low": "低温 16℃",
"fengxiang": "东北风",
"type": "中雨"
},
{
"date": "11日星期六",
"high": "高温 21℃",
"fengli": "<![CDATA[1级]]>",
"low": "低温 16℃",
"fengxiang": "东风",
"type": "小雨"
}
],
"ganmao": "感冒低发期,天气舒适,请注意多吃蔬菜水果,多喝水哦。",
"wendu": "22"
},
"status": 1000,
"desc": "OK"
}
1
2
3
4
5
6
var DEF_TOKEN = 'Y2FpeXVuX25vdGlmeQ==';
var token = $.Request('token') || DEF_TOKEN;

var apiURL = "https://restapi.amap.com/v3/geocode/regeo?key=127caacaa204cc855a9bcdbc8ca06a49&location=" + longitude + "," + latitude;

var apiURL = "https://api.caiyunapp.com/v2/"+ token +"/" + longitude + "," + latitude + "/forecast?dailysteps=15&alert=true&lang=en";
References