https://github.com/stepankuzmin/osrm-docker
Open Source Routing Machine (OSRM) Docker Image 🐳
https://github.com/stepankuzmin/osrm-docker
docker osrm
Last synced: 10 months ago
JSON representation
Open Source Routing Machine (OSRM) Docker Image 🐳
- Host: GitHub
- URL: https://github.com/stepankuzmin/osrm-docker
- Owner: stepankuzmin
- Created: 2016-09-27T14:01:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T13:10:25.000Z (over 8 years ago)
- Last Synced: 2025-01-31T23:27:41.270Z (12 months ago)
- Topics: docker, osrm
- Language: Lua
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OSRM Docker
[](https://travis-ci.org/stepankuzmin/osrm-docker)
[]()
[]()
[]()
[The Open Source Routing Machine](https://github.com/Project-OSRM/osrm-backend) is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.
```shell
docker run -d -p 5000:5000 stepankuzmin/osrm
```
Where `` is osm.pbf url and `` is one of the [OSRM profiles](https://github.com/Project-OSRM/osrm-backend/tree/master/profiles) (`foot` is default) or one of above:
* stepless - default foot profile excluding `steps`.
## Features
* Custom profiles
* [LuaSQL](https://keplerproject.github.io/luasql/) with PostgreSQL support
## Usage:
This will create docker container with mapzen extract processed using default car profile
```shell
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:
```shell
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:
```shell
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
- [osrm-routed HTTP API documentation](https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md)
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
```