时间: 下载该word文档
计算机系统应用 http://www.c—S—a.org.ca 2014年第23卷第3期
智能公交移动平台实时查询客户端①
安
娜,张
征
(华中科技大学自动化学院,武汉430074)
摘要:随着智能手机和高速移动网络的普及,智能公交查询系统作为一个城市化的公共信息平台,可较大程度
上方便广大民众的日常出行.目前,Android平台上的公交查询客户端分为两种,一种是查询静态信息,如换乘方
案,线路信息等,另外一种是公交实时运行状况的查询.本文在传统设计的基础上,采用本地数据库和HTTP连
接双重查询方式,通过解析JSON数据,设计并实现了具有自动刷新功能的移动平台公交实时查询软件.在查询 站点信息和线路信息基础上,将线路上即将到站车辆的运行位置信息实时显示在页面上,从而使用户清晰的了 解当前公交运行情况,适当调节自己的出行计划,具有较高的现实意义.
关键词:公交查询:SQLite;智能公交:JS0N
Real—Time Query Client on Mobile Platform in Intelligent Transportation System
AN Na,ZHANG Zheng
(School ofAutomation,Huazhong University of Science and Technology,Wuhan 430074,China)
Abstract:With the popularization of smart phones and high-speed mobile networks,intelligent public transport query system which is as a public information platform in the city can greatly facilitate people’S daily trave1.Transport query
clients on the Android platform divided into two kinds,one is query static information,such as the transfer scheme,line
information,etc.another is the bus real—time queries.In this paper,based on the traditional methods,we design and realize a movable platform for bus querying in real-time,which introduces local database and HTTP connections double
query and obtains data by parsing the JSON data.On the basis of the query site and line information,the client can show
real--time information of the close・-in car on the activity,making the user understanding of the current public
transportation system clearly and adjusting travel plan adaptively.Therefore,this project has a great realistic signiifcanc.
Key words:Android;public transport query;SQLite;i