Story Details

  • Show HN: US Routing – Python library for fast local routing in the US

    Posted: 2025-05-07 23:51:32

    US Routing is a Python library designed for fast route calculations within the United States. It utilizes a pre-built graph of US roads, stored efficiently in memory, allowing for rapid queries without external dependencies or API calls. This offline capability makes it suitable for applications needing quick routing solutions, such as logistics or mapping tools, where network latency or cost is a concern. The project is open-source and available on GitHub.

    Summary of Comments ( 26 )
    https://news.ycombinator.com/item?id=43921653

    HN users generally praised the project for its speed, simplicity, and use of OpenStreetMap data. Several commenters appreciated the clear documentation and the straightforward Python interface. Some questioned the licensing implications of using Valhalla's routing engine, specifically whether the non-commercial clause of the Valhalla license affects the US Routing library. Others suggested alternative approaches like GraphHopper or OSRM, and discussed the tradeoffs between local routing engines and cloud-based solutions. A few users mentioned potential use cases like delivery route optimization and logistics planning. The performance comparison with other routing libraries generated considerable interest, with some expressing skepticism and asking for more detailed benchmarks.