If you want to build GraphHopper from source look at the Developers page.
To download GraphHopper follow the installation instructions where you need a recent JRE.
See here how to enable elevation data. To see how GraphHopper is configured for production usage, see the deployment guide.
- Make sure JRE8 is installed. If not get Java here.
- Regarding step 2:
- The folder where you execute the java command should contain the following files: berlin-latest.osm.pbf, config-example.yml and
graphhopper-web-[version].jar
- The first time you execute this it'll take ~30 seconds (for Berlin), further starts will only load the graph and should be nearly instantaneous. You should see log statements but no exceptions and the last entry should be something like: Started server at HTTP 8989
- The folder where you execute the java command should contain the following files: berlin-latest.osm.pbf, config-example.yml and
- Regarding step 3:
- Depending on the size of the map you might run into
java.lang.OutOfMemoryError
. In this case you need to increase the memory settings of the JVM by starting the above command withjava -Xmx2g -Xms2g ...
(example for 2GB memory)
- Depending on the size of the map you might run into
- Or contact us