Map matching queries on realistic input graphs under the Fréchet distance
Joachim Gudmundsson, Martin P. Seybold, Sampson Wong
TL;DR
This work addresses map matching under the Fréchet distance in two regimes. It proves a conditional hardness result for geometric planar graphs, showing that, under SETH, no polynomial-time preprocessing can yield truly subquadratic query time for map matching. It then delivers a positive, near-linear-space data structure for realistic input graphs (specifically $c$-packed graphs) that computes a $(1+\varepsilon)$-approximate map-matching path in polylogarithmic time with respect to the graph size, using a three-stage pipeline built from straightest-path queries, segment queries, and full map-matching queries. The results collectively reconcile worst-case hardness with practical performance on realistic road networks and provide a framework (SSPD-based, low-density, and hierarchical clustering techniques) that could guide future geometric-query data-structure work. The practical impact lies in enabling efficient, approximate trajectory-pathing on large networks while clarifying fundamental limits in worst-case graph models.
Abstract
Map matching is a common preprocessing step for analysing vehicle trajectories. In the theory community, the most popular approach for map matching is to compute a path on the road network that is the most spatially similar to the trajectory, where spatial similarity is measured using the Fréchet distance. A shortcoming of existing map matching algorithms under the Fréchet distance is that every time a trajectory is matched, the entire road network needs to be reprocessed from scratch. An open problem is whether one can preprocess the road network into a data structure, so that map matching queries can be answered in sublinear time. In this paper, we investigate map matching queries under the Fréchet distance. We provide a negative result for geometric planar graphs. We show that, unless SETH fails, there is no data structure that can be constructed in polynomial time that answers map matching queries in $O((pq)^{1-δ})$ query time for any $δ> 0$, where $p$ and $q$ are the complexities of the geometric planar graph and the query trajectory, respectively. We provide a positive result for realistic input graphs, which we regard as the main result of this paper. We show that for $c$-packed graphs, one can construct a data structure of $\tilde O(cp)$ size that can answer $(1+\varepsilon)$-approximate map matching queries in $\tilde O(c^4 q \log^4 p)$ time, where $\tilde O(\cdot)$ hides lower-order factors and dependence on $\varepsilon$.
