A method and system for searching for optimal pick-up and drop-off points in taxi service
By analyzing the urban road network, mapping POIs and constructing virtual graphs, combined with real-time traffic conditions, the problem of low accuracy of boarding point search and high algorithm complexity in the existing technology is solved, and efficient optimal boarding and alighting point search is achieved. Improved the operational efficiency of taxi services.
Patent Information
- Application Number
- CN202310068400.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-02-06
AI Technical Summary
Existing ride-hailing services rely on historical data when searching for pick-up points and ignore the impact of traffic flow, resulting in low accuracy of results; existing ride-hailing route planning algorithms have high time complexity and cannot meet real-time requirements.
By obtaining the current urban road network, parsing it into pedestrian and vehicle road networks, obtaining POIs and mapping them to the edge of the road network, and constructing a virtual map based on the maximum pickup and walking time range of drivers and passengers, combined with real-time traffic conditions , search for the best pick-up and drop-off points.
It improves the search accuracy and precision of boarding and alighting points, effectively avoids detours and congested areas, shortens the travel time of passengers and drivers, and improves system operation efficiency.
Smart Images

Figure CN116108288B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of searching for optimal points in spatial crowdsourcing services, and in particular to a method and system for searching for optimal boarding and alighting points in a taxi service. Background Art
[0002] With the development of sharing economy and geographic information system, spatial crowdsourcing services have gradually occupied an important position in our daily life. Common spatial crowdsourcing services include taxi-hailing (such as Didi and AutoNavi), food delivery (such as Meituan and Ele.me), city perception (AutoNavi Map, OSM), etc. Among them, taxi-hailing service (or online car-hailing service) is a widely used spatial crowdsourcing service. Most existing methods only use Euclidean distance as a measure of distance in spatial crowdsourcing tasks, instead of using the more realistic travel time in the road network. In addition, existing taxi-hailing system-related work has not yet been able to determine the optimal pick-up and drop-off points on the road network. However, the selection of the optimal pick-up and drop-off points can effectively avoid detours and avoid congested areas, significantly shorten the travel time of users and drivers, and improve the efficiency of system operation.
[0003] Although some existing path planning methods in ride-sharing services take the impact of pick-up and drop-off points into account and propose relevant optimal algorithms. However, the time complexity of these algorithms is too high to meet real-time requirements, and their purpose is more to reduce the driver's pick-up time and empty car rate. Although the existing heuristic-based ride-sharing algorithm reduces the time complexity, it cannot guarantee that the optimal pick-up and drop-off points can be found, and the method itself is not suitable for taxi services such as express and private cars. The existing pick-up point search method of the taxi system mainly recommends pick-up and drop-off points based on historical data, ignoring the impact of traffic flow and drop-off points on the total travel time, resulting in low precision and accuracy in the search for the optimal pick-up and drop-off points. Summary of the invention
[0004] To this end, the technical problem to be solved by the present invention is to overcome the problem in the prior art that historical data are used when searching for boarding points, and the influence of traffic flow is ignored, resulting in low accuracy of the final result; and the time complexity of the hitchhiking path planning algorithm considering the optimal boarding and alighting points is too high and cannot meet real-time requirements.
[0005] In order to solve the above technical problems, the present invention provides a method for searching for optimal boarding and alighting points in a taxi service, comprising:
[0006] S1. Obtain the current urban road network, and resolve the urban road network into a pedestrian road network and a vehicle road network;
[0007] S2. Obtain all POIs in the current city, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, obtain the current position of the driver and the passenger, respectively map the current position of the driver and the passenger to the edge of the city road network, and obtain the pick-up point within the maximum pick-up time range of the driver and the pick-up point and the drop-off point within the maximum walking time range of the passenger according to the set maximum pick-up time of the driver and the maximum walking time of the passenger;
[0008] S3, obtaining the intersection of the passenger and driver's boarding points according to the boarding points within the driver's maximum pick-up time range, the boarding points within the passenger's maximum walking time range, and the real-time traffic conditions;
[0009] S4, constructing a virtual graph through the intersection of the passenger-driver boarding points and all the passenger alighting points around the destination;
[0010] S5. Searching for optimal boarding and alighting points by establishing virtual points on the virtual map.
[0011] In one embodiment of the present invention, the method of parsing the urban road network into a pedestrian road network and a vehicle road network in S1 is:
[0012] The current city's overall road network is obtained through the OSM API interface of OSMnx, the edge attributes of the city's road network are parsed, and the road network is separated into a pedestrian road network and a vehicle road network.
[0013] In one embodiment of the present invention, the method of mapping the POI to the edge in S2 is:
[0014] Get all POIs in the current city through OSM Api of OSMnx, and determine whether it is necessary to accelerate edge search. If not, find the edge closest to the POI and map the POI to the edge. If necessary, find the vertex set near the POI through KDTree, find the edge closest to the POI among the edges associated with the points in the vertex set, and map the POI to the edge.
[0015] In one embodiment of the present invention, the method of obtaining the boarding point within the maximum pick-up time range of the driver and the boarding point within the maximum walking time range of the passenger in S2 is:
[0016] Obtain the current location of the driver and the passenger through GPS, convert the location information into longitude and latitude coordinates in wsg84 format, find the edge closest to the driver's current location based on the driver's current longitude and latitude and altitude information, and map the driver's location to the edge;
[0017] Perform BFS starting from the driver's position on the edge to find all the pick-up points within the driver's maximum pick-up time.
[0018] Find the edge closest to the passenger's starting point according to the latitude, longitude and altitude information of the passenger's starting point, and map the passenger's starting point to the edge;
[0019] Perform BFS with the passenger's starting point on the edge as the source point to find all boarding points within the maximum walking time around the passenger's starting point.
[0020] In one embodiment of the present invention, the method for obtaining all the getting-off points around the passenger's terminal in S4 is:
[0021] Find the edge closest to the passenger's starting point according to the latitude, longitude and altitude information of the passenger's destination, and map the passenger's destination to the edge;
[0022] Perform BFS with the location of the passenger's terminal on the edge as the source point to find all the get-off points within the maximum walking time around the passenger's terminal.
[0023] In one embodiment of the present invention, the method of constructing a virtual graph through the intersection of the passenger-driver boarding points and all the passenger alighting points around the destination in S4 is:
[0024] The vertices on the road network are copied as the vertices of the virtual graph, the edges on the road network are the edges of the virtual graph, and the travel time on the current road network is used as the edge weight to construct the initial virtual graph;
[0025] The intersection of the passenger and driver boarding points is used as a candidate boarding point set, all POIs in the candidate boarding point set are added to the initial virtual graph, and all POIs in the alighting points are added to the initial virtual graph;
[0026] Connect the copy point p1 of the starting point of the edge where the POI is located on the initial virtual graph and the POI point, and the travel time from p1 to the POI is the travel time from the starting point of the edge where the POI is located on the road network to the POI;
[0027] Connect the end point of the edge where the POI is located on the initial virtual graph with the copy point p2 and the POI point, and the travel time from the POI to p2 is the travel time from the end point of the edge where the POI is located on the road network to the POI;
[0028] The copies of the edges where all POIs are located in the initial virtual graph are deleted to complete the virtual graph.
[0029] In one embodiment of the present invention, the method of searching for the optimal boarding and alighting point by establishing a virtual point on the virtual map in S5 is:
[0030] Insert a virtual point vs in the virtual graph, connect vs and all POIs added to the virtual graph as boarding points, and the copy points of all candidate boarding points in the virtual graph, and the edge weight from vs to the boarding point is the maximum value of the travel time of the passenger walking to the point and the travel time of the driver driving to the point;
[0031] Insert a virtual point vd into the virtual graph, connect vd and all POIs added to the virtual graph as alighting points, and the copies of all candidate alighting points in the virtual graph, and the edge weight of the edge corresponding to the candidate alighting point to vd is the travel time of the passenger walking from the alighting point to the destination;
[0032] Find the shortest path from vs to vd, the second point on the shortest path is the optimal boarding point, and the second to last point on the shortest path is the optimal alighting point.
[0033] The present invention also provides a system for searching for optimal boarding and alighting points in a taxi service, comprising:
[0034] A road network module is used to obtain the current city road network and resolve the city road network into a pedestrian network and a vehicle network;
[0035] An information acquisition module is used to acquire all POIs in the current city, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, acquire the current position of the driver and the passenger, respectively map the current position of the driver and the passenger to the edge of the city road network, and acquire the pick-up point within the maximum pick-up time range of the driver and the pick-up point and the drop-off point within the maximum walking time range of the passenger according to the set maximum pick-up time of the driver and the maximum walking time of the passenger;
[0036] An intersection module, used for obtaining the intersection of the passenger and driver's pick-up points according to the pick-up points within the driver's maximum pick-up time range and the passenger's maximum walking time range, and real-time traffic conditions;
[0037] A virtual graph construction module, used to construct a virtual graph through the intersection of the passenger-driver pick-up points and all the drop-off points around the passenger's destination;
[0038] The calculation module is used to establish virtual points on the virtual map to search for optimal boarding and alighting points.
[0039] Accordingly, an embodiment of the present invention further provides a search device, including:
[0040] Memory for storing computer programs;
[0041] A processor is used to implement the steps of the method for searching for the optimal boarding and alighting points in the above-mentioned taxi service when executing the computer program.
[0042] Correspondingly, an embodiment of the present invention also provides a computer-readable non-volatile storage medium, including computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method for searching for optimal boarding and alighting points in the above-mentioned taxi service.
[0043] The above technical solution of the present invention has the following advantages compared with the prior art:
[0044] The method and system for searching the optimal boarding and alighting points in a taxi service described in the present invention first obtains the current city road network and all POIs, maps the POIs to the nearest edge in the road network, then maps the positions of the passenger and the driver to the edge of the road network, obtains the intersection of the boarding points within the driver's maximum pick-up time range and the boarding points within the passenger's maximum walking time range, constructs a virtual map through the intersection and all the boarding points around the passenger's destination and real-time traffic conditions, and finally searches for the optimal boarding and alighting points by establishing virtual points on the virtual map. The method for searching the optimal boarding and alighting points in a taxi service described in the present invention can effectively improve the accuracy and precision of searching for the optimal boarding and alighting points, and the correct selection of the optimal boarding and alighting points can effectively avoid detours and avoid congested areas, effectively reduce the travel time of passengers and drivers, and improve the operating efficiency of the taxi service platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein
[0046] Figure 1 is a flow chart of a method for searching for optimal boarding and alighting points in a taxi service of the present invention;
[0047] Figure 2 is a flow chart of mapping POI to edges according to the present invention;
[0048] Figure 3 It is a schematic diagram of a system for searching for optimal boarding and alighting points in a taxi service of the present invention. DETAILED DESCRIPTION
[0049] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0050] Embodiment 1
[0051] like Figure 1 As shown, the method for searching for the optimal pick-up and drop-off points in a taxi service described in this embodiment specifically includes:
[0052] S1. Obtain the current city road network, and resolve the city road network into a pedestrian road network and a vehicle road network; S2. Obtain all POIs (marked points on the Point Of Interest map) in the current city, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, obtain the current positions of the driver and the passenger, respectively map the current positions of the driver and the passenger to the edge of the city road network, and obtain the pick-up point within the driver's maximum pick-up time and the pick-up point and the drop-off point within the passenger's maximum walking time according to the set driver's maximum pick-up time and the passenger's maximum walking time; S3. Obtain the intersection of the passenger-driver pick-up point according to the pick-up point within the driver's maximum pick-up time and the passenger's maximum walking time, as well as the real-time traffic conditions; S4. Construct a virtual map through the intersection of the passenger-driver pick-up point and all the drop-off points around the passenger's destination; S5. Search for the optimal pick-up and drop-off point by establishing virtual points on the virtual map.
[0053] The method for searching for the optimal boarding and alighting points in the taxi service described in this embodiment obtains the current urban road network and POI, which is conducive to real-time data updating, obtaining real-time traffic conditions, and improving the precision and accuracy of searching for the optimal boarding and alighting points; by establishing a virtual map, the current traffic flow and road network topology, as well as the driver's location, the passenger's starting point and destination, can be used to accurately search for the optimal boarding and alighting point from all candidate boarding and alighting points in real time, thereby minimizing the passenger's travel time and reducing the driver's pick-up and drop-off time, and meeting real-time requirements.
[0054] The method for parsing the urban road network into a pedestrian road network and a vehicle road network in S1 is: obtaining the current urban overall road network through the OSM API interface of OSMnx (OpenStreet Map block network analysis library), parsing the edge attributes of the urban road network, and separating the road network into a pedestrian road network and a vehicle road network.
[0055] Specifically, the road network is exported as a pickle format file, the edges on the road network are saved as a csv file in the form of starting vertex, ending vertex, edge length, and road free flow travel time, and the vertices on the road network are saved as a csv file in the form of ID, OSMID, longitude, latitude, and altitude. The pedestrian road network and vehicle road network csv files are read separately through csvUtil and saved in the memory in the form of a graph structure.
[0056] By obtaining the current city's overall road network through the OSM API interface of OSMnx, you can obtain the edge attribute information of the city's road network, which is conducive to the complete establishment of the subsequent virtual map.
[0057] like Figure 2As shown, the method for mapping the POI to the edge in S2 is: obtain all POIs in the current city through the OSM API of OSMnx, determine whether it is necessary to accelerate edge search, if not, find the edge closest to the POI through Heron's formula and trigonometric functions, and map the POI to the edge, if necessary, find the vertex set near the POI through KDTree, find the edge closest to the POI among the edges associated with the points in the vertex set, and map the POI to the edge.
[0058] Specifically, read the road network file saved in S1, and save its edges in the form of starting longitude, starting latitude, starting altitude, end longitude, end latitude, and end altitude in numpy format data and torch.tensor format data. Export the obtained POI as a pickle file, loop through all POIs, and obtain the longitude, latitude, and altitude of each POI; and save the result of mapping the POI to the edge as a csv file in the form of edge starting point, edge end point, and edge position. Start the road network traffic flow update interface so that the system can accept external input traffic flow data to update the travel time on the road network edge in real time.
[0059] The method for obtaining the pick-up points within the driver's maximum pick-up time range and the pick-up points within the passenger's maximum walking time range in S2 is as follows: obtain the current location of the driver and the passenger through GPS, convert the location information into longitude and latitude coordinates in wsg84 (geocentric coordinate system) format, find the edge closest to the driver's current location based on the driver's current longitude and latitude and altitude information, and map the driver's location to the edge; perform BFS (breadth-first search algorithm) with the driver's location on the edge as the starting point to find all pick-up points (POI and road network points) within the driver's maximum pick-up time range; find the edge closest to the passenger's starting point based on the longitude and latitude and altitude information of the passenger's starting point, and map the passenger's starting point to the edge; perform BFS with the passenger's starting point on the edge as the source point to find all pick-up points within the maximum walking time around the passenger's starting point.
[0060] By converting the location information into longitude and latitude coordinates in wsg48 format, a unified standard is achieved, which is conducive to quickly calculating the nearest edge; using the driver's position on the edge as the starting point for BFS is conducive to searching for the boarding point within the maximum pick-up time range of all drivers, thereby improving the accuracy of searching for the optimal boarding and alighting point.
[0061] The method for constructing a virtual graph through the intersection of the passenger driver's boarding points and all the alighting points around the passenger's destination in S4 is as follows: copying the vertices on the vehicle road network as the vertices of the virtual graph, the edges on the vehicle road network as the edges of the virtual graph, and taking the travel time on the current vehicle road network as the edge weight to construct an initial virtual graph; taking the intersection of the passenger driver's boarding points as a candidate boarding point set, adding all POIs in the candidate boarding point set to the initial virtual graph, and adding POIs in all alighting points to the initial virtual graph; connecting the copy point p1 on the initial virtual graph where the starting point of the edge where the POI is located and the POI point, the travel time from p1 to the POI is the travel time from the starting point of the edge where the POI is located on the road network to the POI; connecting the copy point p2 on the initial virtual graph where the end point of the edge where the POI is located and the POI point, the travel time from the POI to p2 is the travel time from the end point of the edge where the POI is located on the road network to the POI; deleting the copies of all POI edges in the initial virtual graph to complete the virtual graph.
[0062] By constructing a virtual graph, we can efficiently search for the optimal pick-up and drop-off points on the road network, taking into account the topological structure and traffic flow of the road network, and search for the optimal pick-up and drop-off points for all taxi services, minimizing passenger travel time and shortening driver pick-up time.
[0063] The method for searching the optimal boarding and alighting points by establishing virtual points on the virtual graph in S5 is as follows: inserting a virtual point vs in the virtual graph, connecting vs and all POIs added to the virtual graph as boarding points, and the copies of all candidate boarding points in the virtual graph, the edge weight from vs to the boarding point is the maximum value of the travel time for the passenger to walk to the point and the travel time for the driver to drive to the point; inserting a virtual point vd in the virtual graph, connecting vd and all POIs added to the virtual graph as alighting points, and the copies of all candidate alighting points in the virtual graph, the edge weight from the candidate alighting point to vd is the travel time for the passenger to walk to the destination; finding the shortest path from vs to vd, the second point on the shortest path is the optimal boarding point, and the second to last point on the shortest path is the optimal alighting point.
[0064] After completing the above steps, wait for query requests from passengers and drivers, and continuously update the road network traffic flow information. If query requests from passengers and drivers are received, find the optimal boarding and alighting points through the virtual map, return the optimal boarding and alighting point pair, and continue to wait for query requests and update traffic flow.
[0065] Embodiment 2
[0066] Based on the same inventive concept, this embodiment provides a system for searching for optimal boarding and alighting points in a taxi service. The principle of solving the problem is similar to the method for searching for optimal boarding and alighting points in the taxi service, and the repeated parts will not be repeated.
[0067] like Figure 3 As shown, an embodiment of the present invention provides a system for searching for optimal boarding and alighting points in a taxi service, comprising:
[0068] A road network module 11 is used to obtain the current city road network and resolve the city road network into a pedestrian network and a vehicle network;
[0069] The information acquisition module 12 is used to acquire all POIs in the current city, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, acquire the current position of the driver and the passenger, respectively map the current position of the driver and the passenger to the edge of the city road network, and acquire the pick-up point within the maximum pick-up time range of the driver and the pick-up point and the drop-off point within the maximum walking time range of the passenger according to the set maximum pick-up time of the driver and the maximum walking time of the passenger;
[0070] An intersection module 13, for obtaining the intersection of the passenger and driver's boarding points according to the boarding points within the maximum pick-up time range of the driver and the boarding points within the maximum walking time range of the passenger, and the real-time traffic conditions;
[0071] A virtual graph construction module 14, for constructing a virtual graph through the intersection of the passenger-driver boarding points and all the passenger alighting points around the destination;
[0072] The calculation module 15 is used to establish virtual points on the virtual map to search for optimal boarding and alighting points.
[0073] Embodiment 3
[0074] This embodiment also provides a search device, including:
[0075] Memory for storing computer programs;
[0076] A processor is used to implement the steps of a method for searching for optimal boarding and alighting points in a taxi service described in Example 1 when executing the computer program.
[0077] Embodiment 4
[0078] This embodiment also provides a computer-readable non-volatile storage medium, including:
[0079] Computer-readable instructions, when a computer reads and executes the computer-readable instructions, enable the computer to execute the method for searching for optimal boarding and alighting points in a taxi service as described in Example 1.
[0080] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0081] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0084] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims
1. A method for searching for optimal pick-up and drop-off points in a taxi service, characterized in that: include: S1. Obtain the current urban road network, and resolve the urban road network into a pedestrian road network and a vehicle road network; S2. Obtain all POIs in the current city as candidate boarding points, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, obtain the current positions of the driver and the passenger, map the current positions of the driver and the passenger to the edges of the vehicle road network and the pedestrian road network respectively, and obtain the boarding point within the maximum pick-up time of the driver and the boarding point and the alighting point within the maximum walking time of the passenger according to the set maximum pick-up time of the driver and the maximum walking time of the passenger; the method for mapping the POI to the edge is: obtain all POIs in the current city through OSM Ap i of OSMnx, determine whether it is necessary to accelerate edge search, if not, find the edge closest to the POI, and map the POI to the edge, if necessary, find the vertex set near the POI through KDTree, find the edge closest to the POI in the edge associated with the point in the vertex set, and map the POI to the edge; S3, obtaining the intersection of the passenger and driver's boarding points according to the boarding points within the driver's maximum pick-up time range, the boarding points within the passenger's maximum walking time range, and the real-time traffic conditions; S4, constructing a virtual graph through the intersection of the passenger driver's boarding point and all the passenger's getting off points around the destination; the method of constructing the virtual graph is: copying the vertices on the vehicle road network as the vertices of the virtual graph, the edges on the vehicle road network as the edges of the virtual graph, and using the travel time on the current vehicle road network as the edge weight to construct an initial virtual graph; The intersection of the passenger and driver boarding points is used as a candidate boarding point set, all POIs in the candidate boarding point set are added to the initial virtual graph, and all POIs in the alighting points are added to the initial virtual graph; Connect the copy point p1 of the starting point of the edge where the POI is located on the initial virtual graph and the POI point, and the travel time from p1 to the POI is the travel time from the starting point of the edge where the POI is located on the road network to the POI; Connect the copy point p2 of the end point of the edge where the POI is located on the initial virtual graph and the POI point, and the travel time from the POI to p2 is the travel time from the POI to the end point of the edge where the POI is located on the road network; Deleting the copies of the edges where all POIs are located in the initial virtual graph to complete the virtual graph; S5. Searching for the optimal boarding and alighting point by establishing a virtual point on the virtual graph; wherein the method for searching for the optimal boarding and alighting point by establishing a virtual point on the virtual graph is as follows: inserting a virtual point vs into the virtual graph, connecting vs and all POIs added to the virtual graph as boarding points, and the copy points of all candidate boarding points in the virtual graph, and the edge weight from vs to the boarding point is the maximum value of the travel time of the passenger walking to the point and the travel time of the driver driving to the point; Insert a virtual point vd into the virtual graph, connect vd and all POIs added to the virtual graph as alighting points, and the copies of all candidate alighting points in the virtual graph, and the edge weight of the edge corresponding to the candidate alighting point to vd is the travel time of the passenger walking from the alighting point to the destination; The shortest path from vs to vd is found on the virtual graph, the second vertex on the shortest path is the optimal boarding point, and the second to last vertex on the shortest path is the optimal alighting point.
2. The method for searching for optimal boarding and alighting points in a taxi service according to claim 1, characterized in that: The method for parsing the urban road network into a pedestrian road network and a vehicle road network in S1 is: The current city's overall road network is obtained through the OSM API interface of OSMnx, the edge attributes of the city's road network are parsed, and the road network is separated into a pedestrian road network and a vehicle road network.
3. The method for searching for optimal boarding and alighting points in a taxi service according to claim 1, characterized in that: The method for obtaining the boarding point within the driver's maximum pick-up time range and the boarding point within the passenger's maximum walking time range in S2 is: Obtain the current location of the driver and the passenger through GPS, convert the location information into longitude and latitude coordinates in wsg84 format, find the edge closest to the driver's current location on the road network according to the driver's current longitude and latitude and altitude information, and map the driver's location to the edge; Perform BFS starting from the driver's position on the edge to find all the pick-up points within the driver's maximum pick-up time. Finding the edge closest to the passenger's starting point on the pedestrian network according to the latitude, longitude and altitude information of the passenger's starting point, and mapping the passenger's starting point to the edge; Perform BFS with the passenger's starting point on the edge as the source point to find all boarding points within the maximum walking time around the passenger's starting point.
4. The method for searching for optimal boarding and alighting points in a taxi service according to claim 1, characterized in that: The method for obtaining all the alighting points around the passenger terminal in S4 is: Finding the edge closest to the passenger's starting point on the pedestrian network according to the latitude, longitude and altitude information of the passenger's destination, and mapping the passenger's destination to the edge; Perform BFS with the location of the passenger's terminal on the edge as the source point to find all the get-off points within the maximum walking time around the passenger's terminal.
5. A system for searching for optimal pick-up and drop-off points in a taxi service, characterized in that: include: A road network module is used to obtain the current city road network and resolve the city road network into a pedestrian network and a vehicle network; An information acquisition module is used to obtain all POIs in the current city as candidate boarding points, find the edge closest to the POI in the pedestrian road network and the vehicle road network, map the POI to the edge, obtain the current positions of the driver and the passenger, map the current positions of the driver and the passenger to the vehicle road network and the pedestrian road network respectively, and obtain the boarding point within the driver's maximum pick-up time and the boarding point and the alighting point within the passenger's maximum walking time according to the set driver's maximum pick-up time and the passenger's maximum walking time; when mapping the POI to the edge: obtain all POIs in the current city through the OSM Api of OSMnx, determine whether it is necessary to accelerate the edge search, if not, find the edge closest to the POI, and map the POI to the edge, if necessary, find the vertex set near the POI through KDTree, find the edge closest to the POI among the edges associated with the points in the vertex set, and map the POI to the edge; An intersection module, used for obtaining the intersection of the passenger and driver's pick-up points according to the pick-up points within the driver's maximum pick-up time range and the passenger's maximum walking time range, and real-time traffic conditions; A virtual graph construction module is used to construct a virtual graph through the intersection of the passenger driver's boarding points and all the alighting points around the passenger's terminal. When constructing the virtual graph: copy the vertices on the road network as the vertices of the virtual graph, the edges on the road network as the edges of the virtual graph, and use the travel time on the current road network as the edge weight to construct an initial virtual graph; take the intersection of the passenger driver's boarding points as a candidate boarding point set, add all POIs in the candidate boarding point set to the initial virtual graph, and add all POIs in the alighting points to the initial virtual graph; connect the copy point p1 on the initial virtual graph where the starting point of the edge where the POI is located and the POI point, and the travel time from p1 to the POI is the travel time from the starting point of the edge where the POI is located on the road network to the POI; connect the copy point p2 on the initial virtual graph where the end point of the edge where the POI is located and the POI point, and the travel time from the POI to p2 is the travel time from the POI to the end point of the edge where the POI is located on the road network; delete the copies of all POI edges in the initial virtual graph to complete the virtual graph; A calculation module is used to establish virtual points on the virtual graph to search for optimal boarding and alighting points; when searching for optimal boarding and alighting points by establishing virtual points on the virtual graph: insert a virtual point vs in the virtual graph, connect vs and all POIs added to the virtual graph as boarding points, and the copies of all candidate boarding points in the virtual graph, the edge weight of the edge from vs to the boarding point is the maximum value of the travel time for passengers to walk to the point and the travel time for drivers to drive to the point; insert a virtual point vd in the virtual graph, connect vd and all POIs added to the virtual graph as alighting points, and the copies of all candidate alighting points in the virtual graph, the edge weight of the edge corresponding to the candidate alighting point to vd is the travel time for passengers to walk from the alighting point to the destination; find the shortest path from vs to vd on the virtual graph, the second vertex on the shortest path is the optimal boarding point, and the second to last vertex on the shortest path is the optimal alighting point.
6. A search device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for searching for optimal boarding and alighting points in a taxi service as described in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable non-volatile storage medium, characterized in that: include: Computer-readable instructions, when a computer reads and executes the computer-readable instructions, enable the computer to execute the method of searching for the optimal boarding and alighting points in the taxi service described in any one of the above claims 1-4.
Citation Information
Patent Citations
Method and apparatus for providing get-on place for passenger
CN107665476A
Smart carpool matching method
CN108416480A
A catering service customization method and system
CN109658173A
Online car-hailing scheduling method based on improved Dijkstra algorithm
CN112562309A
Passenger integrated smart travel method and system based on urban rail transit
CN115081762A
