Public | Automated Build

Last pushed: 4 months ago
Short Description
Open Source Routing Machine Docker image
Full Description

OSRM Docker




The Open Source Routing Machine is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.

docker run -d -p 5000:5000 stepankuzmin/osrm <url> <profile>

Where <url> is osm.pbf url and <profile> is one of the OSRM profiles (foot is default) or one of above:

  • stepless - default foot profile excluding steps.

Features

  • Custom profiles
  • LuaSQL with PostgreSQL support

Usage:

This will create docker container with mapzen extract processed using default car profile

docker run -d -p 5000:5000 stepankuzmin/osrm "https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf" car

You can also mount a host directory as a data volume:

docker run -d \
  -p 5000:5000 \
  -v /srv/osrm/data:/data \
  -v /srv/osrm/extracts:/extracts \
  -v /srv/osrm/profiles:/profiles \
  --name osrm \
  stepankuzmin/osrm

This command mounts the host directory, /srv/osrm/data, into the container at /data, /srv/osrm/extracts into /extracts and /srv/osrm/profiles into /profiles.

You can run OSRM with custom profiles with:

docker create \
  -p 5000:5000 \
  --name osrm \
  stepankuzmin/osrm \
  "https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf" sidewalks

docker cp sidewalks.lua osrm:/profiles/
docker start osrm

Documentation

Running a query on your local server:

curl http://127.0.0.1:5000/route/v1/driving/13.388860,52.517037;13.385983,52.496891?steps=true&alternatives=true
Docker Pull Command
Owner
stepankuzmin
Source Repository

Comments (0)