-
Notifications
You must be signed in to change notification settings - Fork 36
How To
Stepan Kuzmin edited this page Aug 22, 2016
·
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.3.2.tar.gz
tar -xvzf v5.3.2.tar.gz
cd osrm-backend-5.3.2
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 galton@1.3.2
galton moscow_russia.osm.pbf