Home

Awesome

OSRM local server

Establecer servidor

docker build -t osmium-tool -f Dockerfile.osmium-tool .
docker pull osrm/osrm-backend:v5.16.4

Procesamiento de datos

mkdir data/
wget https://www.dropbox.com/s/ecefm53ykenwd3n/tr.osm  -O data/tr.osm
docker run -it -v $(pwd)/data:/data osrm/osrm-backend:v5.16.4 osrm-extract -p /opt/car.lua /data/tr.osm
docker run -it -v $(pwd)/data:/data osrm/osrm-backend:v5.16.4 osrm-contract /data/tr.osrm

Requerimientos

export OSRM_GRAPH=./data/tr.osrm

Ejecutar

npm start

OSRM algorithm

https://en.wikipedia.org/wiki/Contraction_hierarchies

GIF

ezgif-2-668993f909