Skip to content

Instantly share code, notes, and snippets.

@bluetoothfx
Created April 16, 2020 16:21
Show Gist options
  • Save bluetoothfx/73860e4cad8c0c0fa008ca9d6f2140aa to your computer and use it in GitHub Desktop.
Save bluetoothfx/73860e4cad8c0c0fa008ca9d6f2140aa to your computer and use it in GitHub Desktop.
# Go to a new directory
# Clone Graphhopper Routing Machine Open Source Project Into directory
# Give docker build command
# Run docker image from build
# By default it will download the Germany Part Routing data
# To check the data carefully look into mapped volume
P.S: When I was writing I didn't find any docker compose file in their repo.
Though it was written.
-------C O D E------------
> git clone https://github.com/graphhopper/graphhopper.git
> cd graphhopper
> docker build -t graphhopper:master .
> docker run -d --name graphhopper -v <path_data_directory>/data:/data -p 8989:8989 graphhopper:master
## To run: http://yourip:8989/maps/
## To check navigation data: curl "http://yourip:8989/route?point=52.566960199358874,13.33345413208008&point=52.51736993382123,13.38890075683594&vehicle=car&locale=de&calc_points=false"
# reference
https://github.com/graphhopper/graphhopper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment