|easbar 8637ba0082||1 day ago|
|.github||1 month ago|
|api||1 week ago|
|benchmark||3 months ago|
|client-hc||1 month ago|
|core||1 day ago|
|docs||1 week ago|
|example||1 month ago|
|hmm-lib||3 weeks ago|
|map-matching||3 weeks ago|
|navigation||1 month ago|
|reader-gtfs||1 month ago|
|tools||1 month ago|
|web||5 days ago|
|web-api||1 month ago|
|web-bundle||3 days ago|
|.gitattributes||3 years ago|
|.gitignore||1 month ago|
|.gitlab-ci.yml||9 months ago|
|.travis.yml||2 months ago|
|CHANGELOG.md||5 days ago|
|CONTRIBUTING.md||2 months ago|
|CONTRIBUTORS.md||1 month ago|
|LICENSE.txt||8 years ago|
|NOTICE.md||1 month ago|
|README.md||3 days ago|
|appveyor.yml||1 year ago|
|config-example.yml||1 month ago|
|graphhopper.sh||4 months ago|
|pom.xml||1 month ago|
GraphHopper is a fast and memory efficient Java routing engine, released under Apache License 2.0. By default it uses OpenStreetMap and GTFS data, but it can import other data sources.
All questions go to our forum where we also have subsections specially for developers, mobile usage, and our map matching component. You can also search Stackoverflow for answers. Please do not use our issue section for questions :)
To get started you can try GraphHopper Maps, read through our documentation and install the GraphHopper Web Service locally.
wget https://graphhopper.com/public/releases/graphhopper-web-3.0.jar https://raw.githubusercontent.com/graphhopper/graphhopper/3.x/config-example.yml http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf java -Ddw.graphhopper.datareader.file=berlin-latest.osm.pbf -jar *.jar server config-example.yml
After a while you see a log message with 'Server - Started', then go to http://localhost:8989/ and you'll see a map of Berlin. You should be able to right click on the map to create a route.
For more details about the installation, see here.
To see the road routing feature of GraphHopper in action please go to GraphHopper Maps.
GraphHopper Maps uses the commercial offering the GraphHopper Directions API under the hood, which provides the Routing API (based on this routing engine), a Route Optimization API based on jsprit, a fast Matrix API and an address search based on photon. The photon project is also supported by the GraphHopper GmbH. Additionally to the GraphHopper Directions API, map tiles from various providers are used where the default is Omniscale. All this is available for free, via encrypted connections and from German servers for a nice and private route planning experience!
Use isochrones to calculate and visualize the reachable area for a certain travel mode
To support these high precision reachability approaches there is the /spt endpoint (shortest path tree). See #1577
There is the map matching subproject to snap GPX traces to the road.
GraphHopper supports several routing algorithms, such as
* and its bidirectional variants.
Furthermore, it allows you to use
Contraction Hierarchies (CH)
very easily. We call this speed mode; without this CH preparation, we call it flexible mode.
The speed mode comes with very fast and lightweight (less RAM) responses and it does not use heuristics. The downsides are that the speed mode allows only pre-defined vehicle profiles (multiple possible in GraphHopper) and requires a time consuming and resource-intensive preparation.
Then there is the hybrid mode which also requires preparation time and memory, but it is much more flexible regarding changing properties per request or e.g. integrating traffic data. Furthermore, this hybrid mode is slower than the speed mode, but it is an order of magnitude faster than the flexible mode and uses less RAM for one request.
If the preparations exist you can switch between all modes at request time.
Read more about the technical details here.
We chose the Apache License to make it easy for you to embed GraphHopper in your products, even closed source. We suggest that you contribute back your changes, as GraphHopper evolves fast, but of course this is not necessary.
OpenStreetMap is directly supported by GraphHopper. Without the amazing data from OpenStreetMap, GraphHopper wouldn't be possible at all. Other map data will need a custom import procedure, see e.g. Ordnance Survey, Shapefile like ESRI or Navteq.
GraphHopper is written in Java and officially runs on Linux, Mac OS X and Windows.
Embed GraphHopper with OpenStreetMap support into your Java application via the following snippet:
<dependency> <groupId>com.graphhopper</groupId> <artifactId>graphhopper-core</artifactId> <version>[LATEST-VERSION]</version> </dependency>
See our example application to get started fast.
We've built the GraphHopper class which makes simple things easy and complex things like multi-modal routing possible. Still, you can use the low level API of GraphHopper and you'll see that it was created to allow fast and memory efficient use of the underlying data structures and algorithms.
With the web module, we provide code to query GraphHopper over HTTP and decrease bandwidth usage as much as possible. For that we use an efficient polyline encoding, the Ramer–Douglas–Peucker algorithm, and a simple GZIP servlet filter.
GraphHopper also runs on the Desktop in a Java application without internet access. For debugging purposes GraphHopper can produce vector tiles, i.e. a visualization of the road network in the browser (see #1572). Also a more low level Swing-based UI is provided via MiniGraphUI in the tools module, see some visualizations done with it here. A fast and production ready map visualization for the Desktop can be implemented via mapsforge or mapsforge vtm.
Here is a list of the more detailed features: