Created
April 16, 2020 16:21
-
-
Save bluetoothfx/73860e4cad8c0c0fa008ca9d6f2140aa to your computer and use it in GitHub Desktop.
Revisions
-
bluetoothfx created this gist
Apr 16, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # 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