Skip to content
Snippets Groups Projects
Riccardo Boero's avatar
Riccardo Boero authored
6471f3e7
History

FACT OSRM Europe

Open Source Routing Machine (OSRM) with Europe Open Street Map (OSM) data.


GitLab License DOI Data License


Use

  1. Through the command line:
docker pull registry.git.nilu.no/fact/data/fact_road_eu:latest
docker run -t -i --name fact_road_eu -p 5001:5001 -d registry.git.nilu.no/fact/data/fact_road_eu:latest
  1. Through a docker-compose file:
version: '3.8'

services:
  fact_road_eu:
    image: registry.git.nilu.no/fact/data/fact_road_eu:latest  
    container_name: fact_road_eu    
    ports:    
      - "5001:5001"    
    restart: unless-stopped

which could be executed with docker-compose up fact_road_eu -d.


Specifications

OSRM API: https://project-osrm.org/docs/v5.24.0/api/#.

Example:

curl 'http://127.0.0.1:5001/route/v1/driving/7.623329386622931,58.69773711014142;8.718283472951525,59.49305932590341?overview=false'


Notes

While the container may start on any machine, the server within the container does not succesfully start without enough peak memory availability (e.g., with a total of 24 GB). In case please change machine and/or swap mem size.

osrm/osrm-backend official images are not up-to-date (>2 years old) because of maturity of the routing machine. However, the base docker images are obsolete and hence the need to develop a new one with the most up-to-date backend server and base image.

Install osrm from https://github.com/Project-OSRM/osrm-backend

Data is from http://download.geofabrik.de/.


Author

Riccardo Boero - ribo@nilu.no

License

All the code and the resulting docker images in this project are subject to:

The data is licensed under:

  • the Open Data Commons Open Database License (ODbL) v1.0.

Citation

Part of the Fine scAle eConomic daTa - FACT project: