学友资料:
天气查询车联网API
http://api.map.baidu.com/telematics/v3/weather?location=%E8%8B%8F%E5%B7%9E&output=json&ak=640f3985a6437dad8135dae98d775a09
{"error": 0,"status": "success","date": "2015-01-19","results": [{"currentCity": "苏州","pm25": "167","index": [],"weather_data": [{"date": "周一 01月19日 (实时:8℃)","dayPictureUrl": "http://api.map.baidu.com/images/weather/day/qing.png","nightPictureUrl": "http://api.map.baidu.com/images/weather/night/duoyun.png","weather": "晴转多云","wind": "北风3-4级","temperature": "10 ~ 3℃"},{"date": "周二","dayPictureUrl": "http://api.map.baidu.com/images/weather/day/yin.png","nightPictureUrl": "http://api.map.baidu.com/images/weather/night/yin.png","weather": "阴","wind": "东南风3-4级","temperature": "10 ~ 5℃"},{"date": "周三","dayPictureUrl": "http://api.map.baidu.com/images/weather/day/yin.png","nightPictureUrl": "http://api.map.baidu.com/images/weather/night/duoyun.png","weather": "阴转多云","wind": "西风4-5级","temperature": "11 ~ 1℃"},{"date": "周四","dayPictureUrl": "http://api.map.baidu.com/images/weather/day/qing.png","nightPictureUrl": "http://api.map.baidu.com/images/weather/night/duoyun.png","weather": "晴转多云","wind": "西北风4-5级","temperature": "8 ~ 1℃"}]}]}
http://api.map.baidu.com/telematics/v3/weather?location=%E8%8B%8F%E5%B7%9E&output=xml&ak=640f3985a6437dad8135dae98d775a09
0 success 2015-01-19 苏州 周一 01月19日 (实时:8℃) http://api.map.baidu.com/images/weather/day/qing.png http://api.map.baidu.com/images/weather/night/duoyun.png 晴转多云 北风3-4级 10 ~ 3℃ 周二 http://api.map.baidu.com/images/weather/day/yin.png http://api.map.baidu.com/images/weather/night/yin.png 阴 东南风3-4级 10 ~ 5℃ 周三 http://api.map.baidu.com/images/weather/day/yin.png http://api.map.baidu.com/images/weather/night/duoyun.png 阴转多云 西风4-5级 11 ~ 1℃ 周四 http://api.map.baidu.com/images/weather/day/qing.png http://api.map.baidu.com/images/weather/night/duoyun.png 晴转多云 西北风4-5级 8 ~ 1℃ 167
学员资料:
http://wthrcdn.etouch.cn/weather_mini?city=深圳
通过城市名字获得天气数据,json数据http://wthrcdn.etouch.cn/weather_mini?citykey=101280601通过城市id获得天气数据,json数据http://wthrcdn.etouch.cn/WeatherApi?citykey=101280601
通过城市id获得天气数据,xml文件数据,当错误时会有<error>节点http://wthrcdn.etouch.cn/WeatherApi?city=深圳通过城市名字获得天气数据,xml文件数据