Android 车联网天气
学友资料:http://www.cnblogs.com/NeilLing/p/4263267.html
天气查询车联网API http://developer.baidu.com/map/index.php?title=car/api/weather
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
<CityWeatherResponse> <error>0</error> <status>success</status> <date>2015-01-19</date> <results> <currentCity>苏州</currentCity> <weather_data> <date>周一 01月19日 (实时:8℃)</date> <dayPictureUrl> http://api.map.baidu.com/images/weather/day/qing.png </dayPictureUrl> <nightPictureUrl> http://api.map.baidu.com/images/weather/night/duoyun.png </nightPictureUrl> <weather>晴转多云</weather> <wind>北风3-4级</wind> <temperature>10 ~ 3℃</temperature> <date>周二</date> <dayPictureUrl> http://api.map.baidu.com/images/weather/day/yin.png </dayPictureUrl> <nightPictureUrl> http://api.map.baidu.com/images/weather/night/yin.png </nightPictureUrl> <weather>阴</weather> <wind>东南风3-4级</wind> <temperature>10 ~ 5℃</temperature> <date>周三</date> <dayPictureUrl> http://api.map.baidu.com/images/weather/day/yin.png </dayPictureUrl> <nightPictureUrl> http://api.map.baidu.com/images/weather/night/duoyun.png </nightPictureUrl> <weather>阴转多云</weather> <wind>西风4-5级</wind> <temperature>11 ~ 1℃</temperature> <date>周四</date> <dayPictureUrl> http://api.map.baidu.com/images/weather/day/qing.png </dayPictureUrl> <nightPictureUrl> http://api.map.baidu.com/images/weather/night/duoyun.png </nightPictureUrl> <weather>晴转多云</weather> <wind>西北风4-5级</wind> <temperature>8 ~ 1℃</temperature> </weather_data> <index></index> <pm25>167</pm25> </results> </CityWeatherResponse>
学员资料:
在网上找到一个更详细的天气信息
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文件数据
转载于:https://www.cnblogs.com/xubuhang/p/4233150.html
Android 车联网天气相关推荐
- android的天气和时钟部件,Android的天气和时钟部件
<Android的天气和时钟部件>一款能够实时关注的天气的气象软件应用,还是非常不错的,喜欢的小伙伴们赶紧来网下载吧! <Android的天气和时钟部件>软件简介 Androi ...
- 一起来开发Android的天气软件(三)——使用Volley实现网络通信
距离上一篇一起来开发Android天气软件二的时间又将近半个月了,之间一直因为有事而没有更新实在抱歉,最近会加快更新的步伐,争取在2015年到来前写完这系列的博文,上一章我们已经使用LitePal框架 ...
- 一起来开发Android的天气软件(二)——使用LitePal搭建数据库
谢谢大家对该系列博文的支持与关注,我们现在趁热打铁正式开始我们的Android天气软件的开发吧!没有阅读过之前关于该软件的功能需求的同学可以先看一下一起来开发Android的天气软件(一),可以先去快 ...
- 一起来开发Android的天气软件(一)——功能规格介绍
从今天开始呢,打算来介绍如何开发一款Android的天气软件,其中运用到的基础知识点也比较多,比较适合初学或者刚接触Android开发不久的同学一起来学习交流和切磋! 那么我先对这个天气软件进行需求分 ...
- android百度天气接口api接口,百度天气接口api
百度天气接口 以GET形式提交,返回JSON或XML URL:http://api.map.baidu.com/telematics/v3/weather?location={城市名}&out ...
- 基于Android的天气APP
基于Android的天气APP 前言 项目:https://github.com/w77996/Weather 多知天气,代码写的不咋的,主要是给大家学习一下.有些东西也是借鉴别人的主要借鉴的是别人的 ...
- android天气搜索框,Android简易天气App
原标题:Android简易天气App 前言 本打算是写一个贝塞尔曲线的demo,想了一下哪种场景可以直观的表现出贝塞尔曲线,想到天气预报中的那些24小时和未来几日天气变化正好适用.接着开始构思,开始是 ...
- 一起来开发Android的天气软件(四)——使用Gson解析数据
离上一篇文章过去才4.5天,我们赶紧趁热打铁继续完成该系列的天气软件的开发.承接上一章的内容使用Volley实现网络的通信,返回给我们的是这一串Json数据{"weatherinfo&quo ...
- android获取天气信息_像素小天气
像素小天气是一个非常美观有趣的天气预报app,市面上天气软件种类繁多,但是这款像素小天气可以说是让小编眼前一亮,顿时心生欢喜.软件内所有的图标都是像素风格的,看起来非常的可爱,并且首页壁纸是获取的每日 ...
最新文章
- 读《每天懂一点成功概率学》
- 福利丨吴恩达机器学习新书免费领!
- 几种芯片架构:X86、ARM、RISC-V和MIPS
- mac nginx 非brew安装_Mac下使用Home Brew安装Nginx
- visual studio code安装shadertoy特效环境
- Vue+Spring boot前后端响应流程总结
- Spring AOP编程-传统基于aspectJ切点AOP开发
- 哪一版可以打开pdg 安卓超星图书馆_南安:山区孩子有了数字图书馆
- WebRTC 的 log 系统实现分析
- angular项目打包发布流程
- 内存回收算法与 Hot Spot 算法实现细节
- spring mvc controller json数据
- 国内首个!阿里云发布容器ATTCK攻防矩阵 | 凌云时刻
- SVG 图标和sketch 模版免费网站
- 第二工业大学计算机应用大专录取分,二工大|2019年上海第二工业大学专科层次依法自主招生各专业最低录取分数线...
- 再见华为!一位嵌入式大佬的8年励志总结
- 基于协同过滤的推荐系统
- 使用bat脚本运行python脚本,bat出现闪退,怎么解决?
- Berkeley DB(BDB)介绍
- 我们已在路上,希望就在前方
热门文章
- 腾讯225页报告:AI正取代互联网成为新引擎,马化腾提七大关键词
- 神经网络是怎样理解图片的?谷歌大脑研究员详解特征可视化
- 我对软件发展的思考,一个不变却一直在变的话题
- 解决:mysql5.7 timestamp默认值0000-00-00 00:00:00 报错
- 传输层协议TCP和UDP
- RPC远程过程调用概念及实现
- 猫都能学会的Unity3D Shader入门指南(一)
- 也谈谈Javascript中的几个怪异特性(上)
- javaSE-基础篇-经典赋值:两变量值的交换
- RH Linux 企业5+apache+mysql+php+phpmyadmin的简单配置.