Skip to content
Stepan Kuzmin edited this page Jan 15, 2017 · 8 revisions

First, you need to build OSRM to process OSM extract into OSRM format https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM

wget https://github.com/Project-OSRM/osrm-backend/archive/v5.5.3.tar.gz
tar -xvzf v5.5.3.tar.gz
cd osrm-backend-5.5.3
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .

After building OSRM you should download OSM PBF extract for city you interested in https://mapzen.com/data/metro-extracts/

wget https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf

Then, you need to process extract with OSRM https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM

ln -s ../profiles/foot.lua profile.lua
./osrm-extract -p profile.lua moscow_russia.osm.pbf
./osrm-contract moscow_russia.osrm

Be sure you are using node v4. I recommend using node version manager https://github.com/creationix/nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
source ~/.nvm/nvm.sh
nvm i 4
nvm use 4

Now you ready to setup Galton https://github.com/urbica/galton

npm i -g [email protected]
galton moscow_russia.osrm
Clone this wiki locally