forked from organicmaps/organicmaps
[generator] Script to create routes from mwm and osrm
This commit is contained in:
parent
fefc604039
commit
ae23bcd9e0
1 changed files with 15 additions and 0 deletions
15
tools/unix/routes_from_mwm_and_osrm.sh
Executable file
15
tools/unix/routes_from_mwm_and_osrm.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e -u -x
|
||||
|
||||
if [[ `hostname` == "Scout" ]]; then
|
||||
DATA_DIR=/media/ssd/osm/omim/data
|
||||
OSRM_DIR=~/toolchain/v2/data/planet-split
|
||||
GENERATOR_TOOL=/media/ssd/osm/omim-build-release/out/release/generator_tool
|
||||
else
|
||||
DATA_DIR=~/omim/data
|
||||
OSRM_DIR=~/planet-split
|
||||
GENERATOR_TOOL=~/omim-build-release/out/release/generator_tool
|
||||
fi
|
||||
|
||||
ls "$OSRM_DIR"/*.osrm | parallel -t -v "V=`basename -s .osrm {}`; $GENERATOR_TOOL --osrm_file_name={} --data_path=$DATA_DIR --output={/.}"
|
Loading…
Add table
Reference in a new issue