当前位置: 代码迷 >> ASP.NET >> 求“天气预报”服务,温度,湿度,该怎么处理
  详细解决方案

求“天气预报”服务,温度,湿度,该怎么处理

热度:6458   发布时间:2013-02-25 00:00:00.0
求“天气预报”服务,温度,湿度
求“天气预报”服务,必须有“温度”和“湿度”。

比如,在上海,就显示上海当天的,“温度”和“湿度”的数值,不需要图片,只要数值,有这样的实例,或是服务吗?

------解决方案--------------------------------------------------------
http://m.weather.com.cn/data/城市代码 图片温度湿度都能取到 你再取你要的数据就可以了
------解决方案--------------------------------------------------------
webservice
------解决方案--------------------------------------------------------
探讨

webservice

------解决方案--------------------------------------------------------
http://www.webxml.com.cn/zh_cn/index.aspx

貌似1楼和楼主id很相似。
------解决方案--------------------------------------------------------
探讨

引用:

webservice

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx

------解决方案--------------------------------------------------------
webservice 不合适的话 自己请求去抓吧 。
------解决方案--------------------------------------------------------
http://m.weather.com.cn/data/101281401 结果怎么解析啊


{"weatherinfo":{"city":"云浮","city_en":"yunfu","date_y":"2012年3月5日","date":"","week":"星期一","fchh":"11","cityid":"101281401","temp1":"25℃~18℃","temp2":"23℃~18℃","temp3":"23℃~18℃","temp4":"20℃~16℃","temp5":"20℃~16℃","temp6":"20℃~16℃","tempF1":"77℉~64.4℉","tempF2":"73.4℉~64.4℉","tempF3":"73.4℉~64.4℉","tempF4":"68℉~60.8℉","tempF5":"68℉~60.8℉","tempF6":"68℉~60.8℉","weather1":"小到中雨","weather2":"中雨","weather3":"中雨","weather4":"小雨","weather5":"小雨","weather6":"小雨","img1":"21","img2":"99","img3":"8","img4":"99","img5":"8","img6":"99","img7":"7","img8":"99","img9":"7","img10":"99","img11":"7","img12":"99","img_single":"21","img_title1":"小到中雨","img_title2":"小到中雨","img_title3":"中雨","img_title4":"中雨","img_title5":"中雨","img_title6":"中雨","img_title7":"小雨","img_title8":"小雨","img_title9":"小雨","img_title10":"小雨","img_title11":"小雨","img_title12":"小雨","img_title_single":"小到中雨","wind1":"微风","wind2":"微风","wind3":"微风","wind4":"微风","wind5":"微风","wind6":"微风","fx1":"微风","fx2":"微风","fl1":"小于3级","fl2":"小于3级","fl3":"小于3级","fl4":"小于3级","fl5":"小于3级","fl6":"小于3级","index":"热","index_d":"天气较热,建议着短裙、短裤、短套装、T恤等夏季服装。年老体弱者宜着长袖衬衫和单裤。","index48":"暖","index48_d":"建议着长袖衬衫加单裤等春秋过渡装。年老体弱者宜着针织长袖衬衫、马甲和长裤。","index_uv":"最弱","index48_uv":"最弱","index_xc":"不宜","index_tr":"一般","index_co":"舒适","st1":"25","st2":"18","st3":"23","st4":"18","st5":"23","st6":"18","index_cl":"不宜","index_ls":"不宜","index_ag":"极易发"}}