登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

基于Android的公交信息查询系统的设计与实现毕业论文

 2021-04-28 09:04  

摘 要

随着中国经济的发展,城市交通越发便捷,但与此同时,城市的交通规模也随之扩大,公交线路四通八达,相互交错。面对如此庞杂的公交系统,我们需要从中筛选出我们需要的信息似乎也不是那么容易。所以,一款基于android的公交信息查询系统是十分有意义的,它可以给人们的日常出行带来极大的便利,

而且有一款安卓手机即可使用,十分方便。

为了使得系统能够较好的实现公交信息的查询功能,将系统分为后台服务器管理模块和手机用户查询模块。

后台服务器的主要工作是:

(1)交通信息数据的输入、存储、查询和删除工作。

(2)实现公交换乘算法,根据手机端的请求,调用相应的方法查询出相应的结果,并将结果封装成相应的JSON格式发送给手机端。

手机用户查询模块的主要工作是:

(1)提供用户较好的操作界面。

(2)获取用户的请求和相应的请求参数并将其发送给后台服务器。

(3)接收服务器响应的结果,解析结果并将其显示给用户,并可以将相应结果展示到百度地图上。

此系统能基本实现公交查询中常见的站点查询、车次查询、线路查询和自我定位的功能,并能将相应的查询结果展示在百度地图上,快速高效,性能平稳,具有一定的实用价值。

关键词:服务器端;android;公交换乘算法;JSON;百度地图

Abstract

With the development of China's economy, urban traffic becomes more and more convenient, but at the same time, the scale of urban traffic also increases, bus lines extending in all directions and intertwined. In the face of such a complex bus system, we need to filter out the information we need is not so easy. Therefore, an Android based public transport information query system is very meaningful, it can give people's daily travel brings great convenience, and to use the system, it just need an Android mobile phone, it's very convenient.

In order to make the system can better realize the query function of public transportation information, the system is divided into the background server management module and the mobile phone user inquiry module.

The main work of the background server is:

(1) input, storage, query and delete of traffic information data.

(2) realize bus transfer algorithm. According to the request of the mobile phone, call the corresponding method to check out the corresponding results, and the results are packaged into the corresponding JSON format to send to the mobile phone terminal.

The main work of mobile phone user query module is:

(1) to provide a better user interface.

(2) to obtain the user's request and the corresponding request parameters and send it to the background server.

(3) receive the result of the server response, analyzing the results and display it to the user, and can display the corresponding results to Baidu map.

This system can be the basic realization of common query bus site inquiries, trips inquiries, line inquiry and self positioning function, and the corresponding query results show in Baidu map, fast and efficient, stable performance, with certain practical value.

This system can basically realize the daily life of common query function, such as site inquiries, trips inquiries, line inquiry and self positioning function, and the corresponding query results can be shown in Baidu map, this system is fast and efficient, has stable performance, so it is with certain practical value.

Key words: server side; Android; bus transfer algorithm; JSON; Baidu map

目录

第1章 绪论 1

1.1研究的背景和意义 1

1.2 国内外研究现状 1

1.3本文研究内容 2

1.4 论文组织结构 3

1.5 小结 4

第2章 系统需求分析 5

2.1 我国实际情况可行性 5

2.2 民众出行考虑的因素 5

2.3 民众关注的公交信息 5

2.4 系统技术选型及环境搭建 6

2.4.1 开发技术选型 6

2.4.2 开发环境的搭建 6

2.5 系统非功能性需求 7

2.5.1 简单易用 7

2.5.2 响应速度 7

2.6 小结 7

第3章 系统设计 8

3.1 系统的架构分析与设计 8

3.2 系统的功能模块设计 8

3.3 换乘算法的设计 9

3.3.1 直达策略 9

3.3.2 一次换乘策略 10

3.3.3 两次换乘策略 10

3.3.4 换乘方案流程图 11

3.4 用户查询模块的设计 12

3.4.1 车次查询设计 12

3.4.2 站点查询设计 12

3.5后台管理模块的设计 13

3.6 数据库数据的设计 13

3.6.1 系统ER图设计 13

3.6.2 数据库表的创建 14

3.7 小结 15

第4章 系统实现 16

4.1 服务器端的程序实现 16

4.1.2 对安卓手机请求响应功能的实现 16

4.2 安卓端程序的实现 17

4.2.1 请求的发送和结果接收及展示功能的实现 17

4.2.2 百度地图数据展示模块的实现 18

4.3 小结 19

第5章 系统运行测试 20

5.1 需要测试的功能 20

5.2 测试数据准备 20

5.3 后台管理模块功能测试 22

5.3.1 数据录入功能测试 22

5.3.2 数据库表展示 23

5.4 用户查询功能测试 24

5.4.1 站点查询功能测试 25

5.4.2 车次查询功能测试 25

5.4.3 换乘(线路)查询功能测试 27

5.4.4 我的位置定位功能测试 29

5.5 测试结果 29

第6章 总结 31

6.1 工作总结 31

6.2 系统展望 31

参考文献 32

感谢 33

第1章 绪论

1.1研究的背景和意义

随着人们生活水平的提高、移动手机的普及和高速移动网络的快速发展,手机已经成为现代人不可或缺的必备物品,同时,外出也成为现代人的生活的重要组成部分。

关于公共交通方面,随着近年来中国城镇化速度的不断加快、农村进入城市的人口不断增多以及各地政府都在大力发展公共交通系统。公共交通系统已经变得更加的庞大和复杂,给人们的出行带来的便利是显而易见的,但是同时,找不到合适、快捷的交通线路的情况也时有发生。甚至更严重的是,人们可能会搭错车或者不知道在哪个车站下车等,进而无法到达目的地,耽误人们的行程。

不论是外出旅行,还是普通的上下班或是其他的外出,人们的出行基本上都离不开公共交通工具,所以,人们对于公共交通信息的查询也就变得更加的迫切和必须。

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图