Created
February 15, 2021 16:24
-
-
Save ThomasG77/a28c4484e7ca5d4a2d831cee8f127b6a to your computer and use it in GitHub Desktop.
This file contains 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 characters
mkdir ~/graphhopper/ | |
cd ~/graphhopper/ | |
wget https://graphhopper.com/public/releases/graphhopper-web-2.3.jar https://raw.githubusercontent.com/graphhopper/graphhopper/stable/config-example.yml https://download.geofabrik.de/north-america/us/illinois-latest.osm.pbf | |
java -Ddw.graphhopper.datareader.file=illinois-latest.osm.pbf -jar *.jar server config-example.yml | |
# Wait data to be processed to get something like below | |
# 2021-02-15 17:09:38.543 [main] INFO org.eclipse.jetty.server.Server - Started @145741ms | |
# Then, open URL below | |
curl http://localhost:8989/isochrone?profile=car&buckets=3&point=40.7208,-89.6094&result=polygon&time_limit=1800 | |
# See API doc at https://github.com/graphhopper/graphhopper/blob/stable/docs/web/api-doc.md#isochrone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment