登录

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

注册

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

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

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

 2021-04-14 10:04  

摘 要

俗话说吃穿住行,日常出行一直是人们生活中十分重要的一部分,虽然私家车已经不再是少数人所拥有的出行工具,但仍然无法取代公共交通在人们出行和城市发展中所起到的重大作用。同时在全球能源紧缺的情况下,尽量使用公共交通,绿色出行,不仅节约能源,而且可以极大地降低了道路交通通行压力。现如今城市的公共交通网络建设得越来越发达和复杂,使用公共交通出行时,如何选择合适的出行线路就成为了一大难题。以前人们只能通过电脑访问网络,出行前提前查询好出行线路,这对于查询设备和网络条件都有一定限制,十分不方便。但近几十年来,随着移动通信网络的性能速度等多方面飞速发展,手机可以实现的功能越来越多,在几乎人手一部手机的今天,使用手机进行城市公交线路的查询是人们的日常需求,是大势所趋。

本文主要设计实现了以城市公交线路为主体的查询系统,该系统基于Android平台和JAVA语言进行开发,利用eclipse作为开发工具,通过安装相应的Android ADT和相关SDK开发包来共同构建Android开发环境,使用MySQL作为用户信息数据库,应用SQL语言实现对数据库的操作,服务器端采用APMServ搭建thinkPHP框架,进行连接和管理,同时调用百度地图 SDK和JavaScript API,访问百度地图的服务和数据。本系统的主要功能有公交换乘查询,根据起始站和终点站搜索合适的换乘路线,并依次显示出来,点击具体方案可以查看方案细节,点击地图可以看到步行和行车路线在地图上的标注;另有公交线路查询功能,可以查询具体线路的首末班车时间,线路的站点信息等详细信息。

本文详细地介绍了设计开发该系统所要用到的各种技术及原理,分析了各部分功能模块和用户信息数据库的设计,解析了部分关键程序,并形象地阐述了系统各个功能实现的详细过程。最后展示了测试中的各个功能的实现界面,以及各种查询功能的实现结果,同时也指出了本系统仍存在的一些有待改进的不足之处。

关键词:android;eclipse;百度地图SDK;公交查询

Abstract

As the saying goes, eating, shelter, and daily travel have always been a very important part of people's lives. Although private cars are no longer a tool that few people have, they can't replace public transport and they are used in people's travel and urban development.

The major role. At the same time, in the context of global energy shortages, the use of public transport as much as possible, green travel, not only save energy, but also can greatly reduce the pressure on road traffic.Nowadays, the public transportation network in the city is also becoming more and more developed and complex. When using public transportation, how to choose the right travel route becomes a big problem. In the past, people could only access the Internet through a computer and searched for travel routes in advance before going on trips. This has certain restrictions on the query of equipment and network conditions. It is inconvenient. However, in recent decades, with the rapid development of mobile communication network performance speed and many other aspects, the mobile phones can achieve more and more functions. Today, almost everyone has a mobile phone, the use of mobile phones for urban bus line inquiries is people's Daily needs are the general trend.
This graduation design mainly aims at designing and implementing a query system based on urban bus lines. The system is based on the Android platform and uses eclipse as a development tool to build an Android development environment by installing the corresponding Android ADT and related SDK development kits. , using MySQL as a user information database, using the SQL language to operate on the database, the server uses APMServ to build the thinkPHP framework for connection and management, while calling the Baidu map SDK and JavaScript API, access to Baidu map services and data. The main function of this system is the public transfer query, according to the start station and the terminal station to find the appropriate transfer route, in order to display out, click on the specific program can view the program details, click on the map to see the map of the walk and driving directions on the map . Another bus line query function, you can query the specific line of the first and last bus time, the line site information and other detailed information.
This article describes in detail the various technologies and principles used in the design and development of the system, analyzes the design of each part of the functional modules and user information database, and analyzes some of the key procedures, and graphically elaborates the detailed process of the system's various functions. . Finally, it shows the interface for each function in the test, and the results of various query functions. At the same time, it also points out some deficiencies that still exist in the system.
Keywords: android; eclipse; Baidu map SDK; bus query

目录

第1章 绪论 1

1.1 研究的时代背景 1

1.2研究的可行性和意义 2

1.3 研究现状 3

1.4 论文的组织结构 4

第2章 相关开发技术 5

2.1 Android应用开发相关介绍 5

2.1.1 Android简介 5

2.1.2 Android平台的优势 6

2.2 数据库技术 7

第3章 系统概要设计 8

3.1 系统需求分析 8

3.2 系统功能模块设计 8

3.3 数据库设计 10

3.3.1 用户信息模块 11

3.3.2 公交信息模块 12

第4章 系统详细设计 14

4.1 主活动 14

4.2 城市定位功能 15

4.2.1 BaiduLocation()方法 16

4.2.2 getLocation()方法 17

4.2.3 MyLocationListener()方法 17

4.3 查询功能 18

4.3.1 线路查询 18

4.3.2 换乘查询 19

4.4 地图功能 20

4.5 用户模块 22

4.5.1 注册模块 22

4.5.2 用户登录 24

4.5.3 查看用户个人信息 26

4.5.4 修改信息 27

4.6 程序相关设置 29

第5章 系统的实现和运行 30

5.1 用户注册 30

5.2 用户登录 31

5.3 城市设置 32

5.4 线路查询 32

5.5 换乘查询 34

5.6 修改个人信息及密码 35

第6章 系统测试 36

6.1 程序调试 36

6.2 程序测试软件 36

6.3 系统测试 37

总结与展望 38

参考文献 39

致谢 40

第1章 绪论

1.1 研究的时代背景

随着科技不断进步与城市建设的快速发展,人们的出行交通方式也趋于多样化,私家车渐渐普及到人们的生活中,可私家车仍旧无法取代公共交通在人们出行中的重要地位。例如截至2016年底,北京市公交平均每天行驶348.56万公里,一年的客运总量达到35.27亿人次,一天的平均客运量963.56万人次,最高的时候一天的客运量达到1104.61万人次,承担着北京地面公共交通客运的主体任务。在众多出行方式中,城市公共交通具有许多优势,例如价格便宜、乘坐方便安全、线路分布广泛、道路占用率低、节约能源、污染小等。所以利用公共交通是大部分出行的人们的首选出行方式。同时,全球能源资源紧缺,政府大力提倡节能减排,鼓励大家多利用公共交通出行,全国多个城市已经实施私家车单双号限行的政策,不仅是为了缓解道路交通压力,也是为了降低汽车尾气对大气环境的影响。综合来看,选择公共交通出行,不仅节约能源,保护环境,而且很大程度上缓解了城市道路交通压力,是大势所趋。

但同时,随着城市规模的逐步扩大,使整个城市的交通干道越来越复杂,政府的大力建设城市公共交通系统,城市公交系统覆盖越来越广泛,线路也迅速增多,公交种类也不断丰富,除了我们日常最常见到的常规公交,还有快速公交(BRT)、有轨电车、城市轨道交通等,甚至还有一些夜间公交、旅游观光线路等特色线路。在这种情况下,仅仅依靠查看公交线路图,或者公交站站牌的方式选择线路,不仅难度很大,费时费力,还无法保证线路信息的实时性和准确性。再加上,随着城镇化的发展,城市人口的流动频繁,当人们初次来到一座新城市,面对完全陌生的地名、路名、公交线路,选择合适的线路出行就更是难上加难了。所以,一个可以快速便捷有效地查询合适的出行公交线路的系统成为了人们共同的需求。

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

企业微信

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