Skip to content

Standalone problem instance

Julien Coupey edited this page Nov 2, 2021 · 4 revisions

Create a problem instance that can be solved without accessing a routing server

Being able to solve a problem without an OSRM/Openrouteservice instance at hand can be convenient in several situations.

  • Solve the problem without firing the same matrix request to the routing engine on each run
  • Create a "standalone" problem whose costs are set once and for all, and won't change with OSM data updates or across routing versions and profiles
  • Share a problem instance with someone that has no access to the underlying routing stack

We provide python scripts for both OSRM and Openrouteservice that do exactly this, by computing the cost matrices once per required profile and adding it under the matrices key in a new input file.

git clone https://github.com/VROOM-Project/vroom-scripts.git
python3 ./vroom-scripts/src/add_osrm_matrix.py my_problem.json
python3 ./vroom-scripts/src/add_ors_matrix.py my_problem.json
Clone this wiki locally