雅虎天气代码查询按小时查询数据

每小时气象数据
hourly meteorological data
高能物理专业英语翻译 ...
hour, per
每小时气象数据
hourly meteorological data
house sector ...
基于3个网页-
hourly meteorological data
hourly meteorological data
&2,447,543篇论文数据,部分数据来源于
然后,将气象资料用样条插值法在时间上进行插值,得到每小时值,以便与卫星遥感数据在时间上匹配。
Then the meteorological information was interpolated to each hour using the spline interpolation to match up the remote sensing data.
西蒙的天气预报站链接到了互联网上,为网民提供实时气象资讯,每3秒钟更新一次数据,24小时不间断服务。
Simon linked his own weather station to the internet and provides live information24 hours a day, automatically updated every 3 seconds.
$firstVoiceSent
- 来自原声例句
请问您想要如何调整此模块?
感谢您的反馈,我们会尽快进行适当修改!
请问您想要如何调整此模块?
感谢您的反馈,我们会尽快进行适当修改!最后登录16-11-15在线时间3770 小时赞16 注册时间12-11-2积分8091帖子精华0UID427589
注册日期: 12-11-2
帖子: 2601|积分: 8091
赞助商广告
Safari 7.0.5
Mac OS X 10.9.4
本帖最后由 luciiferre 于 14-7-5 18:24 编辑
自从初代 iPhone 开始,天气应用使用的一直是来自雅虎的天气数据,当然,雅虎的天气数据也来自 The Weather Channel(天气频道)。自从谷歌前高管 Marissa Mayer 加入雅虎后,公司的移动策略就是主推 iOS 软件。不久之后,雅虎发布了备受好评的 Yahoo 天气应用并对邮件客户端进行了大幅更新,后来的新闻 Digest 和全新 Flickr 都是非常不错的应用。
Yahoo 天气在 iOS 6时代推出,等到苹果发布全新 iOS 7后,很多人才恍然大悟,iOS 7中预装的天气应用很多设计元素都来自 Yahoo 天气,苹果将 Yahoo 天气评为年度最佳应用以示奖(an)励(fu)。iOS 7 默认天气应用去掉了Yahoo 天气中的 Flickr 图片以及更详细的天气信息,动态的天气效果看起来非常绚丽。除了天气应用,雅虎还为 iOS 股票应用提供数据,还有消息称雅虎想要成为 iOS 默认的搜索引擎。只是令人没想到的是,iOS 8 天气应用竟然绕过雅虎,直接与 The Weather Channel 合作。很多分析师认为这是雅虎的巨大损失。那么不算提供的数据,Yahoo 天气和天气频道自家出品的应用体验如何呢?
14-7-5 18:18:11 上传
14-7-5 18:19:14 上传
两款 App 的图标都采用蓝色背景,如果在 iOS 6之前,这样的图标设计看起来非常丑。不过如今 iOS 7发布已经接近一年,而 iOS 8正式版也即将发布,这样的图标我们也习惯了。Yahoo 天气应用的图标上有太阳和云朵以及 Yahoo 的新标志,而天气频道的图标只有英文 The Weather Channel 的字样,看起来没有 Yahoo 天气那样精致。
Yahoo 天气和天气频道的本土化优化都非常不错,对中文和国内城市地名的支持很好。启动速度上,天气频道要慢一些。Yahoo 天气的启动界面采用非常素雅的背景设计,整体感觉很清新,屏幕中间是全新的 Yahoo logo。天气频道的启动界面背景是一篇星空,还有雪山顶的背景,这个场景看起来很梦幻,中间也是应用 logo,还增加了一句“IT’S AMAZING OUT THERE”,外面的世界很美好,这句话将整个应用的格调提升一大截,不过还是一款天气应用而已。
14-7-5 18:19:02 上传
进入应用主界面后,Yahoo 天气和天气频道都会请求访问位置信息,并自动加载用户所在城市的天气信息。两款 App 从结构设计上对比,还是非常相似的。在屏幕的最上方,可以看到国 家和城市信息,左上角是主菜单功能,而右上角的+号可以添加或管理城市。Yahoo 天气的数据也是天气频道供应,所以数据方面几乎没有什么差别。
主界面中,两款 App 都能显示目前的温度,最高温度和最低温度,以及现在的天气描述,比如晴、夜间晴朗等。Yahoo 天气背景可以自动调用 Flickr 上的图片,这也是雅虎为自家其它服务宣传的结果。Yahoo 天气的背景图片变化很多,右下角可以点击进入 Flickr 查看原始图片。应用界面采用纤细字体,与 iOS 7风格很匹配。天气频道的详细信息显示在中间的圆形上,信息同样非常完整,包括温度、图标等。天气频道的背景自然不会调用来自 Flickr 的图片,应用会根据天气状况自动选择相适配的图片,这与 iOS 7默认天气应用的设计不同。当然,这种偏向于天气状况的图标并没有 Yahoo 天气 Flickr 那样丰富多彩,只是更简约一些。
两款 App 都支持下拉刷新的操作,而且动画效果都非常特别。Yahoo 天气的下拉刷新效果是一个不断变化的小太阳,太阳射线会跟随着刷新而变化。天气频道的刷新动画效果直接替代了天气信息显示位置,有正在获取您的天气字样,此外上方的图标会各种变化,在不同的天气状况之间变换。两款 App 都支持通过左右划动手势在不同城市之间切换,动画效果非常流畅。
14-7-5 18:19:09 上传
14-7-5 18:19:03 上传
由于支持左右划动切换城市,所以两款 App 都不支持通过手势激活主菜单。当然,对于天气应用来说,开启主菜单的机会并不多。Yahoo 天气的主菜单中最重要的功能就是城市地点管理了。此外,我们还可以将目前的天气分享出去,非常方便。其它的功能包括设置、意见与建议等辅助功能。Yahoo 天气的设置界面采用深色背景设计。天气频道的主菜单中可以调整单位以及是否预报当前的位置,城市管理界面在增加城市功能中。天气频道的的设置界面采用标准的 iOS 7风格适配,包括菜单、字体以及拨动开关等。
两款 App 都可以根据自己的需要调整天气的单位,比如温度的单位以及风速的单位等。当然,对于普通用户来说,这些设定基本上不会访问。单位的调整也是天气应用中唯一算得上设定的内容了,其余功能和内容访问都可以在主界面中完成。
14-7-5 18:19:15 上传
城市添加&管理
14-7-5 18:18:58 上传
对于大部分用户来说,只关注本地天气信息已经足够,不过能查看一些知名城市或国 家的天气还是非常有乐趣的,最起码可以看到更多的天气状况,视觉上也会感觉更惊艳。两款 App 都可以通过点击主界面右上角的+号完成城市添加功能。我们只需要在文本框中输入城市名称即可,同时支持汉语拼音和英文。添加城市功能上,Yahoo 天气的功能性要比天气频道更易用,反应速度更快。对于已经添加的城市,两款 App 都可以方便快捷的进行编辑,采用的是 iOS 7原生的编辑按钮,对于删除和调整位置的功能支持都非常完善。天气频道添加城市界面下方还有 Pollen 和恶劣天气的警报,只是无法进行测试,这两项功能上手很复杂,只会让用户感觉更加混乱。
14-7-5 18:18:56 上传
详细天气信息
14-7-5 18:19:08 上传
在两款 App 的主界面只有非常简单的天气信息,如果想要了解更多天气情况和未来的预告,只需向下滑动即可,当然那两款程序对于信息的安排顺序并不相同。Yahoo 天气中首先是预报随后是详细信息,而天气频道则会显示现在的详细天气状况,这个界面包括体感温度、日出日落、温度、露点、风力和紫外线等信息。Yahoo 天气的信息被分散显示在各种版块中,详细信息中包括体感温度、湿度和能见度等,只是布局上没有天气频道那样看着舒服与合理。Yahoo 天气应用的优势是更灵活,允许用户将各种信息面板拖动,每个信息面板右上角有可以拖动的触点。当然,天气频道最让人闹心的就是各种信息之间竟然插入广告,让体验大大下降。
未来天气预报
14-7-5 18:19:00 上传
对于天气预报,Yahoo 天气和天气频道都支持预测未来几个小时,以及未来5天或10天的信息。只是对于信息的布局,两款 App 都有自己的想法。数据上自然没有太多的区别,Yahoo 天气将未来几个小时的天气情况现实为横排图标,我们可以通过左右划动进行切换和查看,未来几天的天气情况会显示在竖排的列表中,同时配有相同的天气情况图标。
天气频道的预报都是采用列表方式,这样的好处是可以看到更多的信息,比如降水量和风向等,当然这样的设计似乎突出不了重点。Yahoo 天气这样的设计也被应用在 iOS 7默认天气中。两款 App 的图标也有一些不同,Yahoo 天气的图标采用简单的线条勾勒,与 iOS 7系统更相配。天气频道这种图标感觉也非常简约,两种设计都有各自的优点,你喜欢哪个呢?
14-7-5 18:19:12 上传
对于想要了解更多信息的用户来说,直接查看卫星云图是不错的选择,虽然看不出什么详细的信息来,但有个地图和云彩什么的给人的感觉也更专业。Yahoo 天气和天气频道的卫星云图功能设计都非常不错,只是各种图层叠加,可以查看降雨和风量等信息,这个功能的可玩性比较多,看不懂卫星云图的玩家也可以尝试一下,很有乐趣。简单的卫星图会直接显示在详细天气信息中,通过点击进入可以键入拥有更多功能的卫星云图界面。
14-7-5 18:19:05 上传
Yahoo 天气中的风速与气压,各种太阳和月亮等信息都没有太多实际用处,只是可以让用户更多的了解天气相关的信息,天气频道中的社交天气功能如果有更多人使用会带来更好的功能,毕竟根据卫星云图推测天气没有真人的感觉准确,只是使用天气报告的人太少。消息称下一代 iPhone 将集成气压计,用来更精准的预测天气情况。对于更多功能来说,两款 App 都没有太多的亮点,Yahoo 天气提供的信息太普通,而天气频道提供的功能使用人数太少,同样鸡肋。
总结:iOS 8中的默认天气应用将直接使用来自天气频道的信息,这对于雅虎来说,的确不是什么好消息。对于 iOS 系统中两款天气应用来说,细节和功能上的优化,Yahoo 天气更好一些,只是缺少一些创新性的功能,天气频道的发展非常快,应用整体结构非常清晰,社交天气和恶劣天气预警等功能都非常有发展,只是完成度还不够。对于想要了解更多信息的用户来说,如果更看重细节和多样化的背景图片,Yahoo 天气仍然是最好的选择。天气频道还有一些基本的功能并不完善,经常会出现无法获得数据等现象。
Yahoo 天气
14-7-5 18:17:44 上传
14-7-5 18:21:56 上传
优点: Flickr 图片、更好的城市添加功能、降水量、面板调整更灵活
不足:信息布局不合理
天气频道(The Weather Channel)
14-7-5 18:21:54 上传
14-7-5 18:21:56 上传
优点:更炫酷的刷新、详细信息布局更好
不足:启动慢、社交报告、有广告
最后登录16-11-16在线时间1195 小时赞7 注册时间13-11-15积分1172帖子精华0UID541263
( ☆☆☆ )
分享于 14-7-5 22:08:40
Safari 7.0.5
Mac OS X 10.9.4
天气频道没有用过不敢说,YAHOO天气根本不准,差2~3度,马上就删了。
最后登录16-9-5在线时间391 小时赞2 注册时间09-3-2积分638帖子精华0UID93449
( ☆☆☆ )
分享于 14-7-5 18:38:32
Safari 7.0.4
Mac OS X 10.9.3
一直在用Yahoo天气,很不错
最后登录16-11-12在线时间475 小时赞1 注册时间12-8-4积分379帖子精华0UID388898
分享于 14-7-5 18:40:36
Safari 7.0.5
Mac OS X 10.9.4
千万别用天气频道,它的炫酷只存在于最顶上的主界面。看到一个个格格不入的广告色块在更多信息的每个模块夹着心里十分不爽
最后登录16-11-12在线时间475 小时赞1 注册时间12-8-4积分379帖子精华0UID388898
分享于 14-7-5 18:53:05
Safari 7.0.5
Mac OS X 10.9.4
tiger199825 发表于 14-7-5 18:40
千万别用天气频道,它的炫酷只存在于最顶上的主界面。看到一个个格格不入的广告色块在更多信息的每个模块夹 ...
而且主界面的背景也是广告,还没有花钱去广告的按钮!!!逼人卸载啊。还是雅虎天气好
最后登录16-11-13在线时间1735 小时赞7 注册时间10-3-11积分1514帖子精华0UID150914
( ☆☆☆ )
分享于 14-7-5 22:42:10
Chrome 35.0.
Mac OS X 10.9.4
YAHOO天气用了感觉不怎么好,不准,删了
最后登录16-10-16在线时间2448 小时赞15 注册时间05-5-30积分11456帖子精华0UID972
分享于 14-7-6 01:52:29
Safari 7.0
tiger199825 发表于 14-7-5 18:40
千万别用天气频道,它的炫酷只存在于最顶上的主界面。看到一个个格格不入的广告色块在更多信息的每个模块夹 ...
刚装上,看到老大的留言,果断删。
最后登录16-11-15在线时间907 小时赞1 注册时间12-11-25积分4580帖子精华0UID437323
( ♘马上有钱 )
分享于 14-7-6 09:39:51
Chrome 21.0.1180.89
一直没有用什么天气预报
最后登录16-11-15在线时间900 小时赞10 注册时间12-10-3积分3556帖子精华0UID415795
( ☆☆☆☆ )
分享于 14-7-6 10:57:57
Chrome 35.0.
Mac OS X 10.9.3
用自带就够了
最后登录16-11-16在线时间227 小时赞1 注册时间10-8-31积分1009帖子精华0UID179098
( ☆☆☆ )
分享于 14-7-6 11:24:17
Safari 7.0
要下来用用获取yahoo天气 - 开源中国社区
当前访客身份:游客 [
当前位置:
发布于 日 19时,
目前免费的天气API只有YAHOO的可用,中央气象台的已失效,获得的不是当前天气。
代码片段(3)
1.&[代码]yahoo weather&&&&
def get_weather() :
#shanghai, 2151849
url = '/forecastrss?w=2151849&u=c'
# namespace
yweather = '{http://xml./ns/rss/1.0}'
geo = '{http://www.w3.org/2003/01/geo/wgs84_pos#}'
# get weather data
data = urllib2.urlopen(url).read()
#tree = ET.ElementTree(file='weather.xml')
tree = ET.fromstring(data)
root = tree
#root = tree.getroot() #从文件读时启用此行代码
#print root.tag, root.attrib
content = 'City:shanghai\n'
channel = root.find('channel')
wind = channel.find(yweather+'wind')
content += 'Chill:%s direction:%s speed:%skm/h\n' % (wind.attrib['chill'], wind.attrib['direction'], wind.attrib['speed'])
atmosphere = channel.find(yweather+'atmosphere')
content += 'Humidity:%s visibility:%s pressure:%smb rising:%s\n' % (atmosphere.attrib['humidity'], atmosphere.attrib['visibility'], atmosphere.attrib['pressure'], atmosphere.attrib['rising'])
astronomy = channel.find(yweather+'astronomy')
content += 'Sunrise:%s sunset:%s\n' % (astronomy.attrib['sunrise'], astronomy.attrib['sunset'])
item = channel.find('item')
pubdate = item.find('pubDate')
content += 'Public on %s\n' % pubdate.text
current = item.find(yweather + 'condition')
content += 'Current: %s℃ %s\n' % (current.attrib['temp'], weather_table[int(current.attrib['code'])-1])
for node in item.iter(yweather + 'forecast'):
content += '%s %s-%s℃ %s\n' % (node.attrib['day'],
node.attrib['low'],node.attrib['high'], weather_table[int(node.attrib['code'])-1])
#print content
return content
2.&[代码]天气代码表&&&&
weather_table = (
'热带风暴',
'局部多云',
'局部多云',
'雨夹冰雹',
'局部雷雨',
'偶有雷雨',
'偶有雷雨',
'偶有阵雨',
'零星阵雪',
'局部多云',
'局部雷阵雨',
'水深火热',
3.&[代码][Python]代码&&&&
#现在调用我前面分享的代码,把天气信息发送到我的邮箱,或手机
# encoding = UTF-8
from myemail import sendmail
from weather import get_weather
if __name__ == '__main__':
get_weather()
sendmail('', 'weather', info)
# 换成139邮箱
开源中国-程序员在线工具:
相关的代码(470)
0回/1010阅
&华为C8815手机套 C8815保护套 /
2楼:梦无涯 发表于
引用来自“longtengxp”的评论 &华为C8815手机套 C8815保护套 /
,这家伙发的都是广告。
3楼:zhangbo2012 发表于
/forecastrss?w=2151849&u=c 这个地址我这里打不开,所以拿不到内容,不知道为什么&
4楼:pengyouya123 发表于
不能吧,我刚才还打开了呢,你用的是平板吧,平板可能打不开
5楼:cooklood 发表于
/weather/ &从这个进,第一次都加载不出来。后面的W和C参数先不加试试
开源从代码分享开始
pengyouya123的其它代码其实文凭不过是一张火车票,清华北大是软卧,本科是硬卧,专科是硬座,民办的站票,成教的厕所挤着。火车到站,都下车找工作,才发现老板并不太关心你是怎么来的,只关心你会做什么。
(@_@;)我是程序猿,我编程,我快乐,知识改变命运,技术成就梦想 & oh yeah!欢迎大家加入QQ交流群: 或者给我Email:
随笔 - 241, 文章 - 1, 评论 - 41, 引用 - 0
首先看下官方给出的三个数据接口:
接口地址:
全国各城市代码如下
"省": "北京",
"市名": "北京",
"编码": ""
"市名": "朝阳",
"编码": ""
"市名": "顺义",
"编码": ""
"市名": "怀柔",
"编码": ""
"市名": "通州",
"编码": ""
"市名": "昌平",
"编码": ""
"市名": "延庆",
"编码": ""
"市名": "丰台",
"编码": ""
"市名": "石景山",
"编码": ""
"市名": "大兴",
"编码": ""
"市名": "房山",
"编码": ""
"市名": "密云",
"编码": ""
"市名": "门头沟",
"编码": ""
"市名": "平谷",
"编码": ""
"市名": "八达岭",
"编码": ""
"市名": "佛爷顶",
"编码": ""
"市名": "汤河口",
"编码": ""
"市名": "密云上甸子",
"编码": ""
"市名": "斋堂",
"编码": ""
"市名": "霞云岭",
"编码": ""
"市名": "北京城区",
"编码": ""
"市名": "海淀",
"编码": ""
"省": "天津",
"市名": "天津",
"编码": ""
"市名": "宝坻",
"编码": ""
"市名": "东丽",
"编码": ""
"市名": "西青",
"编码": ""
"市名": "北辰",
"编码": ""
"市名": "蓟县",
"编码": ""
"市名": "汉沽",
"编码": ""
"市名": "静海",
"编码": ""
"市名": "津南",
"编码": ""
"市名": "塘沽",
"编码": ""
"市名": "大港",
"编码": ""
"市名": "武清",
"编码": ""
"市名": "宁河",
"编码": ""
"省": "上海",
"市名": "上海",
"编码": ""
"市名": "宝山",
"编码": ""
"市名": "嘉定",
"编码": ""
"市名": "南汇",
"编码": ""
"市名": "浦东",
"编码": ""
"市名": "青浦",
"编码": ""
"市名": "松江",
"编码": ""
"市名": "奉贤",
"编码": ""
"市名": "崇明",
"编码": ""
"市名": "徐家汇",
"编码": ""
"市名": "闵行",
"编码": ""
"市名": "金山",
"编码": ""
"省": "河北",
"市名": "石家庄",
"编码": ""
"市名": "张家口",
"编码": ""
"市名": "承德",
"编码": ""
"市名": "唐山",
"编码": ""
"市名": "秦皇岛",
"编码": ""
"市名": "沧州",
"编码": ""
"市名": "衡水",
"编码": ""
"市名": "邢台",
"编码": ""
"市名": "邯郸",
"编码": ""
"市名": "保定",
"编码": ""
"市名": "廊坊",
"编码": ""
"省": "河南",
"市名": "郑州",
"编码": ""
"市名": "新乡",
"编码": ""
"市名": "许昌",
"编码": ""
"市名": "平顶山",
"编码": ""
"市名": "信阳",
"编码": ""
"市名": "南阳",
"编码": ""
"市名": "开封",
"编码": ""
"市名": "洛阳",
"编码": ""
"市名": "商丘",
"编码": ""
"市名": "焦作",
"编码": ""
"市名": "鹤壁",
"编码": ""
"市名": "濮阳",
"编码": ""
"市名": "周口",
"编码": ""
"市名": "漯河",
"编码": ""
"市名": "驻马店",
"编码": ""
"市名": "三门峡",
"编码": ""
"市名": "济源",
"编码": ""
"市名": "安阳",
"编码": ""
"省": "安徽",
"市名": "合肥",
"编码": ""
"市名": "芜湖",
"编码": ""
"市名": "淮南",
"编码": ""
"市名": "马鞍山",
"编码": ""
"市名": "安庆",
"编码": ""
"市名": "宿州",
"编码": ""
"市名": "阜阳",
"编码": ""
"市名": "亳州",
"编码": ""
"市名": "黄山",
"编码": ""
"市名": "滁州",
"编码": ""
"市名": "淮北",
"编码": ""
"市名": "铜陵",
"编码": ""
"市名": "宣城",
"编码": ""
"市名": "六安",
"编码": ""
"市名": "巢湖",
"编码": ""
"市名": "池州",
"编码": ""
"市名": "蚌埠",
"编码": ""
"省": "浙江",
"市名": "杭州",
"编码": ""
"市名": "舟山",
"编码": ""
"市名": "湖州",
"编码": ""
"市名": "嘉兴",
"编码": ""
"市名": "金华",
"编码": ""
"市名": "绍兴",
"编码": ""
"市名": "台州",
"编码": ""
"市名": "温州",
"编码": ""
"市名": "丽水",
"编码": ""
"市名": "衢州",
"编码": ""
"市名": "宁波",
"编码": ""
"省": "重庆",
"市名": "重庆",
"编码": ""
"市名": "合川",
"编码": ""
"市名": "南川",
"编码": ""
"市名": "江津",
"编码": ""
"市名": "万盛",
"编码": ""
"市名": "渝北",
"编码": ""
"市名": "北碚",
"编码": ""
"市名": "巴南",
"编码": ""
"市名": "长寿",
"编码": ""
"市名": "黔江",
"编码": ""
"市名": "万州天城",
"编码": ""
"市名": "万州龙宝",
"编码": ""
"市名": "涪陵",
"编码": ""
"市名": "开县",
"编码": ""
"市名": "城口",
"编码": ""
"市名": "云阳",
"编码": ""
"市名": "巫溪",
"编码": ""
"市名": "奉节",
"编码": ""
"市名": "巫山",
"编码": ""
"市名": "潼南",
"编码": ""
"市名": "垫江",
"编码": ""
"市名": "梁平",
"编码": ""
"市名": "忠县",
"编码": ""
"市名": "石柱",
"编码": ""
"市名": "大足",
"编码": ""
"市名": "荣昌",
"编码": ""
"市名": "铜梁",
"编码": ""
"市名": "璧山",
"编码": ""
"市名": "丰都",
"编码": ""
"市名": "武隆",
"编码": ""
"市名": "彭水",
"编码": ""
"市名": "綦江",
"编码": ""
"市名": "酉阳",
"编码": ""
"市名": "秀山",
"编码": ""
"市名": "沙坪坝",
"编码": ""
"市名": "永川",
"编码": ""
"省": "福建",
"市名": "福州",
"编码": ""
"市名": "泉州",
"编码": ""
"市名": "漳州",
"编码": ""
"市名": "龙岩",
"编码": ""
"市名": "晋江",
"编码": ""
"市名": "南平",
"编码": ""
"市名": "厦门",
"编码": ""
"市名": "宁德",
"编码": ""
"市名": "莆田",
"编码": ""
"市名": "三明",
"编码": ""
"省": "甘肃",
"市名": "兰州",
"编码": ""
"市名": "平凉",
"编码": ""
"市名": "庆阳",
"编码": ""
"市名": "武威",
"编码": ""
"市名": "金昌",
"编码": ""
"市名": "嘉峪关",
"编码": ""
"市名": "酒泉",
"编码": ""
"市名": "天水",
"编码": ""
"市名": "武都",
"编码": ""
"市名": "临夏",
"编码": ""
"市名": "合作",
"编码": ""
"市名": "白银",
"编码": ""
"市名": "定西",
"编码": ""
"市名": "张掖",
"编码": ""
"省": "广东",
"市名": "广州",
"编码": ""
"市名": "惠州",
"编码": ""
"市名": "梅州",
"编码": ""
"市名": "汕头",
"编码": ""
"市名": "深圳",
"编码": ""
"市名": "珠海",
"编码": ""
"市名": "佛山",
"编码": ""
"市名": "肇庆",
"编码": ""
"市名": "湛江",
"编码": ""
"市名": "江门",
"编码": ""
"市名": "河源",
"编码": ""
"市名": "清远",
"编码": ""
"市名": "云浮",
"编码": ""
"市名": "潮州",
"编码": ""
"市名": "东莞",
"编码": ""
"市名": "中山",
"编码": ""
"市名": "阳江",
"编码": ""
"市名": "揭阳",
"编码": ""
"市名": "茂名",
"编码": ""
"市名": "汕尾",
"编码": ""
"市名": "韶关",
"编码": ""
"省": "广西",
"市名": "南宁",
"编码": ""
"市名": "柳州",
"编码": ""
"市名": "来宾",
"编码": ""
"市名": "桂林",
"编码": ""
"市名": "梧州",
"编码": ""
"市名": "防城港",
"编码": ""
"市名": "贵港",
"编码": ""
"市名": "玉林",
"编码": ""
"市名": "百色",
"编码": ""
"市名": "钦州",
"编码": ""
"市名": "河池",
"编码": ""
"市名": "北海",
"编码": ""
"市名": "崇左",
"编码": ""
"市名": "贺州",
"编码": ""
"省": "贵州",
"市名": "贵阳",
"编码": ""
"市名": "安顺",
"编码": ""
"市名": "都匀",
"编码": ""
"市名": "兴义",
"编码": ""
"市名": "铜仁",
"编码": ""
"市名": "毕节",
"编码": ""
"市名": "六盘水",
"编码": ""
"市名": "遵义",
"编码": ""
"市名": "凯里",
"编码": ""
"省": "云南",
"市名": "昆明",
"编码": ""
"市名": "红河",
"编码": ""
"市名": "文山",
"编码": ""
"市名": "玉溪",
"编码": ""
"市名": "楚雄",
"编码": ""
"市名": "普洱",
"编码": ""
"市名": "昭通",
"编码": ""
"市名": "临沧",
"编码": ""
"市名": "怒江",
"编码": ""
"市名": "香格里拉",
"编码": ""
"市名": "丽江",
"编码": ""
"市名": "德宏",
"编码": ""
"市名": "景洪",
"编码": ""
"市名": "大理",
"编码": ""
"市名": "曲靖",
"编码": ""
"市名": "保山",
"编码": ""
"省": "内蒙古",
"市名": "呼和浩特",
"编码": ""
"市名": "乌海",
"编码": ""
"市名": "集宁",
"编码": ""
"市名": "通辽",
"编码": ""
"市名": "阿拉善左旗",
"编码": ""
"市名": "鄂尔多斯",
"编码": ""
"市名": "临河",
"编码": ""
"市名": "锡林浩特",
"编码": ""
"市名": "呼伦贝尔",
"编码": ""
"市名": "乌兰浩特",
"编码": ""
"市名": "包头",
"编码": ""
"市名": "赤峰",
"编码": ""
"省": "江西",
"市名": "南昌",
"编码": ""
"市名": "上饶",
"编码": ""
"市名": "抚州",
"编码": ""
"市名": "宜春",
"编码": ""
"市名": "鹰潭",
"编码": ""
"市名": "赣州",
"编码": ""
"市名": "景德镇",
"编码": ""
"市名": "萍乡",
"编码": ""
"市名": "新余",
"编码": ""
"市名": "九江",
"编码": ""
"市名": "吉安",
"编码": ""
"省": "湖北",
"市名": "武汉",
"编码": ""
"市名": "黄冈",
"编码": ""
"市名": "荆州",
"编码": ""
"市名": "宜昌",
"编码": ""
"市名": "恩施",
"编码": ""
"市名": "十堰",
"编码": ""
"市名": "神农架",
"编码": ""
"市名": "随州",
"编码": ""
"市名": "荆门",
"编码": ""
"市名": "天门",
"编码": ""
"市名": "仙桃",
"编码": ""
"市名": "潜江",
"编码": ""
"市名": "襄樊",
"编码": ""
"市名": "鄂州",
"编码": ""
"市名": "孝感",
"编码": ""
"市名": "黄石",
"编码": ""
"市名": "咸宁",
"编码": ""
"省": "四川",
"市名": "成都",
"编码": ""
"市名": "自贡",
"编码": ""
"市名": "绵阳",
"编码": ""
"市名": "南充",
"编码": ""
"市名": "达州",
"编码": ""
"市名": "遂宁",
"编码": ""
"市名": "广安",
"编码": ""
"市名": "巴中",
"编码": ""
"市名": "泸州",
"编码": ""
"市名": "宜宾",
"编码": ""
"市名": "内江",
"编码": ""
"市名": "资阳",
"编码": ""
"市名": "乐山",
"编码": ""
"市名": "眉山",
"编码": ""
"市名": "凉山",
"编码": ""
"市名": "雅安",
"编码": ""
"市名": "甘孜",
"编码": ""
"市名": "阿坝",
"编码": ""
"市名": "德阳",
"编码": ""
"市名": "广元",
"编码": ""
"市名": "攀枝花",
"编码": ""
"省": "宁夏",
"市名": "银川",
"编码": ""
"市名": "中卫",
"编码": ""
"市名": "固原",
"编码": ""
"市名": "石嘴山",
"编码": ""
"市名": "吴忠",
"编码": ""
"省": "青海",
"市名": "西宁",
"编码": ""
"市名": "黄南",
"编码": ""
"市名": "海北",
"编码": ""
"市名": "果洛",
"编码": ""
"市名": "玉树",
"编码": ""
"市名": "海西",
"编码": ""
"市名": "海东",
"编码": ""
"市名": "海南",
"编码": ""
"省": "山东",
"市名": "济南",
"编码": ""
"市名": "潍坊",
"编码": ""
"市名": "临沂",
"编码": ""
"市名": "菏泽",
"编码": ""
"市名": "滨州",
"编码": ""
"市名": "东营",
"编码": ""
"市名": "威海",
"编码": ""
"市名": "枣庄",
"编码": ""
"市名": "日照",
"编码": ""
"市名": "莱芜",
"编码": ""
"市名": "聊城",
"编码": ""
"市名": "青岛",
"编码": ""
"市名": "淄博",
"编码": ""
"市名": "德州",
"编码": ""
"市名": "烟台",
"编码": ""
"市名": "济宁",
"编码": ""
"市名": "泰安",
"编码": ""
"省": "陕西",
"市名": "西安",
"编码": ""
"市名": "延安",
"编码": ""
"市名": "榆林",
"编码": ""
"市名": "铜川",
"编码": ""
"市名": "商洛",
"编码": ""
"市名": "安康",
"编码": ""
"市名": "汉中",
"编码": ""
"市名": "宝鸡",
"编码": ""
"市名": "咸阳",
"编码": ""
"市名": "渭南",
"编码": ""
"省": "山西",
"市名": "太原",
"编码": ""
"市名": "临汾",
"编码": ""
"市名": "运城",
"编码": ""
"市名": "朔州",
"编码": ""
"市名": "忻州",
"编码": ""
"市名": "长治",
"编码": ""
"市名": "大同",
"编码": ""
"市名": "阳泉",
"编码": ""
"市名": "晋中",
"编码": ""
"市名": "晋城",
"编码": ""
"市名": "吕梁",
"编码": ""
"省": "新疆",
"市名": "乌鲁木齐",
"编码": ""
"市名": "石河子",
"编码": ""
"市名": "昌吉",
"编码": ""
"市名": "吐鲁番",
"编码": ""
"市名": "库尔勒",
"编码": ""
"市名": "阿拉尔",
"编码": ""
"市名": "阿克苏",
"编码": ""
"市名": "喀什",
"编码": ""
"市名": "伊宁",
"编码": ""
"市名": "塔城",
"编码": ""
"市名": "哈密",
"编码": ""
"市名": "和田",
"编码": ""
"市名": "阿勒泰",
"编码": ""
"市名": "阿图什",
"编码": ""
"市名": "博乐",
"编码": ""
"市名": "克拉玛依",
"编码": ""
"省": "西藏",
"市名": "拉萨",
"编码": ""
"市名": "山南",
"编码": ""
"市名": "阿里",
"编码": ""
"市名": "昌都",
"编码": ""
"市名": "那曲",
"编码": ""
"市名": "日喀则",
"编码": ""
"市名": "林芝",
"编码": ""
"省": "台湾",
"市名": "台北县",
"编码": ""
"市名": "高雄",
"编码": ""
"市名": "台中",
"编码": ""
"省": "海南",
"市名": "海口",
"编码": ""
"市名": "三亚",
"编码": ""
"市名": "东方",
"编码": ""
"市名": "临高",
"编码": ""
"市名": "澄迈",
"编码": ""
"市名": "儋州",
"编码": ""
"市名": "昌江",
"编码": ""
"市名": "白沙",
"编码": ""
"市名": "琼中",
"编码": ""
"市名": "定安",
"编码": ""
"市名": "屯昌",
"编码": ""
"市名": "琼海",
"编码": ""
"市名": "文昌",
"编码": ""
"市名": "保亭",
"编码": ""
"市名": "万宁",
"编码": ""
"市名": "陵水",
"编码": ""
"市名": "西沙",
"编码": ""
"市名": "南沙岛",
"编码": ""
"市名": "乐东",
"编码": ""
"市名": "五指山",
"编码": ""
"市名": "琼山",
"编码": ""
"省": "湖南",
"市名": "长沙",
"编码": ""
"市名": "株洲",
"编码": ""
"市名": "衡阳",
"编码": ""
"市名": "郴州",
"编码": ""
"市名": "常德",
"编码": ""
"市名": "益阳",
"编码": ""
"市名": "娄底",
"编码": ""
"市名": "邵阳",
"编码": ""
"市名": "岳阳",
"编码": ""
"市名": "张家界",
"编码": ""
"市名": "怀化",
"编码": ""
"市名": "黔阳",
"编码": ""
"市名": "永州",
"编码": ""
"市名": "吉首",
"编码": ""
"市名": "湘潭",
"编码": ""
"省": "江苏",
"市名": "南京",
"编码": ""
"市名": "镇江",
"编码": ""
"市名": "苏州",
"编码": ""
"市名": "南通",
"编码": ""
"市名": "扬州",
"编码": ""
"市名": "宿迁",
"编码": ""
"市名": "徐州",
"编码": ""
"市名": "淮安",
"编码": ""
"市名": "连云港",
"编码": ""
"市名": "常州",
"编码": ""
"市名": "泰州",
"编码": ""
"市名": "无锡",
"编码": ""
"市名": "盐城",
"编码": ""
"省": "黑龙江",
"市名": "哈尔滨",
"编码": ""
"市名": "牡丹江",
"编码": ""
"市名": "佳木斯",
"编码": ""
"市名": "绥化",
"编码": ""
"市名": "黑河",
"编码": ""
"市名": "双鸭山",
"编码": ""
"市名": "伊春",
"编码": ""
"市名": "大庆",
"编码": ""
"市名": "七台河",
"编码": ""
"市名": "鸡西",
"编码": ""
"市名": "鹤岗",
"编码": ""
"市名": "齐齐哈尔",
"编码": ""
"市名": "大兴安岭",
"编码": ""
"省": "吉林",
"市名": "长春",
"编码": ""
"市名": "延吉",
"编码": ""
"市名": "四平",
"编码": ""
"市名": "白山",
"编码": ""
"市名": "白城",
"编码": ""
"市名": "辽源",
"编码": ""
"市名": "松原",
"编码": ""
"市名": "吉林",
"编码": ""
"市名": "通化",
"编码": ""
"省": "辽宁",
"市名": "沈阳",
"编码": ""
"市名": "鞍山",
"编码": ""
"市名": "抚顺",
"编码": ""
"市名": "本溪",
"编码": ""
"市名": "丹东",
"编码": ""
"市名": "葫芦岛",
"编码": ""
"市名": "营口",
"编码": ""
"市名": "阜新",
"编码": ""
"市名": "辽阳",
"编码": ""
"市名": "铁岭",
"编码": ""
"市名": "朝阳",
"编码": ""
"市名": "盘锦",
"编码": ""
"市名": "大连",
"编码": ""
"市名": "锦州",
"编码": ""
&appSettings&
&!--根据IP获取城市的网址--&
&add key = "GetCityByIP" value = "/cityjson"/&
&!--获取天气的网址--&
&add key = "GetWeather" value = ".cn/data/{0}.html"/&
&/appSettings&
给出数据下载
2. 图片接口&
这个图就是天气现象0(晴)的图片,其他天气现象的图片依此类推。c打头的图片是20*20像素的,b打头的是50*46像素的,d打头的是反白的图标,29*20像素,n打头的是夜间反白图标,29*20像素,注意这里的文件名是两位数字! 也许还有更多的图标,等待大家发掘啦~
对于第三个接口,返回信息比较全面,也是以json格式提供,格式如下
{"weatherinfo": {
//基本信息;
"city":"北京","city_en":"beijing",
"date_y":"日", "date":"", "week":"星期四", "fchh":"11", "cityid":"",
//摄氏温度
"temp1":"2℃~-7℃",
"temp2":"1℃~-7℃",
"temp3":"4℃~-7℃",
"temp4":"7℃~-5℃",
"temp5":"5℃~-3℃",
"temp6":"5℃~-2℃",
//华氏温度;
"tempF1":"35.6℉~19.4℉",
"tempF2":"33.8℉~19.4℉",
"tempF3":"39.2℉~19.4℉",
"tempF4":"44.6℉~23℉",
"tempF5":"41℉~26.6℉",
"tempF6":"41℉~28.4℉",
//天气描述;
"weather1":"晴",
"weather2":"晴",
"weather3":"晴",
"weather4":"晴转多云",
"weather5":"多云",
"weather6":"多云转阴",
//天气描述图片序号
"img1":"0",
"img2":"99",
"img3":"0",
"img4":"99",
"img5":"0",
"img6":"99",
"img7":"0",
"img8":"1",
"img9":"1",
"img10":"99",
"img11":"1",
"img12":"2",
"img_single":"0",
//图片名称;
"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":"北风3-4级转微风",
"wind2":"微风",
"wind3":"微风",
"wind4":"微风",
"wind5":"微风",
"wind6":"微风",
//风速级别描述
"fx1":"北风",
"fx2":"微风",
"fl1":"3-4级转小于3级",
"fl2":"小于3级",
"fl3":"小于3级",
"fl4":"小于3级",
"fl5":"小于3级",
"fl6":"小于3级",
//今天穿衣指数;
"index":"冷",
"index_d":"天气冷,建议着棉衣、皮夹克加羊毛衫等冬季服装。年老体弱者宜着厚棉衣或冬大衣。",
//48小时穿衣指数
"index48":"冷",
"index48_d":"天气冷,建议着棉衣、皮夹克加羊毛衫等冬季服装。年老体弱者宜着厚棉衣或冬大衣。",
//紫外线及48小时紫外线
"index_uv":"弱",
"index48_uv":"弱",
"index_xc":"适宜",
"index_tr":"一般",
//舒适指数
"index_co":"较不舒适",
"st1":"1",
"st2":"-8",
"st3":"2",
"st4":"-4",
"st5":"5",
"st6":"-5",
"index_cl":"较不宜",
"index_ls":"基本适宜",
"index_ag":"极不易发"}}
3. JSON接口 真没想到~居然有JSON接口~JSON在iPhone上分析起来要比XML简单很多 .cn/data/.html 这个是北京的JSON数据,那个HTML的名字是根据上文XML中的url得到的。这个JSON中包含了实时数据、7天天气预报、气象指数等丰富的数据
using System.Collections.G
using System.L
using System.W
using System.Web.UI;
using System.Web.UI.WebC
using System.C
using Newtonsoft.Json.L
using Newtonsoft.J
using System.T
using System.IO;
using System.Runtime.S
namespace posite
public partial class weather : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Response.Clear();
Response.Charset = "utf-8";
Response.ContentEncoding = Encoding.UTF8;
string city = readRemoteWeatherApi();
string cityCode = GetCityCode(city);
if (Request.QueryString["type"] != null && Request.QueryString["type"] == "js")
Response.ContentType = "text/javascript";
Response.Charset = "utf-8";
Response.Write(string.Format("var myWeather={0};", ReadWeatherJosnByCode(cityCode)));
Response.End();
YemlWeather ye = ReadWeatherByCode(cityCode);
/// &summary&
/// 获取自己的IP对应的城市ID
/// &/summary&
/// &returns&&/returns&
private string readRemoteWeatherApi()
string cityJson = string.E
string provincesAndCity = string.E
string provinces = string.E
string city = string.E
using (System.Net.WebClient wc = new System.Net.WebClient())
string url = ConfigurationManager.AppSettings["GetCityByIP"];
cityJson = wc.DownloadString(url);
cityJson = cityJson.Replace("var returnCitySN = ", "");
cityJson = cityJson.Replace(";", "");
JObject JObjtCity = (JObject)JsonConvert.DeserializeObject(cityJson);
provincesAndCity = JObjtCity["cname"].ToString();
provinces = provincesAndCity.Substring(0, provincesAndCity.IndexOf("省") + 1);
int n = provincesAndCity.IndexOf("省") + 1;
city = provincesAndCity.Substring(n, provincesAndCity.Length - 2 - n);
catch (Exception ex)
/// &summary&
/// 读取天气预报接口获取天气信息YemlWeather实体信息
/// &/summary&
/// &param name="citycode"&&/param&
/// &returns&读取天气预报接口获取天气信息YemlWeather实体信息&/returns&
public YemlWeather ReadWeatherByCode(string citycode)
YemlWeather WeatherInfo = new YemlWeather();
byte[] cityJson = null;
using (System.Net.WebClient wc = new System.Net.WebClient())
cityJson = wc.DownloadData(string.Format(".cn/data/{0}.html", citycode));
Encoding enc = Encoding.GetEncoding("utf-8");
string jsonStr = enc.GetString(cityJson);
WeatherInfo = (YemlWeather)JsonConvert.DeserializeObject(jsonStr, typeof(YemlWeather));
catch (Exception ex)
return WeatherI
/// &summary&
/// 读取天气预报接口获取天气信息json字符串
/// &/summary&
/// &param name="citycode"&&/param&
/// &returns&读取天气预报接口获取天气信息json字符串&/returns&
public string ReadWeatherJosnByCode(string citycode)
byte[] cityJson = null;
using (System.Net.WebClient wc = new System.Net.WebClient())
cityJson = wc.DownloadData(string.Format(".cn/data/{0}.html", citycode));
Encoding enc = Encoding.GetEncoding("utf-8");
string jsonStr = enc.GetString(cityJson);
return jsonS
catch (Exception ex)
/// &summary&
/// 根据城市名称返回城市代号
/// 城市名称可以有多种形式,如:
/// 安康市
/// 陕西安康
/// 陕西安康市
/// 陕西省安康市
/// &/summary&
/// &param name="cityName"&城市名称&/param&
/// &returns&&/returns&
private string GetCityCode(string cityName)
StreamReader sr = File.OpenText(string.Format("{0}/App_Data/CityCode.Json.txt", HttpContext.Current.Request.MapPath("~")));
string strCityCodeJson = sr.ReadToEnd();
JArray JObjtCityCode = (JArray)JsonConvert.DeserializeObject(strCityCodeJson);
bool isFound = false;
string cityCode = string.E
for (int i = 0; i & JObjtCityCode.C i++)
JArray citys = ConvterJArray(JObjtCityCode[i]["市"]);
for (int j = 0; j & citys.C j++)
//此为了实现多种城市形式匹配,所以添加多个判断
string _city = citys[j]["市名"].ToString().Replace("\"", "");
string _provice = JObjtCityCode[i]["省"].ToString().Replace("\"", "");
if (_city.ToString() == cityName
|| String.Format("{0}市", _city) == cityName
|| String.Format("{0}{1}", _provice, _city) == cityName
|| String.Format("{0}{1}市", _provice, _city) == cityName
|| String.Format("{0}省{1}", _provice, _city) == cityName
|| String.Format("{0}省{1}市", _provice, _city) == cityName)
cityCode = citys[j]["编码"].ToString();
isFound = true;
isFound = false;
if (isFound)
return cityCode.Replace("\"", "");
private JArray ConvterJArray(JToken token)
//jtoken 就是一个对象 可以转换层字符串
// 同时对于json 部分时间就是一个jtoken 对象 经转换 成一个jarray 对象
// 就可以知道他的lenght 同时循环处理内部
string tokenTos = token.ToString();
JArray op = (JArray)JsonConvert.DeserializeObject(tokenTos);
[DataContract]
public class WeatherInformation
[JsonProperty("city")]
public string City
[JsonProperty("city_en")]
public string CityEn
[JsonProperty("date_y")]
public string Date_y
[JsonProperty("date")]
public string Date
[JsonProperty("week")]
public string Week
[JsonProperty("fchh")]
public string Fchh
[JsonProperty("cityid")]
public string CityId
[JsonProperty("temp1")]
public string Temp1
[JsonProperty("temp2")]
public string Temp2
[JsonProperty("temp3")]
public string Temp3
[JsonProperty("temp4")]
public string Temp4
[JsonProperty("temp5")]
public string Temp5
[JsonProperty("temp6")]
public string Temp6
[JsonProperty("tempF1")]
public string TempF1
[JsonProperty("tempF2")]
public string TempF2
[JsonProperty("tempF3")]
public string TempF3
[JsonProperty("tempF4")]
public string TempF4
[JsonProperty("tempF5")]
public string TempF5
[JsonProperty("tempF6")]
public string TempF6
[JsonProperty("weather1")]
public string Weather1
[JsonProperty("weather2")]
public string Weather2
[JsonProperty("weather3")]
public string Weather3
[JsonProperty("weather4")]
public string Weather4
[JsonProperty("weather5")]
public string Weather5
[JsonProperty("weather6")]
public string Weather6
[JsonProperty("img1")]
public string Img1
[JsonProperty("img2")]
public string Img2
[JsonProperty("img3")]
public string Img3
[JsonProperty("img4")]
public string Img4
[JsonProperty("img5")]
public string Img5
[JsonProperty("img6")]
public string Img6
[JsonProperty("img7")]
public string Img7
[JsonProperty("img8")]
public string Img8
[JsonProperty("img9")]
public string Img9
[JsonProperty("img10")]
public string Img10
[JsonProperty("img11")]
public string Img11
[JsonProperty("img12")]
public string Img12
[JsonProperty("wind1")]
public string Wind1
[JsonProperty("wind2")]
public string Wind2
[JsonProperty("wind3")]
public string Wind3
[JsonProperty("wind4")]
public string Wind4
[JsonProperty("wind5")]
public string Wind5
[JsonProperty("wind6")]
public string Wind6
[JsonProperty("fx1")]
public string Fx1
[JsonProperty("fx2")]
public string Fx2
[JsonProperty("fl1")]
public string Fl1
[JsonProperty("fl2")]
public string Fl2
[JsonProperty("fl3")]
public string Fl3
[JsonProperty("fl4")]
public string Fl4
[JsonProperty("fl5")]
public string Fl5
[JsonProperty("fl6")]
public string Fl6
[JsonProperty("img_single")]
public string Img_single
[JsonProperty("img_title_single")]
public string Img_title_single
[JsonProperty("img_title1")]
public string Img_title1
[JsonProperty("img_title2")]
public string Img_title2
[JsonProperty("img_title3")]
public string Img_title3
[JsonProperty("img_title4")]
public string Img_title4
[JsonProperty("img_title5")]
public string Img_title5
[JsonProperty("img_title6")]
public string Img_title6
[JsonProperty("img_title7")]
public string Img_title7
[JsonProperty("img_title8")]
public string Img_title8
[JsonProperty("img_title9")]
public string Img_title9
[JsonProperty("img_title10")]
public string Img_title10
[JsonProperty("img_title11")]
public string Img_title11
[JsonProperty("img_title12")]
public string Img_title12
[JsonProperty("index")]
public string Index
[JsonProperty("index_d")]
public string Index_d
[JsonProperty("index48")]
public string Index48
[JsonProperty("index48_d")]
public string Index48_d
[JsonProperty("index_uv")]
public string Index_uv
[JsonProperty("index48_uv")]
public string Index48_uv
[JsonProperty("index_xc")]
public string Index_xc
[JsonProperty("index_tr")]
public string Index_tr
[JsonProperty("index_co")]
public string Index_co
[JsonProperty("st1")]
public string St1
[JsonProperty("st2")]
public string St2
[JsonProperty("st3")]
public string St3
[JsonProperty("st4")]
public string St4
[JsonProperty("st5")]
public string St5
[JsonProperty("st6")]
public string St6
[JsonProperty("index_cl")]
public string Index_cl
[JsonProperty("index_ls")]
public string Index_ls
[JsonProperty("index_ag")]
public string Index_ag
/// &summary&
/// 天气实体类
/// &/summary&
[DataContract]
public class YemlWeather
[JsonProperty("weatherinfo")]
public WeatherInformation weatherinfo { get; set; }
我序列化json用的是
&copy 龙果果博客 &绞股蓝QQ群:}

我要回帖

更多关于 天气预报小时查询 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信