全国天气查询接口

全国天气查询接口:

根据城市名称刻查询到该城市的天气情况,湿度,温度,穿衣指数等

详情:http://www.haoservice.com/docs/6

示例演示:

{

"resultcode": "200",

"reason": "查询成功!",

"result": {

"sk": {

/*当前实况天气*/"temp": "21",

/*当前温度*/"wind_direction": "西风",

/*当前风向*/"wind_strength": "2级",

/*当前风力*/"humidity": "4%",

/*当前湿度*/"time": "14:25"/*更新时间*/

},

"today": {

"city": "天津",

"date_y": "2014年03月21日",

"week": "星期五",

"temperature": "8℃~20℃",

/*今日温度*/"weather": "晴转霾",

/*今日天气*/"weather_id": {

/*天气唯一标识*/"fa": "00",

/*天气标识00:晴*/"fb": "53"/*天气标识53:霾如果fa不等于fb,说明是组合天气*/

},

"wind": "西南风微风",

"dressing_index": "较冷",

/*穿衣指数*/"dressing_advice": "建议着大衣、呢外套加毛衣、卫衣等服装。",

/*穿衣建议*/"uv_index": "中等",

/*紫外线强度*/"comfort_index": "",

/*舒适度指数*/"wash_index": "较适宜",

/*洗车指数*/"travel_index": "适宜",

/*旅游指数*/"exercise_index": "较适宜",

/*晨练指数*/"drying_index": ""/*干燥指数*/

},

"future": {

/*未来几天天气*/"day_20140321": {

"temperature": "8℃~20℃",

"weather": "晴转霾",

"weather_id": {

"fa": "00",

"fb": "53"

},

"wind": "西南风微风",

"week": "星期五",

"date": "20140321"

},

"day_20140322": {

"temperature": "9℃~21℃",

"weather": "霾转多云",

"weather_id": {

"fa": "53",

"fb": "01"

},

"wind": "东北风微风转东南风微风",

"week": "星期六",

"date": "20140322"

},

"day_20140323": {

"temperature": "9℃~19℃",

"weather": "阴",

"weather_id": {

"fa": "02",

"fb": "02"

},

"wind": "南风微风",

"week": "星期日",

"date": "20140323"

},

"day_20140324": {

"temperature": "8℃~19℃",

"weather": "晴转多云",

"weather_id": {

"fa": "00",

"fb": "01"

},

"wind": "西南风微风转南风微风",

"week": "星期一",

"date": "20140324"

},

"day_20140325": {

"temperature": "9℃~20℃",

"weather": "多云",

"weather_id": {

"fa": "01",

"fb": "01"

},

"wind": "南风微风",

"week": "星期二",

"date": "20140325"

},

"day_20140326": {

"temperature": "10℃~19℃",

"weather": "多云",

"weather_id": {

"fa": "01",

"fb": "01"

},

"wind": "南风微风",

"week": "星期三",

"date": "20140326"

},

"day_20140327": {

"temperature": "11℃~20℃",

"weather": "阴转多云",

"weather_id": {

"fa": "02",

"fb": "01"

},

"wind": "南风微风转无持续风向微风",

"week": "星期四",

"date": "20140327"

}

}

}

}

时间: 2024-07-28 18:07:23

全国天气查询接口的相关文章

全国天气查询api

全国天气查询接口: 根据城市名称刻查询到该城市的天气情况,湿度,温度,穿衣指数等 详情:http://www.haoservice.com/docs/6 示例演示: { "resultcode": "200", "reason": "查询成功!", "result": { "sk": { /*当前实况天气*/"temp": "21", /*当前温度

天气查询接口文档

天气查询接口演示代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using Sy

天气查询接口演示代码

天气查询接口演示代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Security;using System.Security.Cryptography.X509Certificates;using System.Net;using System.IO;using System.IO.Compression;using System.Text.

天气查询接口演示示例

天气查询接口演示代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using Sy

天气查询接口

天气查询接口演示代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Security;using System.Security.Cryptography.X509Certificates;using System.Net;using System.IO;using System.IO.Compression;using System.Text.

微信公众号天气查询接口实例

这是来自百度API的一个天气查询的接口,支持历史7天和未来4天的天气情况查询,接口不错,分享给大家. 接口申请地址:http://apistore.baidu.com/apiworks/servicedetail/112.html 首先,获取一下apikey(貌似需要手机验证码认证下) 我调用的是历史7天和未来4天的接口,接口地址是: http://apis.baidu.com/apistore/weatherservice/recentweathers 我将这个天气查询的功能集成在了微信公众平

Android程序之全国天气预报查询接口演示

一.项目演示效果如下: 项目源代码下载地址:http://yunpan.cn/cZVWIieuFyK9I 访问密码 2eac二.使用 聚合数据SDK:(1)我使用的是聚合数据上的天气预报查询,地址:http://www.juhe.cn/(2)注册账号—创建一个新应用(在个人中心页面—数据中心—申请数据)–填入自己的应用–找到分类–天气预报—全国天气预报 (3)下载sdk (由于项目使用的是1点几的版本,所以请下载:包含在我的项目中!)(4)参考开发文档:http://www.juhe.cn/ju

Android程序之全国天气预报查询接口调用

一.项目演示效果如下: 项目源代码下载地址: http://yunpan.cn/cZVWIieuFyK9I   访问密码 2eac 二.使用 聚合数据SDK: (1)聚合数据官网地址:http://www.juhe.cn/ (2)注册账号-创建一个新应用(在个人中心页面-数据中心-申请数据)–填入自己的应用–找到分类–天气预报-全国天气预报 (3)下载sdk (由于项目使用的是1点几的版本,所以请下载:包含在我的项目中!) (4)参考开发文档:http://www.juhe.cn/juhesdk

全网、全国最好用的基于经纬度的天气查询、天气预报接口

大家好,我们是中国科学院资源与环境信息系统国家重点实验室的人员(学生).在软件开发过程中,我们发现,传统获取天气信息的接口大多是基于所谓的天气码,数据源大多来自中国国家气象局:随着移动互联网的快速发展,大家都希望通过经纬度查询天气信息. 最开始我们搜寻全网,发现谷歌提供了利用经纬度获取天气信息的接口,然而一测试发现,由于“你懂的”原因,它已经无法使用了.国内IT三哥——百度貌似也提供了这么一个接口,但是又是需要神马key啊,验证文件啊等等一堆手续:而且它还限制每天的单个IP的访问次数,更让人讨厌