Running OSRM Backend with alternate engines: fossgis_osrm_car and graphhopper_car

Is there a way to use different engines when running osrm backend locally?

On the public website I can do this with:
https://www.openstreetmap.org/directions?engine=graphhopper_car
https://www.openstreetmap.org/directions?engine=fossgis_osrm_car

My current build process is below. Is there a way to change it to use the graphhopper engine?

sudo docker run -t -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-extract -p /opt/car.lua /data/merged.osm.pbf

sudo docker run -t -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-partition /data/merged.osm.pbf

sudo docker run -t -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-customize /data/merged.osm.pbf

sudo docker run -t -i -p 5000:5000 -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-routed --algorithm mld /data/merged.osm.pbf

Thanks

Graphhopper is a completely different project. You can’t run Graphhopper on OSRM. It would be like running Doom on Super Mario Bros.

2 Likes

Got it. Thanks