Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 734 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 734 Bytes

setup

1. Setup OSRM data

download OSRM data from Geofabrik.

We are using the belgium map here, feel free to switch out to any version.

curl http://download.geofabrik.de/europe/belgium-latest.osm.pbf --output ./osm/map-data/map.osm.pbf

extract, partition and customize map data

docker run -t -v "${PWD}/osm:/data" ghcr.io/project-osrm/osrm-backend osrm-extract -p /data/profiles/train.lua /data/map-data/map.osm.pbf
docker run -t -v "${PWD}/osm:/data" ghcr.io/project-osrm/osrm-backend osrm-partition /data/map-data/map.osm.pbf
docker run -t -v "${PWD}/osm:/data" ghcr.io/project-osrm/osrm-backend osrm-customize /data/map-data/map.osm.pbf

2. Start application

docker compose up