This container run osrm-backend project. Open Source Routing Machine (OSRM) Docker Image Docker Hub with Morocco OSM preloaded.
-
Install Docker
-
Manual deploy (optional).
Pull automated build from Docker Hub:
$ docker pull ioteam/osrm-morocco
or build from GitHub:
$ docker build -t="ioteam/osrm-morocco" github.com/InteractiveObject/osrm-morocco
or you can clone & build:
$ git clone https://github.com/InteractiveObject/osrm-morocco.git
$ docker build -t="ioteam/osrm-morocco-docker" osrm-morocco-docker/
Run it:
docker run -d -p 5000:5000 ioteam/osrm-morocco:latest osrm Casablanca
Explanation:
-d
- run container in background and print container ID-p 5000:5000
- publish a container port to hostosrm
- go via entrypoint script, w/o osrm keyword - classic modelabel
- your label of OSM data
Example :
curl 'http://192.168.99.100:5000/trip/v1/driving/-7.604114303893213,33.564246042507165;-7.5032717430179545,33.55778473602738.json?steps=true&overview=simplified&geometries=geojson'
Used in : Yala covoiturage : https://yala.ma
The content of this project itself is licensed under the Creative Commons Attribution 3.0 license, and the underlying source code used to format and display that content is licensed under the MIT license.