Baidu map taxi-hailing app based on android

"Taxi" is a daily travel tool used by many people because of its convenience and speed. However, in many places nowadays, it is difficult for taxi drivers to find passengers or passengers in remote areas with less crowds. Many taxi drivers like to find passengers in places with high crowds.

This system is a location-based taxi-hailing system. With this software, passengers no longer have to wait for a long time and get in a private car easily. The taxi information you publish can allow nearby taxis or private cars to find you quickly. From now on, there is no need to wait blindly or fight, and the taxi becomes your private car.

The system can be divided into the following three functional areas:

(1) Passenger terminal

According to the needs of the user, the passenger terminal user can perform the following operations:

① Unregistered users cannot enter the system

② First-time users can click the registration button on the login interface to enter the registration page to register. To register, you need to provide a mobile phone number as a user name (to facilitate the push of messages) and a password of more than 6 digits

③ Users who have successfully registered can enter the correct user name and password on the login interface to log in to the system.

④ Successful login to enter the homepage requires network support, and the current location will be automatically located. If there is no network, the initial location provided by the map will be used.

⑤ Passengers can find where they need to go through map input, post orders, and wait for the driver to accept the order. After the driver accepts the order, there will be a message to inform the passengers that someone has accepted the order and provide the driver's license plate number to facilitate the passengers to find.

(2) Driver side

According to the needs of users, the following operations can be performed:

① Unregistered users cannot enter the system;

② First-time users can click the registration button on the login interface to enter the registration page to register. For registration, you need to provide your mobile phone number as your username (to facilitate the push of messages), a password of more than 6 digits, and the vehicle license plate number (to facilitate passengers to identify the vehicle that accepts the order);

③ Users who have successfully registered can enter the correct user name and password in the login interface to log in to the system;

④ Successful login to enter the homepage requires network support, and the current location will be automatically located. If there is no network, the initial location provided by the map will be used. The driver can view the taxi information posted by the passengers in the surrounding three kilometers, and the driver clicks to accept the order. Go to the passenger location based on the map location.

⑤ Drivers can share traffic information, and other driver users can view it.

(3) Server side

① Process the request sent by the passenger and driver to find the required data

② According to the data found, package the data required for JSON string data response;

Insert picture description here


Insert picture description here


Insert picture description here
Insert picture description here


Insert picture description here

table of Contents

Summary II

Abstract III

Chapter 1 Introduction 3

1.1 Background analysis 3

1.2 Significance of the subject 3

1.3 Design Ideas 4

Chapter 2 Related Theoretical and Technical Basis 6

2.1 java web technology 6

2.1.1 Java Database Connectivity (JDBC) Technology 6

2.1.2 Java Server Pages (JSP) Technology 7

2.1.3 Servlet Technology 7

2.1.4 JavaBean (Application) application component technology 8

2.1.5 Tomcat server technology 8

2.1.6 MySQL database technology 9

2.2 Baidu Map API technology 9

2.3 Android development technology 9

2.3.1 The four major components of Android 10

2.3.2 Life Cycle of Acitvity 11

2.3.3 Sharedpreference storage technology 12

2.4 JSON parsing technology 12

2.5 Android development environment to build 13

2.6 Introduction to Development Tools 13

Chapter 3 Demand Analysis and Design Overview of Ride-hailing System 14

3.1 Demand analysis 14

3.1.1 Research objectives 14

3.1.2 Functional requirement analysis 14

3.2 System detailed functions 16

3.3 System structure 17

Chapter 4 Detailed Design and Implementation of Taxi-hailing System 19

4.1 Database Design and Implementation 19

4.1.1 Database design ideas 19

4.1.2 Create a database 19

4.2 Passenger client design and implementation 24

4.2.1 Passenger terminal project file structure 24

4.2.2 Passenger terminal interface design and implementation 26

4.3 Design and Implementation of Driver Client 28

4.3.1 Driver interface design and implementation 28

4.4 Design and implementation of the backend server of the taxi-hailing system 30

4.4.1 Server project file structure 30

4.4.2 Realization of the background server of the taxi system 31

Chapter 5 Test and Maintenance of Taxi-hailing System 35

5.1 Test tasks and objectives 35

5.1.1 Test tasks 35

5.1.2 Test objectives 35

5.2 Test plan 35

5.2.1 Unit Testing 36

5.2.2 Subsystem test 36

5.2.3 System Test 36

5.2.4 Acceptance test 37

5.3 System Maintenance 37

Chapter 6 Summary and Prospects 38

6.1 Summary 38

6.2 Features of the taxi-hailing system 38

6.3 System application prospects 39

Thanks 40

Reference 41