Shortest-path routing on real road networks, using OpenStreetMap data. Click a source and a target on the map — the route gets computed and drawn instantly.
- CMake 3.16+
- A C++20 compiler (MSVC, GCC, Clang)
- A browser
Linux / Mac:
cd backend
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build buildWindows:
cd backend
cmake -B build
cmake --build build --config ReleasePass the path to an FMI graph file as the only argument:
Linux / Mac:
./build/routeplanner ./graphs/germany.fmiWindows:
.\build\Release\routeplanner.exe ..\graphs\germany.fmiWith extra ordner:
.\build\Release\routeplanner.exe ..\graphs\germany.fmi\germany.fmiGraph files in FMI format can be downloaded from https://fmi.uni-stuttgart.de/alg/research/stuff/
Once the server is running, open your browser at:
http://localhost:8080
- Click anywhere on the map to set the source (green marker).
- Click again to set the target (red marker) — the route is computed automatically.
- Click Reset to start over.
If you click outside the loaded graph region, an error message will tell you the valid bounds.