CN115049105A - Taxi track big data driven passenger carrying route recommendation method, device and medium - Google Patents
Taxi track big data driven passenger carrying route recommendation method, device and medium Download PDFInfo
- Publication number
- CN115049105A CN115049105A CN202210531460.1A CN202210531460A CN115049105A CN 115049105 A CN115049105 A CN 115049105A CN 202210531460 A CN202210531460 A CN 202210531460A CN 115049105 A CN115049105 A CN 115049105A
- Authority
- CN
- China
- Prior art keywords
- road network
- network node
- route recommendation
- point
- generating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000005457 optimization Methods 0.000 claims abstract description 21
- 239000011159 matrix material Substances 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000013075 data extraction Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000012886 linear function Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Development Economics (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Traffic Control Systems (AREA)
- Navigation (AREA)
Abstract
The embodiment of the application discloses a taxi track big data driven passenger carrying route recommendation method, device and medium, which are used for rapidly planning the shortest route from a starting point to a terminal point for a vehicle. The method in the embodiment of the application comprises the following steps: acquiring a vehicle motion track data set of a target area; generating road network node data according to the vehicle motion track data set; generating a route recommendation model according to the road network node data, wherein the route recommendation model is fused with an heuristic algorithm and an optimization algorithm; acquiring a starting point and an end point of a user, wherein the starting point and the end point are positioned in the target area; and generating a recommended route from the starting point to the end point according to the route recommendation model.
Description
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a taxi track big data driven passenger carrying route recommendation method, device and medium.
Background
In the big data era, with the rapid development of digital technology, the pace of life becomes faster and faster, and with the pace, the travel demand of people becomes higher and higher. In order to meet the requirement of efficient travel of people, a passenger carrying route recommendation method driven by taxi track big data is developed.
In the prior art, a traditional passenger carrying route recommendation method driven by big data of a taxi track is usually based on a greedy algorithm or a genetic algorithm, and a large number of nodes are required to be visited to calculate the shortest route. Because a large number of nodes need to be accessed, the problems of large I/O overhead, high memory consumption and the like are easily caused. Meanwhile, under the conditions of huge calculation amount and limited calculation force, the shortest route can be obtained only by needing a large amount of calculation time, so that the problems of long operation time, low calculation efficiency and the like are caused.
In addition, the blind cruising in the urban traffic easily causes the problems of high fuel consumption, serious traffic jam and the like. The application provides an integration angle and A * The Gurobi optimization algorithm of the algorithm is applied to recommending an optimal passenger carrying route for taxi track big data in a complex city road network. Firstly, a road network node extraction method based on taxi GPS direction is provided, and the problem that the road network node is difficult to extract from taxi GPS track data is solved.Secondly, an angle-based sharp point elimination method (ASPE) is constructed, and the searching capability of the Gurobi algorithm is optimized to search for the shortest route. Thirdly, design a base based on A * Gurobi optimization algorithm of algorithm (A-Gurobi), using A * And a heuristic function of the algorithm enhances the rapid guiding capability from the departure place to the destination, and improves the execution efficiency of the Gurobi algorithm.
Disclosure of Invention
The embodiment of the application provides a taxi track big data driven passenger carrying route recommendation method, device and medium, and the shortest route from a starting point to a terminal point can be rapidly planned for a vehicle.
The first aspect of the embodiments of the present application provides a taxi track big data driven passenger carrying route recommendation method, including:
acquiring a vehicle motion track data set of a target area;
generating road network node data according to the vehicle motion track data set;
generating a route recommendation model according to the road network node data, wherein the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
acquiring a starting point and an end point of a user, wherein the starting point and the end point are positioned in the target area;
and generating a recommended route from the starting point to the end point according to the route recommendation model.
Optionally, the generating a route recommendation model according to the road network node data includes:
a is prepared from * Fusing a heuristic algorithm into a Gurobi algorithm to generate an A-Gurobi algorithm;
and generating a route recommendation model according to the road network node data and the A-Gurobi algorithm, wherein the road network node data is used as a parameter of the route recommendation model.
Optionally, the generating the recommended route from the starting point to the end point according to the route recommendation model includes:
respectively connecting the starting point with each road network node in the road network node data of the route recommendation model and the end point to obtain a plurality of line segments, wherein each road network node corresponds to one line segment, and the line segment formed by the starting point and the end point is a target line segment;
calculating the degree of included angles formed by the target line segment and other line segments respectively;
deleting road network nodes corresponding to the line segments of which the included angle degrees with the target line segments are greater than or equal to a first preset angle to obtain recommended road network nodes;
and generating a recommended route according to the recommended road network node, the starting point and the end point.
Optionally, the generating road network node data according to the vehicle motion trajectory data set includes:
extracting a target motion trail data set from the vehicle motion trail data set, wherein the operation state of the target motion trail data set is empty vehicle-passenger continuously, and the operation state comprises empty vehicle and passenger;
and generating road network node data according to the target motion trail data set.
Optionally, the generating road network node data according to the target motion trajectory data set includes:
extracting time, coordinates and directions of each point from the target motion trajectory data set;
determining road network nodes according to the coordinates and the directions of all the points;
and generating road network node data according to road network nodes, wherein the road network node data comprises a weighted undirected graph and an adjacency matrix.
Optionally, the determining the road network node according to the coordinate and the direction of each point includes:
for any target motion trajectory data, determining the adjacency relation between points according to the time of each point;
calculating direction variation according to the adjacency relation between the points and the coordinates of each point, wherein the direction variation is the angle of two line segments formed by one point and the two adjacent points respectively;
and when the direction variation is larger than or equal to a second preset angle, determining the point adjacent to the other two points in the three corresponding points as the road network node.
Optionally, the generating road network node data according to road network nodes includes:
determining the adjacency relation between the road network nodes;
calculating the distance between adjacent road network nodes according to the coordinates of each road network node;
generating an adjacency matrix and a weighted undirected graph according to the adjacency relation between the road network nodes and the distance between the adjacent road network nodes;
and generating road network node data according to the weighted undirected graph and the adjacency matrix.
Optionally, before extracting the target motion trajectory data set from the vehicle motion trajectory data set, the method further includes:
and deleting the isolated points in the vehicle motion trail data set.
A second aspect of the embodiments of the present application provides a taxi track big data driven passenger carrying route recommendation device, including:
the first acquisition unit is used for acquiring a vehicle motion trail data set of a target area;
the first generation unit is used for generating road network node data according to the vehicle motion trail data set;
a second generation unit, configured to generate a route recommendation model according to the road network node data, where the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
a second obtaining unit, configured to obtain a starting point and an ending point of a user, where the starting point and the ending point are located in the target area;
a third generating unit, configured to generate a recommended route from the starting point to the ending point according to the route recommendation model.
A third aspect of the embodiments of the present application provides a taxi track big data driven passenger carrying route recommendation device, including:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory stores a program, and the processor calls the program to execute the taxi track big data driven passenger carrying route recommendation method in any one of the first aspect and the first possible implementation manner.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when the program is executed on a computer, the computer executes a taxi track big data driven passenger carrying route recommendation method in any one of the first aspect and the first possible implementation manner.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the taxi track big data driven passenger carrying route recommendation method provided by the embodiment of the application, firstly, a vehicle motion track data set of a target area is obtained, then road network node data are generated according to the vehicle track data set, then a route recommendation model fused with an heuristic algorithm and an optimization algorithm is generated according to the road network node data, and finally a recommended route from a starting point to an end point is generated for a user according to the route recommendation model. Because the route recommendation model in the embodiment of the application is fused with the heuristic algorithm and the optimization algorithm, fewer nodes can be visited in the process of generating the recommended route, the calculation amount is reduced compared with a passenger carrying route recommendation method driven by taxi track big data based on a greedy algorithm, the recommended route can be generated more quickly under the condition of the same calculation power, and the calculation efficiency is improved. Meanwhile, the time spent by the user in traveling is reduced, and the user experience is favorably improved.
Drawings
Fig. 1 is a schematic flow chart of an embodiment of a passenger carrying route recommendation method driven by taxi track big data in the embodiment of the application;
fig. 2 is a schematic flow chart of another embodiment of a passenger carrying route recommendation method driven by taxi track big data in the embodiment of the application;
fig. 3 is a schematic structural diagram of an embodiment of a passenger carrying route recommendation device driven by taxi track big data in the embodiment of the application;
fig. 4 is a schematic structural diagram of another embodiment of a passenger carrying route recommending device driven by taxi track big data in the embodiment of the application;
fig. 5 is a schematic structural diagram of another embodiment of a passenger carrying route recommending device driven by taxi track big data in the embodiment of the application.
Detailed Description
The embodiment of the application provides a passenger carrying route recommending method, device and medium driven by taxi track big data, and the method, device and medium are used for rapidly planning the shortest route from a starting point to a terminal point for a vehicle.
The method of the present application may be applied to a server, a terminal, or other devices with logic processing capability, and the present application is not limited thereto. For convenience of description, the following description will be made taking the execution subject as a server as an example.
Embodiments in the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of a method for recommending a passenger carrying route driven by taxi track big data in the embodiment of the present application includes:
101. the method comprises the steps that a server obtains a vehicle motion track data set of a target area;
in practical applications, the generation of the recommended route is based on the big data of the movement track, and the relevant information needs to be extracted from a large amount of data, so the server needs to acquire the vehicle movement track data set of the target area firstly. It should be noted that the vehicle motion trajectory data set includes large-scale vehicle motion trajectory data, each piece of vehicle motion trajectory data is composed of a plurality of points, each point has corresponding attribute information, each piece of vehicle motion trajectory data corresponds to a vehicle, and a vehicle may include one or more pieces of vehicle motion trajectory data, which is not limited herein.
102. The server generates road network node data according to the vehicle motion track data set;
after obtaining the vehicle motion trajectory data set, the server may process the vehicle trajectory data set to generate road network node data, where the road network node data includes a plurality of road network nodes and distances between adjacent road network nodes.
103. The server generates a route recommendation model according to the road network node data;
after the road network node data is generated, the server can generate a route recommendation model according to the road network node data, and provide a route recommendation service for the vehicle through the route recommendation model. It should be noted that the route recommendation model is fused with heuristic algorithm and optimization algorithm, and has attributes of heuristic algorithm and optimization algorithm. That is, the route recommendation model can generate the shortest route from the road network node data of itself in a short time by providing the start point and the end point.
104. The server acquires a starting point and an end point of a user;
if a recommended route is generated for the user, the starting point and the ending point of the user need to be obtained firstly, and the starting point and the ending point are located in the target area, so that the server obtains the starting point and the ending point of the user. It should be noted that the starting point and the ending point are both located in the target area, and both the starting point and the ending point are represented in a coordinate form.
105. The server generates a recommended route from the starting point to the end point according to the route recommendation model.
After the server obtains the starting point and the end point of the user, the starting point and the end point can be input into a route recommendation model, and a recommended route from the starting point to the end point is generated through the route recommendation model. After the recommended route is generated, the recommended route is fed back to the user, so that the user can start from the starting point and drive to the end point according to the recommended route, and the travel plan is completed.
It should be noted that, in this embodiment, the taxi track big data driven passenger carrying route recommendation method may be executed in a stand-alone server or a distributed server, and is not limited herein. When the task is executed on the distributed server, the task is split to a plurality of servers, and the task can be executed on the plurality of servers in parallel, so that the execution efficiency can be improved.
In this embodiment, the server first obtains a vehicle motion trajectory data set of a target area, then generates road network node data according to the vehicle trajectory data set, then generates a route recommendation model that is integrated with an heuristic algorithm and an optimization algorithm according to the road network node data, and finally generates a recommended route from a starting point to an end point for a user according to the route recommendation model. Because the route recommendation model in the embodiment of the application is fused with the heuristic algorithm and the optimization algorithm, fewer nodes can be visited in the process of generating the recommended route, and compared with a taxi track big data driven passenger-carrying route recommendation method based on the greedy algorithm, the calculation amount is reduced, the recommended route can be generated more quickly under the condition of the same calculation power, and the calculation efficiency is improved. Meanwhile, the time spent by the user in traveling is reduced, and the user experience is favorably improved.
Referring to fig. 2, in an embodiment of the present application, another embodiment of a method for recommending a passenger carrying route driven by taxi track big data includes:
201. the method comprises the steps that a server obtains a vehicle motion track data set of a target area;
in this embodiment, step 201 is similar to step 101 in the previous embodiment, and is not described herein again.
202. The server deletes isolated points in the vehicle motion trail data set;
after the server obtains the vehicle motion track data set, any piece of unprocessed vehicle motion track data can be obtained, whether points in the vehicle motion track data are continuous or not is judged, if points which are discontinuous with other points are found, isolated points, namely junk data, can be judged, then deletion processing is executed, and after the execution is finished, the vehicle motion track data is marked to be the isolated points and deleted. And the server repeatedly executes the steps of acquiring the vehicle motion trail data and judging whether isolated points exist or not until all the vehicle motion trail data are processed.
203. The server extracts a target motion trail data set from the vehicle motion trail data set;
the server may perform extraction of the target motion trajectory data set from the vehicle motion trajectory data set after deleting the isolated point of the isolated points in the vehicle motion trajectory data set. Specifically, any piece of vehicle motion trajectory data for data extraction is sequentially acquired, then data with operation states of empty vehicle, passenger carrying and passenger carrying continuously is extracted and serves as target motion trajectory data, the operation states include two states of empty vehicle and passenger carrying, it needs to be noted that after one section of empty vehicle, passenger carrying and passenger carrying is extracted, data extraction is performed again from the next continuous point, and therefore each section of extracted empty vehicle, passenger carrying and passenger carrying is not repeated. After data extraction is carried out on one piece of vehicle motion track data, the vehicle motion track data is marked as the extracted target motion track data, then data extraction operation is carried out on the next piece of vehicle motion track data which is not marked as the extracted target motion track data until all pieces of vehicle motion track data are marked as the extracted target motion track data, and therefore a target motion track data set can be obtained. It should be noted that the vehicle motion trajectory data is composed of a plurality of operation state segments, and each operation state segment is composed of a plurality of continuous points.
204. The server extracts the time and the coordinates of each point from the target motion trajectory data set;
after extracting the target motion trajectory data set, the server may extract information of time, coordinates and direction of each point, thereby generating road network node data using the information.
205. The server determines the adjacency relation between the points according to the time of each point for any target motion trajectory data;
for any one target motion trajectory data, the server can determine the adjacency relation of points between the target motion trajectory data according to the time of each point in the target motion trajectory data. Wherein, for any one point, among all points before the time of the point, the point corresponding to the time closest to the time of the point is adjacent to the point; among all points subsequent to the point in time, a point corresponding to a time closest to the point in time is adjacent to the point.
206. The server calculates the direction variation according to the adjacency relation between the points and the coordinates of each point;
after obtaining the adjacency relation between the points of the target motion trajectory data, the server may calculate the direction change amount based on the adjacency relation between the points and the coordinates of the points. Specifically, the server first obtains a target point, where the target point is a point having two adjacent points, then calculates linear functions of the target point and the two adjacent points according to the coordinates of the target point and the coordinates of the two adjacent points of the target point, and then calculates angles of the two linear functions, where the angle is a direction variation corresponding to the target point, the direction variation represents an angle at which the vehicle turns at the target point, and the direction variation corresponds to 3 points, and is the target point and the two adjacent points of the target point. After calculating the direction variation of a target point, the server marks the target point as the calculated direction variation, and then calculates the direction variation of the next target point which is not marked as the calculated direction variation until the direction variations of all the target points are completely calculated.
207. When the direction variation is larger than or equal to a second preset angle, the server determines that the point adjacent to the other two points in the three corresponding points is a road network node;
in the process of calculating the direction variation in the target motion trajectory data, the server may determine, every time one direction variation is calculated, the direction variation, and if the direction variation is greater than or equal to a second preset angle, determine that a point adjacent to both of the other two points in the three points corresponding to the direction variation is a road network node. It should be noted that the second preset angle is generally set to 90 °, but may be set to other degrees, and is not limited herein.
The server may determine the road network node not only during the process of calculating the direction variation in the target motion trajectory data, but also after calculating all the direction variations in the target motion trajectory data, and the determination of the road network node is not limited herein.
The server repeatedly executes steps 205 to 207, thereby determining the road network nodes of all the target motion trajectory data.
208. The server determines the adjacency relation between the road network nodes;
due to the fact that the data volume of the acquired vehicle motion track data set of the target area is huge, under the condition of large-scale data, road network nodes obtained by the server are necessarily connected directly or indirectly. Since the adjacency relation between the road network nodes in each piece of target motion trajectory data is determined, the server can determine the adjacency relation between all the road network nodes after obtaining all the road network nodes of the target motion trajectory data.
209. The server calculates the distance between the adjacent road network nodes according to the coordinates of each road network node;
after determining the adjacency relation between all the road network nodes, the server can calculate the distance between every two adjacent road network nodes according to the coordinates of the road network nodes. It should be noted that the distance calculated here is an euclidean distance, that is, a straight-line distance between two adjacent road network nodes.
210. The server generates an adjacency matrix and a weighted undirected graph according to the adjacency relation between the road network nodes and the distance between the adjacent road network nodes;
the server may generate an undirected graph with rights for all road network nodes based on adjacency relationships between all road network nodes and distances between adjacent road network nodes. Meanwhile, the server may generate an adjacency matrix for all the road network nodes according to the adjacency relationship among all the road network nodes, where the adjacency matrix is used to represent the adjacency matrix of all the road network nodes. The graph is a data structure composed of a vertex set V and an edge set E between vertices, and is represented by a dyad G (V, E), and the weighted undirected graph vertex set is V ═ V { (V) 1 ,V 2 ,V 3 ,V 4 And E, edge set is E ═ E 12 ,e 13 ,e 21 ,e 23 ,e 24 ,e 31 ,e 32 ,e 34 ,e 42 ,e 43 The weights may be from one vertex to anotherThe distance of one vertex is represented. In this embodiment, all the road network nodes are taken as a vertex set, a straight line segment between two adjacent road network nodes is taken as an edge set, and a distance between two adjacent road network nodes is taken as a weight.
211. The server generates road network node data according to the weighted undirected graph and the adjacent matrix;
after the weighted undirected graph and the adjacency matrix are generated, the server also generates road network node data, and the road network node data is the combination of the weighted undirected graph and the adjacency matrix.
212. The server sends A * Fusing a heuristic algorithm into a Gurobi algorithm to generate an A-Gurobi algorithm;
the server can compare A with * And the heuristic algorithm is fused into the Gurobi algorithm to generate the A-Gurobi algorithm. Specifically, A is * A heuristic function of the algorithm is fused into the Gurobi algorithm, and the heuristic function is shown as a formula (1). Since the Gurobi algorithm belongs to the optimization algorithm, A * A heuristic function of the algorithm is fused into an A-Gurobi algorithm generated by the Gurobi algorithm, and the A-Gurobi algorithm has the characteristics of the optimization algorithm and the heuristic algorithm.
f (n) ═ g (n) + h (n) (formula 1)
Where f (n) represents the cost to the destination point, g (n) represents the cost from the original node to an arbitrary node n, and h (n) represents the heuristically evaluated cost from node n to the destination point.
213. The server generates a route recommendation model according to the road network node data and an A-Gurobi algorithm;
after the road network node data and the A-Gurobi algorithm are generated, the server can generate a route recommendation model according to the road network node data and the A-Gurobi algorithm, and provide a route recommendation service for the user through the route recommendation model. It should be noted that the route recommendation model is fused with heuristic algorithm and optimization algorithm, and has attributes of heuristic algorithm and optimization algorithm. That is, the route recommendation model can generate the shortest route from the road network node data of itself in a short time by providing the start point and the end point.
214. The server acquires a starting point and an end point of a user;
in this embodiment, step 214 is similar to step 104 in the previous embodiment, and is not described herein again.
215. The server respectively connects the starting point with each road network node and the end point in the road network node data of the route recommendation model to obtain a plurality of line segments, wherein each road network node corresponds to one line segment, and the line segment formed by the starting point and the end point is a target line segment;
after obtaining the start point and the end point of the user, the server may connect the start point with the end point and each road network node in the road network node data of the route recommendation model by using a straight line segment, so as to obtain a plurality of line segments. Each line segment corresponds to a road network node or end point, and each road network node or end point also corresponds to a line segment. Among all the line segments, the server may determine the line segment corresponding to the end point as a target line segment, which represents a displacement from the start point to the end point.
216. The server calculates the degree of included angles formed by the target line segment and other line segments respectively;
because the end point of each line segment comprises the starting point, all the line segments are directly connected, so that an included angle can be formed between the line segments, and the server can respectively calculate the included angle between the target line segment and each of the other line segments. For convenience of calculation, the server may establish a rectangular coordinate system with the origin of coordinates as the origin of coordinates, the east-west direction as the X axis, and the north-south direction as the Y axis, and calculate the included angle between the target line segment and each of the other line segments respectively.
217. The server deletes the road network nodes corresponding to the line segments of which the included angle degree formed by the server and the target line segment is greater than or equal to a first preset angle to obtain recommended road network nodes;
in practical applications, when an included angle between a line segment corresponding to a road network node and a target line segment exceeds a certain degree, the line segment does not usually pass through the road network node. Therefore, the server may delete the road network node corresponding to the line segment whose included angle with the target line segment is greater than or equal to the first preset angle, and leave the road network node, which is the recommended road network node.
In this embodiment, the server deletes the road network nodes other than the recommended road network node, which can reduce the calculation amount of the route recommendation model, and is beneficial to improving the operation efficiency of generating the recommended route, and meanwhile, can save the resource overhead and reduce unnecessary resource waste.
218. And the server generates a recommended route according to the recommended road network node, the starting point and the end point.
After obtaining the recommended road network nodes, the server may use the recommended road network nodes, the starting point and the end point as parameters of a route recommendation model, and generate a recommended route by using an a-Gurobi algorithm in the route recommendation model.
Referring to fig. 3, an embodiment of the passenger carrying route recommending device driven by big data of taxi track in the embodiment of the present application includes:
a first obtaining unit 301, configured to obtain a vehicle motion trajectory data set of a target area;
a first generating unit 302, configured to generate road network node data according to the vehicle motion trajectory data set;
a second generating unit 303, configured to generate a route recommendation model according to the road network node data, where the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
a second obtaining unit 304, configured to obtain a start point and an end point of the user, where the start point and the end point are located in the target area;
a third generating unit 305 for generating a recommended route from the start point to the end point according to the route recommendation model.
In the embodiment, the first obtaining unit 301 first obtains a vehicle motion trajectory data set of a target area, then the first generating unit 302 generates road network node data according to the vehicle trajectory data set, then the second generating unit 303 generates a route recommendation model fusing a heuristic algorithm and an optimization algorithm according to the road network node data, and finally the third generating unit 305 generates a recommended route from a starting point to an end point for a user according to the route recommendation model. Because the route recommendation model in the embodiment of the application is fused with the heuristic algorithm and the optimization algorithm, the server can visit fewer nodes in the process of generating the recommended route, the calculation amount is reduced compared with a passenger carrying route recommendation method driven by taxi track big data based on a greedy algorithm, the recommended route can be generated more quickly under the condition of the same calculation power, and the operation efficiency is improved. Meanwhile, the travel time of the user is reduced, and the user experience is favorably improved.
Referring to fig. 4, another embodiment of the passenger carrying route recommending device driven by taxi track big data in the embodiment of the present application includes:
a first obtaining unit 401, configured to obtain a vehicle motion trajectory data set of a target area;
a first generating unit 402, configured to generate road network node data according to the vehicle motion trajectory data set;
a second generating unit 403, configured to generate a route recommendation model according to the road network node data, where the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
a second obtaining unit 404, configured to obtain a start point and an end point of the user, where the start point and the end point are located in the target area;
a third generating unit 405, configured to generate a recommended route from the starting point to the ending point according to the route recommendation model.
In this embodiment, the second generating unit 403 is specifically configured to:
a is to be * Fusing a heuristic algorithm into a Gurobi algorithm to generate an A-Gurobi algorithm;
and generating a route recommendation model according to the road network node data and an A-Gurobi algorithm, wherein the road network node data is used as a parameter of the route recommendation model.
The third generating unit 405 is specifically configured to:
respectively connecting a starting point with each road network node and an end point in road network node data of a route recommendation model to obtain a plurality of line segments, wherein each road network node corresponds to one line segment, and the line segment formed by the starting point and the end point is used as a target line segment;
calculating the degree of included angles formed by the target line segment and other line segments respectively;
deleting road network nodes corresponding to the line segments of which the included angle degrees with the target line segments are greater than or equal to a first preset angle to obtain recommended road network nodes;
and generating a recommended route according to the recommended road network node, the starting point and the end point.
In this embodiment, the first generating unit 402 may include an extracting module 4021, a generating module 4022, and a deleting module 4023.
The extracting module 4021 is configured to extract a target motion trajectory data set from the vehicle motion trajectory data set, where the operation state of the target motion trajectory data set is continuously empty, loaded with passengers, and the operation state includes empty and loaded with passengers.
The generating module 4022 may include an extracting sub-module 40221, a determining sub-module 40222, and a generating sub-module 40223.
The extracting sub-module 40221 is configured to extract the time, coordinates, and direction of each point from the target motion trajectory data set.
A determination sub-module 40222 for:
for any target motion trajectory data, determining the adjacency relation between points according to the time of each point;
calculating direction variation according to the adjacency relation between the points and the coordinates of each point, wherein the direction variation is an angle between two line segments respectively formed by one point and the two adjacent points;
and when the direction variation is larger than or equal to a second preset angle, determining the point adjacent to the other two points in the three corresponding points as the road network node.
Generate submodule 40223 for:
determining the adjacency relation between the road network nodes;
calculating the distance between adjacent road network nodes according to the coordinates of each road network node;
generating an adjacency matrix and a weighted undirected graph according to the adjacency relation between the road network nodes and the distance between the adjacent road network nodes;
and generating road network node data according to the weighted undirected graph and the adjacency matrix.
In this implementation, the functions of each unit and each module correspond to the steps in the embodiment shown in fig. 2, and are not described herein again.
Referring to fig. 5, another embodiment of the passenger carrying route recommending device driven by taxi track big data in the embodiment of the present application includes:
a processor 501, a memory 502, an input-output unit 503, and a bus 504;
the processor 501 is connected with the memory 502, the input/output unit 503 and the bus 504;
the memory 502 holds a program that the processor 501 calls to perform in the embodiment shown in fig. 1-2.
In this embodiment, the functions of the processor 501 correspond to the steps in the embodiments shown in fig. 1 to fig. 2, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and in actual implementation, there may be other divisions, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. Furthermore, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed to a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a hardware form, and can also be realized in a software functional unit form.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be essentially or partially understood to be a contribution to the prior art, or all or part of the technical solution may be embodied in a software product stored in a storage medium, and include instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
Claims (11)
1. A taxi track big data driven passenger carrying route recommendation method is characterized by comprising the following steps:
acquiring a vehicle motion track data set of a target area;
generating road network node data according to the vehicle motion track data set;
generating a route recommendation model according to the road network node data, wherein the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
acquiring a starting point and an end point of a user, wherein the starting point and the end point are positioned in the target area;
and generating a recommended route from the starting point to the end point according to the route recommendation model.
2. The taxi track big data driven passenger carrying route recommendation method according to claim 1, wherein the generating a route recommendation model according to the road network node data comprises:
a is to be * Fusing a heuristic algorithm into a Gurobi algorithm to generate an A-Gurobi algorithm;
and generating a route recommendation model according to the road network node data and the A-Gurobi algorithm, wherein the road network node data is used as a parameter of the route recommendation model.
3. The taxi track big data driven passenger carrying route recommendation method according to claim 1, wherein the generating of the recommended route from the starting point to the end point according to the route recommendation model comprises:
respectively connecting the starting point with each road network node in the road network node data of the route recommendation model and the end point to obtain a plurality of line segments, wherein each road network node corresponds to one line segment, and the line segment formed by the starting point and the end point is a target line segment;
calculating the degree of an included angle formed by the target line segment and other line segments;
deleting the road network nodes corresponding to the line segments of which the included angles formed with the target line segments are more than or equal to a first preset angle to obtain recommended road network nodes;
and generating a recommended route according to the recommended road network node, the starting point and the end point.
4. The taxi track big data driven passenger carrying route recommendation method according to any one of claims 1 to 3, wherein the generating road network node data according to the vehicle motion track data set comprises:
extracting a target motion trail data set from the vehicle motion trail data set, wherein the operation state of the target motion trail data set is empty vehicle-passenger continuously, and the operation state comprises empty vehicle and passenger;
and generating road network node data according to the target motion trail data set.
5. The taxi track big data driven passenger carrying route recommendation method according to claim 4, wherein the generating road network node data according to the target motion track data set comprises:
extracting the time and the coordinates of each point from the target motion trajectory data set;
determining road network nodes according to the time and the coordinates of each point;
and generating road network node data according to road network nodes, wherein the road network node data comprises a weighted undirected graph and an adjacency matrix.
6. The taxi track big data driven passenger carrying route recommendation method according to claim 5, wherein the determining road network nodes according to the time and the coordinates of each point comprises the following steps:
for any target motion trajectory data, determining the adjacency relation between points according to the time of each point;
calculating direction variation according to the adjacency relation between the points and the coordinates of each point, wherein the direction variation is the angle of two line segments formed by one point and the two adjacent points respectively;
and when the direction variation is larger than or equal to a second preset angle, determining the point adjacent to the other two points in the three corresponding points as the road network node.
7. The taxi track big data driven passenger carrying route recommendation method according to claim 5, wherein the generating of road network node data according to road network nodes comprises:
determining the adjacency relation between the road network nodes;
calculating the distance between adjacent road network nodes according to the coordinates of each road network node;
generating an adjacency matrix and a weighted undirected graph according to the adjacency relation between the road network nodes and the distance between the adjacent road network nodes;
and generating road network node data according to the weighted undirected graph and the adjacency matrix.
8. The taxi track big data driven passenger carrying route recommendation method according to claim 4, wherein before extracting the target motion track data set from the vehicle motion track data set, the method further comprises:
and deleting the isolated points in the vehicle motion trail data set.
9. A taxi track big data driven passenger carrying route recommendation device is characterized by comprising:
the first acquisition unit is used for acquiring a vehicle motion trail data set of a target area;
the first generation unit is used for generating road network node data according to the vehicle motion trail data set;
a second generation unit, configured to generate a route recommendation model according to the road network node data, where the route recommendation model is fused with an heuristic algorithm and an optimization algorithm;
a second obtaining unit, configured to obtain a start point and an end point of a user, where the start point and the end point are located in the target area;
a third generating unit, configured to generate a recommended route from the starting point to the ending point according to the route recommendation model.
10. A taxi track big data driven passenger carrying route recommendation device is characterized by comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory stores a program, and the processor calls the program to execute the taxi track big data driven passenger carrying route recommendation method according to any one of claims 1 to 8.
11. A computer-readable storage medium having stored therein a program which, when executed on a computer, causes the computer to execute the taxi track big data driven passenger route recommendation method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210531460.1A CN115049105B (en) | 2022-05-16 | 2022-05-16 | Taxi track big data driven passenger carrying route recommendation method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210531460.1A CN115049105B (en) | 2022-05-16 | 2022-05-16 | Taxi track big data driven passenger carrying route recommendation method, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115049105A true CN115049105A (en) | 2022-09-13 |
CN115049105B CN115049105B (en) | 2024-08-23 |
Family
ID=83158068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210531460.1A Active CN115049105B (en) | 2022-05-16 | 2022-05-16 | Taxi track big data driven passenger carrying route recommendation method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115049105B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130326380A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Triage Tool for Problem Reporting in Maps |
US20130325319A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Integrated mapping and navigation application |
CN110555640A (en) * | 2018-05-31 | 2019-12-10 | 北京京东振世信息技术有限公司 | Method and device for route planning |
CN111879329A (en) * | 2020-07-30 | 2020-11-03 | 郑州天迈科技股份有限公司 | Customized public transport passable shortest path calculation method based on A-x algorithm |
CN112183828A (en) * | 2020-09-15 | 2021-01-05 | 北京三快在线科技有限公司 | Path generation method and device, storage medium and electronic equipment |
US20210241625A1 (en) * | 2020-01-31 | 2021-08-05 | Here Global B.V. | Method and apparatus for providing large scale vehicle routing |
CN113409611A (en) * | 2021-06-09 | 2021-09-17 | 摩拜(北京)信息技术有限公司 | Parking area recommendation method and device |
CN113701778A (en) * | 2021-09-02 | 2021-11-26 | 广州宸祺出行科技有限公司 | Network appointment route planning method and device based on passenger route preference |
CN114065454A (en) * | 2021-11-19 | 2022-02-18 | 北京理工大学 | Method and system for optimizing schedule of urban rail transit night train |
CN114061604A (en) * | 2021-10-12 | 2022-02-18 | 贵州民族大学 | Passenger carrying route recommendation method, device and system based on movement track big data |
-
2022
- 2022-05-16 CN CN202210531460.1A patent/CN115049105B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130326380A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Triage Tool for Problem Reporting in Maps |
US20130325319A1 (en) * | 2012-06-05 | 2013-12-05 | Apple Inc. | Integrated mapping and navigation application |
CN110555640A (en) * | 2018-05-31 | 2019-12-10 | 北京京东振世信息技术有限公司 | Method and device for route planning |
US20210241625A1 (en) * | 2020-01-31 | 2021-08-05 | Here Global B.V. | Method and apparatus for providing large scale vehicle routing |
CN111879329A (en) * | 2020-07-30 | 2020-11-03 | 郑州天迈科技股份有限公司 | Customized public transport passable shortest path calculation method based on A-x algorithm |
CN112183828A (en) * | 2020-09-15 | 2021-01-05 | 北京三快在线科技有限公司 | Path generation method and device, storage medium and electronic equipment |
CN113409611A (en) * | 2021-06-09 | 2021-09-17 | 摩拜(北京)信息技术有限公司 | Parking area recommendation method and device |
CN113701778A (en) * | 2021-09-02 | 2021-11-26 | 广州宸祺出行科技有限公司 | Network appointment route planning method and device based on passenger route preference |
CN114061604A (en) * | 2021-10-12 | 2022-02-18 | 贵州民族大学 | Passenger carrying route recommendation method, device and system based on movement track big data |
CN114065454A (en) * | 2021-11-19 | 2022-02-18 | 北京理工大学 | Method and system for optimizing schedule of urban rail transit night train |
Non-Patent Citations (12)
Title |
---|
DAWEN XIA等: "An A2-Gurobi algorithm for route recommendation with big taxi trajectory data", 《MULTIMEDIA TOOLS AND APPLICATIONS》, vol. 82, 1 May 2023 (2023-05-01), pages 46547 * |
YAN LYU等: "T2CBS: Mining taxi trajectories for customized bus systems", 《2016 IEEE CONFERENCE ON COMPUTER COMMUNICATIONS WORKSHOPS (INFOCOM WKSHPS)》, 14 October 2016 (2016-10-14), pages 1 - 6 * |
乔翔宇;戴荣健;高剑;丁川;: "基于共享模式的网联自动驾驶车辆路径规划研究", 交通工程, no. 02, 15 April 2020 (2020-04-15), pages 73 - 78 * |
吕铮: "基于轨迹数据的出租车路线推荐和公交车调度算法研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 2019, 15 July 2019 (2019-07-15), pages 138 - 1414 * |
周绍景;赵发宾;王敏;丁洪伟;: "动态路径推荐算法在城市智慧交通技术中的应用", 昆明冶金高等专科学校学报, no. 05, 15 October 2019 (2019-10-15), pages 71 - 77 * |
唐炉亮;常晓猛;李清泉;SHAW S L;: "基于蚁群优化算法与出租车GPS数据的公众出行路径优化", 中国公路学报, no. 02, 15 March 2011 (2011-03-15), pages 89 - 95 * |
张婷婷: "基于脉冲算法的带时间窗车辆路径规划研究", 《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》, no. 2022, 15 February 2022 (2022-02-15), pages 034 - 631 * |
徐国勋;李妍峰;李军;: "基于客户需求的现金押运路线问题研究", 信息系统学报, no. 01, 30 September 2017 (2017-09-30), pages 72 - 83 * |
戚欣;梁伟涛;马勇;: "基于出租车轨迹数据的最优路径规划方法", 计算机应用, no. 07, 10 July 2017 (2017-07-10), pages 2106 - 2113 * |
曹永胜: "基于物联网的电动汽车充电调度与行车路径优化方法研究", 《中国博士学位论文全文数据库 (工程科技Ⅱ辑)》, no. 2022, 15 January 2022 (2022-01-15), pages 034 - 114 * |
赵越超: "基于两阶段蚁群算法的A公司路径优化问题研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 2022, 15 January 2022 (2022-01-15), pages 140 - 463 * |
高文超;李国良;塔娜;: "路网匹配算法综述", 软件学报, no. 02, 17 October 2017 (2017-10-17), pages 225 - 250 * |
Also Published As
Publication number | Publication date |
---|---|
CN115049105B (en) | 2024-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104462190B (en) | A kind of online position predicting method excavated based on magnanimity space tracking | |
CN111090712B (en) | Data processing method, device, equipment and computer storage medium | |
CN110647693B (en) | Path recommendation method and device | |
CN112765753B (en) | Public transport super network construction method | |
CN103365886B (en) | The querying method of the spatial event in car networking and Optimizing Queries device | |
JP7476290B2 (en) | Road information update method, device, electronic device, recording medium, and computer program | |
CN107391516B (en) | Bus stop aggregation method and device | |
CN117553818A (en) | Path planning method and system based on improved A-algorithm | |
Ai et al. | A map generalization model based on algebra mapping transformation | |
CN115049105B (en) | Taxi track big data driven passenger carrying route recommendation method, device and medium | |
CN105740374B (en) | Three-dimensional platform data fuzzy query method based on distributed memory | |
CN105426384A (en) | Proposed target location generation method and apparatus | |
CN116935656B (en) | Road traffic data processing method and device, electronic equipment and storage medium | |
CN115779424B (en) | Navigation grid path finding method, device, equipment and medium | |
Yang et al. | Real‐time detection of traffic congestion based on trajectory data | |
CN115547087B (en) | Urban road network shortest path acquisition method based on two-stage method and direction induction and application | |
CN113743820B (en) | Networking processing method based on descriptive bus line data | |
Keler et al. | Is there a relationship between complicated crossings and frequently visited locations? A case study with boro taxis and OSM in NYC | |
CN113778102A (en) | AVP global path planning system, method, vehicle and storage medium | |
CN103593364B (en) | The method and system of keyword is filled in a kind of route search | |
CN105677841A (en) | Method and device for pushing geographic word bank | |
CN112508264A (en) | Method for planning path of big data of power transmission line stock project by using genetic algorithm | |
CN117911974B (en) | Data processing method, device, equipment and storage medium | |
CN113124894B (en) | Information processing method, information processing device and electronic equipment | |
CN117131074B (en) | Real-time analysis method, system and storage medium for large-scale complex vector data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |