Privacy protection carpooling method, device, equipment and storage medium based on shortest path
By using anchor point approximate calculation and coarse-grained location filtering technology during the carpooling process, the problem of privacy protection in the carpooling process is solved, a balance between privacy protection and platform efficiency is achieved, and the carpooling efficiency and user experience are improved.
Patent Information
- Application Number
- CN202111511976.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-06
AI Technical Summary
Existing technology cannot effectively calculate and protect passenger privacy during the carpooling process, and it is difficult to balance user privacy and platform efficiency.
By obtaining map information and setting up anchor points to approximate road distance, obtain the coarse-grained locations of passengers and drivers for filtering, select the carpooling plan with the shortest driving distance, and send the plan to relevant users to achieve successful carpooling.
It achieves privacy protection during the carpooling process, improves carpooling efficiency and user experience, and ensures the security of user data and the efficient operation of the platform.
Smart Images

Figure CN114118625B
Abstract
Description
Technical Field
[0001] The present application relates to the field of online car-hailing, and in particular to a privacy-protected carpooling method, device, equipment and storage medium based on the shortest path. Background Art
[0002] In recent years, with the development of mobile communications and the sharing economy, online car-hailing services have risen rapidly and become a popular way of travel. Online car-hailing platforms can quickly match passengers and drivers in real time based on the location information submitted by them, so that passengers can make reservations for drivers in advance according to their needs, improving travel efficiency. Drivers can also use vehicle resources to register as online car-hailing drivers to earn income. However, as a location-based service, the protection of user location privacy is often overlooked. The leakage of location may expose the user's itinerary, identity and other information, resulting in many serious consequences. With the advent of the big data era, user data has exploded. Platforms can use big data to better improve user experience, but when providing services, they should first ensure user data security and protect user privacy from being leaked to third-party entities. The country attaches great importance to big data security and its standardization, and promotes it as a national development strategy. However, at the same time, incidents of third-party data hosting platforms leaking user sensitive data still occur from time to time. Therefore, the power of supervision alone is limited. Technology is needed to ensure that third parties cannot directly access user sensitive information and protect user privacy from malicious use from the source of the data. Secondly, it is necessary to maximize platform efficiency and user experience on the basis of protecting user privacy. At present, there are few solutions that can take into account both user privacy and platform efficiency.
[0003] Carpooling allows multiple passengers with similar itineraries to share the same online ride-hailing vehicle. Carpooling is also a form of the sharing economy in a broad sense, which is beneficial to both environmental protection and the service participants [3]. For passengers, this method provides an economical and efficient travel option. For drivers, picking up and dropping off multiple passengers in one trip can reduce driving costs and increase income. At the same time, carpooling reduces the total vehicle distance traveled and reduces carbon dioxide emissions compared to passengers taking a taxi individually.
[0004] Therefore, how to implement a carpooling solution based on the shortest path during the carpooling process has become a technical problem that needs to be solved urgently.
[0005] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present invention is to provide a privacy-preserving carpooling method, device, equipment and storage medium based on the shortest path, aiming to solve the technical problem that the prior art cannot secretly calculate the shortest path during the carpooling process.
[0007] To achieve the above object, the present invention provides a privacy-preserving carpooling method based on the shortest path, the method comprising:
[0008] Acquire current map information, and perform approximate calculation of the road distance between any two points in the map information by setting anchor points in the map information;
[0009] Obtain the coarse-grained locations of passengers and drivers in the current map information, and filter the passengers to obtain a set of passengers near the target driver;
[0010] According to the approximate calculation results of the anchor points, the passenger set and the driver are traversed to select the solution with the shortest driving distance;
[0011] The shortest driving distance solution is sent to the corresponding passengers and drivers to achieve successful carpooling.
[0012] Optionally, the step of obtaining current map information and performing approximate calculation of the road distance between any two points in the map information by setting up anchor points in the map information includes:
[0013] Get the current map information and divide the map into preset areas;
[0014] An anchor point is set as a reference point in the region, and the anchor point is set taking into account the number of adjacent edges and the distance from the center of the region;
[0015] The distances between all anchor points in the map information are approximately calculated and the calculation results are stored.
[0016] Optionally, before the step of obtaining the coarse-grained positions of the passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver, the step further includes:
[0017] When a passenger sends a carpooling request, the travel time t of the passenger to the anchor point is calculated by combining the current location information of the passenger with the map tool. s→AP(s) and t d→AP(d) , where s is the passenger's origin and d is the passenger's destination.
[0018] Optionally, the step of obtaining the coarse-grained positions of passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver includes:
[0019] Get the driver's current uploaded information, which includes: the driver's current location l, the driver's load passenger number CAP d And the number of passengers the driver is carrying OBR d , the uploaded information is generated
[0020] Get the passenger's current carpool request Where s is the passenger's departure point and d is the passenger's destination;
[0021] Determine the current OBR d = 0 is equal to 0;
[0022] In the OBRd = At 0: Get the passenger set in all target radius areas
[0023] By pre-calculating AP(r i .z(s)) and AP(r i .z(d)) and the sequence r of the regions through which the path passes i .Zpath={r i .z(s),…,r i .z(d)};
[0024] Select the M passengers with the longest Zpath length As the root passenger, construct M corresponding sets at the same time
[0025] Optionally, the method selects M passengers with the longest Zpath lengths. As the root passenger, construct M corresponding sets at the same time After the steps, it also includes:
[0026] Calculate the extended path area r.EZpath for the passenger. The passengers other than the root passenger will be compared to see if their paths and directions are similar to any root passenger as follows:
[0027]
[0028]
[0029] Formula 1 refers to the passenger r j The origin and destination are in r i On the path where the trip is located, when formula 1 is satisfied, use formula 2 to determine whether their path directions are consistent;
[0030] If so, r j will be added to the collection middle.
[0031] Optionally, the current OBR is determined d =0 is equal to 0, the step further includes:
[0032] If OBRd >0, it means the driver has an existing trip, and the driver's current reference trip is obtained
[0033] Passengers are screened according to the paths corresponding to the existing itineraries to obtain a passenger collection.
[0034] Optionally, the step of performing path traversal on the passenger set and the driver to select a solution with the shortest driving distance according to the anchor point approximate calculation result includes:
[0035] Based on the approximate calculation results of the anchor points, a route combination of the driver and all the passengers is generated;
[0036] The route combination is traversed to obtain the shortest driving route, and the shortest driving route is used as the method of the shortest driving distance.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a privacy protection carpooling device based on the shortest path, the device comprising:
[0038] An information acquisition module, used to acquire current map information, and to perform approximate calculation of the road distance between any two points in the map information by setting up anchor points in the map information;
[0039] The location acquisition module is used to obtain the coarse-grained locations of passengers and drivers in the current map information and filter the passengers to obtain the set of passengers near the target driver;
[0040] A solution acquisition module is used to perform path traversal of the passenger set and the driver to select the solution with the shortest driving distance according to the approximate calculation result of the anchor point;
[0041] The plan sending module is used to send the shortest driving distance plan to the corresponding passengers and drivers to achieve successful carpooling.
[0042] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer device, which includes: a memory, a processor, and a shortest path-based privacy-preserving carpooling program stored in the memory and executable on the processor, wherein the shortest path-based privacy-preserving carpooling program is configured to implement the shortest path-based privacy-preserving carpooling method as described above.
[0043] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a privacy-preserving carpooling program based on the shortest path is stored. When the privacy-preserving carpooling program based on the shortest path is executed by a processor, the steps of the privacy-preserving carpooling method based on the shortest path as described above are implemented.
[0044] The present invention obtains current map information and sets up anchor points in the map information to perform approximate calculation of the road distance between any two points in the map information; obtains the coarse-grained positions of passengers and drivers in the current map information, and filters the passengers to obtain a set of passengers near a target driver; based on the approximate calculation result of the anchor points, traverses the path of the passenger set and the driver to select a plan with the shortest driving distance; sends the shortest driving distance plan to the corresponding passengers and drivers to achieve successful carpooling, and screens the coarse-grained positions of the passengers and the driver, and then traverses the path of the filtered passenger set and the driver to achieve a privacy carpooling effect based on the shortest path. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a structural diagram of a privacy protection carpooling device based on the shortest path in the hardware operating environment involved in the embodiment of the present invention;
[0046] Figure 2 is a flow chart of a first embodiment of a privacy protection carpooling method based on the shortest path of the present invention;
[0047] Figure 3 This is a workflow diagram of the execution subject in the first embodiment of the privacy protection carpooling method based on the shortest path of the present invention when working;
[0048] Figure 4 It is an algorithm for screening and filtering passengers in the first embodiment of the privacy protection carpooling method based on the shortest path of the present invention;
[0049] Figure 5 The first embodiment of the privacy protection carpooling method based on the shortest path of the present invention is a filtering algorithm for treating matching passengers when the driver already has passengers;
[0050] Figure 6 This is a passenger combination selection algorithm of the first embodiment of the privacy protection carpooling method based on the shortest path of the present invention. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] Reference Figure 1 , Figure 1 The schematic diagram of the structure of a privacy-preserving carpooling device based on the shortest path in the hardware operating environment involved in the embodiment of the present invention is shown.
[0053] like Figure 1As shown, the privacy protection carpooling device based on the shortest path may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the privacy protection carpooling device based on the shortest path, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a privacy-preserving carpooling program based on the shortest path.
[0056] exist Figure 1 In the privacy-preserving carpooling device based on the shortest path shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the privacy-preserving carpooling device based on the shortest path of the present invention can be set in the privacy-preserving carpooling device based on the shortest path, and the privacy-preserving carpooling device based on the shortest path calls the privacy-preserving carpooling program based on the shortest path stored in the memory 1005 through the processor 1001, and executes the privacy-preserving carpooling method based on the shortest path provided in an embodiment of the present invention.
[0057] The embodiment of the present invention provides a privacy protection carpooling method based on the shortest path, referring to Figure 2 , Figure 2The figure is a flow chart of a first embodiment of a privacy protection carpooling method based on the shortest path of the present invention. In this embodiment, the privacy protection carpooling method based on the shortest path includes the following steps:
[0058] Step S10: obtaining current map information, and performing approximate calculation of the road distance between any two points in the map information by setting up anchor points in the map information.
[0059] It should be noted that the map is divided into m×n areas For each region, an anchor point is set as a reference point for calculating the travel time between regions. All anchor points are set considering the number of adjacent edges (i.e. the number of connected roads) and the distance to the center of the region. We use To represent the anchor point of each area. After completing the anchor point setting, the shortest travel time between areas can be approximated using the distance between the two area anchor points:
[0060] t z(i,j)→z(x,y) =t AP(i,j)→Ap(x,y) (1≤i, x≤m; 1≤j, y≤n)
[0061] We mark any two points on the road network as s and d, and the shortest travel time between s and d can be calculated as follows:
[0062] t s→d ≈t s→AP(s) +t AP(s)→AP(d) +t AP(d)→d
[0063] Where AP(x) refers to the anchor point in the area where position x is located. All road network information and anchor point selection are open to the public, which means that anyone can access it through the Internet.
[0064] Furthermore, the step of obtaining the current map information and performing an approximate calculation of the distances between anchor points in different areas of the map information by setting up anchor points in the map information includes: obtaining the current map information and dividing the map into preset areas; setting anchor points as reference points in the areas, wherein the anchor point setting takes into account the number of its own adjacent edges and its distance to the center of the area; and performing an approximate calculation of the distances between all anchor points in the map information and storing the calculation results.
[0065] In the specific implementation, the execution subject of this embodiment is the carpooling service platform and the password server. The workflow of the execution subject of this embodiment when working is as follows: Figure 3As shown in Figure 1, the system consists of four entities: drivers, passengers, ORH servers, and crypto servers. In the following, we use RS to represent the ORH server and CS to represent the crypto server. When drivers are idle or under capacity, they can submit their current status to RS to match new passengers for carpooling. When passengers need to carpool, they will also want to initiate a carpooling request to RS. Based on the received driver status and passenger request, RS will find a passenger combination with the smallest ATT for the driver.
[0066] It is understandable that the system needs to be initialized. First, the server divides the map into multiple areas of equal size, divides the anchor points of each area, and pre-calculates the shortest driving distance between all anchor points. Then CS generates a (pk, sk) public-private key pair and broadcasts the public key pk to other parties, including RS and users.
[0067] Step S20: Obtain the coarse-grained positions of passengers and drivers in the current map information, and filter the passengers to obtain a set of passengers near the target driver.
[0068] Furthermore, before the step of obtaining the coarse-grained positions of the passengers and the driver in the current map information and filtering the passengers to obtain a set of passengers near the target driver, the method further includes: when a passenger sends a carpooling request, calculating the travel time t of the passenger to the anchor point by combining the current position information of the passenger with the map tool; s→AP(s) and t d→AP(d) , where s is the passenger's origin and d is the passenger's destination.
[0069] Furthermore, the step of obtaining the coarse-grained positions of the passengers and the driver in the current map information and filtering the passengers to obtain the set of passengers near the target driver includes: obtaining the driver's current uploaded information, the uploaded information including: the driver's current position l, the driver's load passenger number CAP d And the number of passengers the driver is carrying OBR d , the uploaded information is generated Get the passenger's current carpool request Where s is the passenger's departure point and d is the passenger's destination; determine the current OBR d = 0 is equal to 0; in the OBR d = 0, obtain the passenger set in all target radius areas By pre-calculating AP(r i z(s)) and AP(r i .z(d)) and the sequence r of the regions through which the path passes i .Zpath={r i.z(s),…,r i .z(d)}; Select M passengers with the longest Zpath length As the root passenger, construct M corresponding sets at the same time
[0070] Furthermore, the selection of M passengers with the longest Zpath lengths As the root passenger, construct M corresponding sets at the same time After the step of, it also includes: calculating the extended path area r.EZpath of the passenger, for The passengers other than the root passenger will be compared to see if their paths and directions are similar to any root passenger as follows:
[0071]
[0072]
[0073] Formula 1 refers to the passenger r j The origin and destination are in r i On the path where the trip is located, when formula 1 is satisfied, the direction of their paths is determined according to formula 2; if so, r j will be added to the collection middle.
[0074] In the specific implementation, when a passenger needs a carpooling service, the passenger first calculates the approximate travel time t to the anchor point through public navigation tools and map information. s→AP(s) and t d→AP(d) , where s and d are his departure and destination respectively. Then use the public key p k Encrypt them separately and in represents the ciphertext encrypted by the Paillier encryption algorithm. The passenger then chooses the latest acceptable time for departure and arrival t s and t d And encrypted. Finally, the passenger submits a carpooling request to RS A carpooling request may not be matched within the allowed time. When the passenger's tolerable time is exceeded, the passenger will abandon the request.
[0075] It should be noted that the driver also needs to submit his status to RS to complete the matching process. First, the driver uses his terminal device and p k Calculated And upload the status to RS: Where l is the driver’s current location and v is the number of passengers the driver can currently carry. d>0, that is, the driver is currently carrying other passengers, and he needs to submit the current pick-up plan to RS, which includes the request information of the current passengers and the current planned travel route.
[0076] In the specific implementation, Figure 4 As shown, Figure 4 RS uses the coarse-grained locations (i.e., the areas where the passengers are located) of their departure and destination to screen and filter passengers.
[0077] In a specific implementation, as shown in Figure 5, Figure 5 A filtering algorithm for matching passengers when the driver already has a passenger.
[0078] Step S30: According to the anchor point approximation calculation result, the passenger set and the driver are traversed to select the solution with the shortest driving distance.
[0079] Furthermore, the step of traversing the paths of the passenger set and the driver to select the shortest driving distance plan based on the anchor point approximation calculation result includes: generating a route combination of the driver and all passenger sets based on the anchor point approximation calculation result; traversing the route combination to obtain the shortest driving route, and using the shortest driving route as the shortest driving distance method.
[0080] Step S40: Send the shortest driving distance plan to the corresponding passengers and drivers to achieve successful carpooling.
[0081] In the specific implementation, Figure 6 The algorithm shown, RS is for each passenger combination C j Calculated And package it up RS then performs the same blinding operation as before, generating CN random integers [a1, a2, ...a CN ], and then calculate the blinded ciphertext Then CS and RS jointly execute the RCS algorithm to select the best passenger combination. Finally, RS calculates the matching result and establishes a secure communication channel between the driver and the passenger to further communicate the details of the ride.
[0082] This embodiment obtains current map information and establishes anchor points in the map information to perform an approximate calculation of the road distance between any two points in the map information; obtains the coarse-grained positions of passengers and drivers in the current map information, and filters the passengers to obtain a set of passengers near a target driver; based on the approximate calculation result of the anchor points, traverses the path of the passenger set and the driver to select a plan with the shortest driving distance; sends the shortest driving distance plan to the corresponding passengers and drivers to achieve successful carpooling, and screens the coarse-grained positions of the passengers and the driver, and then traverses the path of the filtered passenger set and the driver to achieve a privacy carpooling effect based on the shortest path.
[0083] In addition, an embodiment of the present invention further proposes a storage medium, on which a privacy-preserving carpooling program based on the shortest path is stored. When the privacy-preserving carpooling program based on the shortest path is executed by a processor, the steps of the privacy-preserving carpooling method based on the shortest path as described above are implemented.
[0084] Other embodiments or specific implementations of the privacy protection carpooling device based on the shortest path of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0085] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0086] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a semi-finished software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0088] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A privacy-preserving carpooling method based on the shortest path, characterized in that: The method comprises: Acquire current map information, and perform approximate calculation of the road distance between any two points in the map information by setting anchor points in the map information; Obtain the coarse-grained locations of passengers and drivers in the current map information, and filter the passengers to obtain a set of passengers near the target driver; According to the approximate calculation results of the anchor points, the passenger set and the driver are traversed to select the solution with the shortest driving distance; Sending the shortest driving distance plan to corresponding passengers and drivers to achieve successful carpooling; Before the step of obtaining the coarse-grained positions of the passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver, the method further includes: When a passenger sends a carpooling request, the travel time t of the passenger to the anchor point is calculated by combining the current location information of the passenger with the map tool. s →AP(s) and t d →AP(d), where s is the passenger’s origin and d is the passenger’s destination; The step of obtaining the coarse-grained positions of passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver includes: Get the driver's current uploaded information, which includes: driver's current location 1, driver's load capacity CAP d And the number of passengers the driver is carrying OBR d , the uploaded information is generated Get the passenger's current carpool request Where s is the passenger's departure point and d is the passenger's destination; Determine the current OBR d = 0 is equal to 0; In the OBR d = 0, obtain the passenger set in all target radius areas By pre-calculating AP(r i .z(s)) and AP(r i .z(d)) and the sequence r of the regions through which the path passes i .Zpath={r i .z(s),…,r i .z(d)}; Select the M passengers with the longest Zpath length As the root passenger, construct M corresponding sets at the same time The M passengers with the longest Zpath length are selected As the root passenger, construct M corresponding sets at the same time After the steps, it also includes: Calculate the extended path area r.EZpath for the passenger. The passengers other than the root passenger will be compared to see if their paths and directions are similar to any root passenger as follows: Formula 1 refers to the passenger r j The origin and destination are in r i On the path where the trip is located, when formula 1 is satisfied, use formula 2 to determine whether their path directions are consistent; If so, r j will be added to the collection middle; Determining the current OBR d = 0 is equal to 0, the step further includes: If OBR d >0, it means the driver has an existing trip, and the driver's current reference trip is obtained Passengers are screened according to the paths corresponding to the existing itineraries to obtain a passenger collection.
2. The method according to claim 1, characterized in that The step of obtaining current map information and performing approximate calculation of the road distance between any two points in the map information by setting up anchor points in the map information includes: Get the current map information and divide the map into preset areas; An anchor point is set as a reference point in the region, and the anchor point is set taking into account the number of adjacent edges and the distance from the center of the region; The distances between all anchor points in the map information are approximately calculated and the calculation results are stored.
3. The method according to claim 1, characterized in that The step of performing path traversal on the passenger set and the driver to select the shortest travel distance solution according to the anchor point approximate calculation result includes: Based on the approximate calculation results of the anchor points, a route combination of the driver and all the passengers is generated; The route combination is traversed to obtain the shortest driving route, and the shortest driving route is used as the method of the shortest driving distance.
4. A privacy-preserving carpooling device based on the shortest path, characterized in that: The device comprises: An information acquisition module, used to acquire current map information, and to perform approximate calculation of the road distance between any two points in the map information by setting up anchor points in the map information; The location acquisition module is used to obtain the coarse-grained locations of passengers and drivers in the current map information and filter the passengers to obtain the set of passengers near the target driver; Before the step of obtaining the coarse-grained positions of the passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver, the method further includes: When a passenger sends a carpooling request, the travel time t of the passenger to the anchor point is calculated by combining the current location information of the passenger with the map tool. s →AP(s) and t d →AP(d), where s is the passenger’s origin and d is the passenger’s destination; The step of obtaining the coarse-grained positions of passengers and drivers in the current map information and filtering the passengers to obtain a set of passengers near the target driver includes: Get the driver's current uploaded information, which includes: driver's current location 1, driver's load capacity CAP d And the number of passengers the driver is carrying OBR d , the uploaded information is generated Get the passenger's current carpool request Where s is the passenger's departure point and d is the passenger's destination; Determine the current OBR d = 0 is equal to 0; In the OBR d = 0, obtain the passenger set in all target radius areas By pre-calculating AP(r i .z(s)) and AP(r i .z(d)) and the sequence r of the regions through which the path passes i .Zpath={r i .z(s),…,r i .z(d)}; Select the M passengers with the longest Zpath length As the root passenger, construct M corresponding sets at the same time The M passengers with the longest Zpath length are selected As the root passenger, construct M corresponding sets at the same time After the steps, it also includes: Calculate the extended path area r.EZpath for the passenger. The passengers other than the root passenger will be compared to see if their paths and directions are similar to any root passenger as follows: Formula 1 refers to the passenger r j The origin and destination are in r i On the path where the trip is located, when formula 1 is satisfied, use formula 2 to determine whether their path directions are consistent; If so, r j will be added to the collection middle; Determining the current OBR d =0 is equal to 0, the step further includes: If OBR d >0, it means the driver has an existing trip, and the driver's current reference trip is obtained Screening passengers according to the paths corresponding to the existing itineraries to obtain a passenger collection; A solution acquisition module is used to perform path traversal of the passenger set and the driver to select the solution with the shortest driving distance according to the approximate calculation result of the anchor point; The plan sending module is used to send the shortest driving distance plan to the corresponding passengers and drivers to achieve successful carpooling.
5. A privacy-preserving carpooling device based on the shortest path, characterized in that: The device includes: a memory, a processor, and a shortest path-based privacy-preserving carpooling program stored in the memory and executable on the processor, wherein the shortest path-based privacy-preserving carpooling program is configured to implement the steps of the shortest path-based privacy-preserving carpooling method as described in any one of claims 1 to 3.
6. A storage medium, characterized in that: The storage medium stores a privacy-preserving carpooling program based on the shortest path. When the privacy-preserving carpooling program based on the shortest path is executed by the processor, the steps of the privacy-preserving carpooling method based on the shortest path as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Car-pooling pairing method and device, storage medium, and computer equipment
CN107767053A
Safety sharing travel service scheme based on alliance block chain
CN111314871A
Method and device for comparing shortest distance between car-pooling user side and driver side
CN113033915A
Vehicle ride sharing system and method using smart modules
US20180039917A1
