网站地址 http://www.caiyunapp.com/
彩云天气 API v1
http://wiki.swarma.net/index.php/%E5%BD%A9%E4%BA%91%E5%A4%A9%E6%B0%94API
彩云天气 API v2
http://wiki.caiyunapp.com/index.php/%E5%BD%A9%E4%BA%91%E5%A4%A9%E6%B0%94API/v2
获取定位坐标位置
https://api.ip.la/cn?json
{"ip":"114.*.*.216",
"location":{
"city":"上海",
"country_code":"CN",
"country_name":"中国",
"latitude":"31.231706",
"longitude":"121.472644",
"province":"上海"}
}
根据坐标查询位置
http://www.caiyunapp.com/fcgi-bin/v1/coord2text.py?latlng=31.231706,121.472644
{
"status":"ok",
"address":"\u9ec4\u6d66\u533a\u5357\u4eac\u897f\u8def"
}
以上为json的标准中文编码,解析有困难的同学可以先试一试这个在线json解析器 https://www.bejson.com/convert/unicode_chinese/
国内城市经纬度对照表
http://wiki.swarma.net/index.php/Docs