GeoPrune: Efficiently Finding Shareable Vehicles Based on Geometric Properties

Yixin Xu, Jianzhong Qi, Renata Borovica-Gajic, Lars KulikarXiv 2019

Abstract

In on-demand ride-sharing systems, matching incoming requests to vehicles in real-time is a significant computational challenge. This paper presents GeoPrune, an algorithm that utilizes geometric properties—specifically circles and ellipses—to efficiently prune the search space of candidate vehicles. By leveraging the triangle inequality to establish spatial lower bounds for time constraints, GeoPrune reduces the number of candidate vehicles by an order of magnitude and significantly decreases index update costs compared to existing state-of-the-art methods.

1. Introduction

The rapid growth of ride-sharing services necessitates efficient matching of thousands of trip requests to moving vehicles every second. This process typically involves two stages: pruning and selection. Pruning filters out vehicles that cannot meet a passenger's time constraints, while selection identifies the optimal vehicle from the remaining candidates. The pruning stage is often the primary bottleneck; inefficient pruning leads to either an overwhelming number of candidates for the selection stage or excessive computational overhead for the system.

Insertion of a new request $r_n$ into an existing vehicle schedule.

2. Methodology

GeoPrune addresses the pruning bottleneck by converting temporal constraints into spatial boundaries. The core of the algorithm relies on two geometric shapes derived from the triangle inequality:

  • The Waiting Circle: To satisfy a maximum pickup time constraint, a vehicle must be located within a specific Euclidean distance from the request's origin. This defines a circle centered at the pickup point.
  • The Detour Ellipse: For a vehicle to incorporate a new stop $P$ between two existing points $A$ and $B$ without violating time limits, $P$ must lie within an ellipse where $A$ and $B$ are the foci. If a point is outside this ellipse, the detour is mathematically guaranteed to exceed the time limit, regardless of the road network path.
Geometric pruning using the waiting circle and detour ellipse.

These geometric shapes are indexed using R-trees, allowing for rapid spatial queries. This approach avoids the need for expensive shortest-path calculations on the road network during the initial filtering phase, providing a safe, "no-false-negative" pruning mechanism.

3. Evaluation and Results

The performance of GeoPrune was evaluated using large-scale taxi datasets from New York City (NYC) and Chengdu (CD), involving hundreds of thousands of requests and up to 131,000 simulated vehicles.

Key findings include:

  • Candidate Reduction: GeoPrune effectively narrowed the candidate pool by an order of magnitude (e.g., returning ~5 candidates where others returned 50-170).
  • Update Efficiency: The cost of updating the spatial index as vehicles move was found to be two to three orders of magnitude lower than current state-of-the-art techniques.
  • Scalability: The algorithm demonstrated stable performance as the number of vehicles and requests increased, making it suitable for large-scale urban environments.

4. Discussion and Limitations

While GeoPrune is highly efficient, its effectiveness depends on the assumption of a maximum vehicle speed ($v_{max}$) to calculate the ellipses. A very high $v_{max}$ ensures no false negatives but may reduce pruning effectiveness in heavy traffic. Additionally, while the geometric filter is fast, the final selection stage still requires road network distance calculations to determine the truly optimal match.

5. Conclusion

GeoPrune offers a highly efficient, geometry-based solution for the vehicle pruning problem in ride-sharing. By using Euclidean distances as safe lower bounds for network distances, it provides a filtering mechanism that is both fast and scalable. Future work may explore the application of these geometric principles to other spatial crowdsourcing domains such as food delivery and logistics.

Summary updated

BibTeX
@misc{xu2019geoprune,
  author = {Yixin Xu and Jianzhong Qi and Renata Borovica-Gajic and Lars Kulik},
  title = {{GeoPrune: Efficiently Finding Shareable Vehicles Based on Geometric Properties}},
  year = {2019},
  eprint = {1907.01831},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.01831},
}
Figure