Skip to content

Commit

Permalink
documentation on openrouteservice setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Nov 12, 2019
1 parent 8ff2ad5 commit 35cae05
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ pip install -r requirements.txt
* Make sure you have openrouteservice running under localhost.
* Start the backend service: `cd obst/tsopt/ && python3 optimize.py`. It should load the pre-computed dataset graphs.
* Open the front-end file in `obst/ui/index.html`

* To disable openrouteservice rate limiting, apply `./openrouteservice_config.patch` to the sample config of the openrouteservice docker container.
29 changes: 29 additions & 0 deletions openrouteservice_config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/docker/conf/app.config.sample b/docker/conf/app.config.sample
index dd83904b..423ca901 100644
--- a/docker/conf/app.config.sample
+++ b/docker/conf/app.config.sample
@@ -9,8 +9,9 @@
"services":{
"matrix":{
"enabled":true,
- "maximum_locations":200,
- "maximum_visited_nodes":100000,
+ "maximum_locations":20000,
+ "maximum_visited_nodes":1000000,
+ "maximum_routes": 200000,
"allow_resolve_locations":true,
"attribution":"openrouteservice.org, OpenStreetMap contributors"
},
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index a3d9d1df..b4b6909c 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -8,7 +8,7 @@ services:
context: ../
args:
APP_CONFIG: ./docker/conf/app.config.sample
- OSM_FILE: ./docker/data/heidelberg.osm.gz
+ OSM_FILE: ./docker/data/sachsen-latest.osm.pbf
volumes:
- ./graphs:/ors-core/data/graphs
- ./elevation_cache:/ors-core/data/elevation_cache

0 comments on commit 35cae05

Please sign in to comment.