Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Created February 15, 2021 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/a28c4484e7ca5d4a2d831cee8f127b6a to your computer and use it in GitHub Desktop.
Save ThomasG77/a28c4484e7ca5d4a2d831cee8f127b6a to your computer and use it in GitHub Desktop.
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