Discrete Event Simulation Playground
This project is licensed under the Eclipse Public License 2.0.
Website: despg.dev
Was ist despg?
GraphHopper is a fast and memory-efficient routing engine released under Apache License 2.0. It can be used as a
Java library or standalone web server to calculate the distance, time, turn-by-turn instructions and many road
attributes for a route between two or more points. Beyond this "A-to-B" routing it supports "snap to road", Isochrone
calculation, mobile navigation and more. GraphHopper uses OpenStreetMap and GTFS data by default and it can
import other data sources too.
- Make sure to use at least Java 8 and higher.
- Follow the Link https://download.geofabrik.de/europe/germany-latest.osm.pbf to download the newest osm.pbf File of your Germany
- Replace the File Path inside the Class Routing.java to your Local File Path.
hopper.setOSMFile("" + "your_local_file_path.osm.pbf");
- Replace the Cache File Path inside the Class Routing.java to your Local Cache File Path.
hopper.setGraphHopperLocation("your_cache_path");
- Use at least 5Gb RAM
- Disclaimer, when first executing it may take a while until the Map is fully loaded.
-Xmx5g -Xms5g
- Follow the Link to download the GraphHopper Jar
- Create a new User Library inside your Java Project
- Add the User Library to your Java Project
- Disclaimer, when first executing it may take a while until the Map is fully loaded.
- Download the config.yml.
- Change the Parameter datareader.file to your_local_file_path.osm.pbf
graphhopper:
datareader.file: your_local_file_path.osm.pbf
- To Start the Server use the following Command inside the Terminal
java -Xmx5g -Xms5g -jar your_local_file_path_of_the_graphhopper.jar server your_local_file_path_of_the_config.yml