A highly performant, memory-safe, purely offline routing engine natively built in Rust, replacing the legacy Java backend.
- Zero-Copy Graph Serialization: Processes large
.osm.pbffiles directly into a memory-mappedrkyv.graphfile to load into RAM in less than a few milliseconds. - Parallel Parsing: Utilizes
osmpbfreaderandrayonto digest planet-scale graphs effortlessly. - Fast Routing: Implements Dijkstra / Contraction Hierarchies compatible routing logic mimicking GraphHopper 9.0's CustomModel.
- Offline PMTiles Map Rendering: Connects via Axum.
- Air-Gapped Embedded UI: Frontend built into the binary using
rust-embed.
- Ensure Rust is installed.
- Clone repository.
- Run
cargo build --release
./secure-route build --pbf data/rhode-island.osm.pbf --out rhode-island.graph./secure-route serve --graph rhode-island.graph --tiles map.pmtiles --bind 0.0.0.0:8080Open http://localhost:8080.
Run cargo test for unit logic tests.
Run cargo bench to benchmark routing algorithms to trace and avoid performance regressions using criterion.