HeadlinesBriefing favicon HeadlinesBriefing.com

OsmAnd's 100x Faster Offline Navigation Breakthrough

Hacker News •
×

OsmAnd has unveiled a revolutionary Highway Hierarchy routing engine that delivers a 100x speed boost for offline navigation. The open-source mapping app, long known for its powerful offline capabilities, faced growing performance challenges as detailed maps and complex routing demands pushed its traditional A* algorithm to its limits.

Traditional routing methods struggled with OsmAnd's flexibility requirements. The A* algorithm could take 10-20 seconds for 200-300km routes, and even advanced solutions like Contraction Hierarchies proved impractical due to storage demands and limited profile support. A CH car profile for Europe alone requires tens of gigabytes, while OsmAnd aimed to keep all profiles under 20GB for the entire planet.

The breakthrough came through a custom two-level routing system using intelligent "area clusters" and border points. By employing a Ford-Fulkerson algorithm to identify natural bottlenecks, OsmAnd reduced the routing problem from millions of road segments to just thousands of shortcuts. This approach increased map data by only 0.5% per profile while maintaining support for over 1024 routing parameter combinations and near real-time map updates.