Developer(s) | GraphHopper community |
---|---|
Stable release | 9.1
/ May 5, 2024 |
Repository | |
Written in | Java |
Operating system | Cross-platform |
Type | Search, Graph and GPS navigation software |
License | Apache License 2.0 |
Website | graphhopper |
GraphHopper is an open-source routing library and server written in Java and provides a routing API over HTTP.[1] It runs on the server, desktop, Android, iOS or Raspberry Pi.[2][3] By default OpenStreetMap data for the road network and elevation data from the Shuttle Radar Topography Mission is used. The front-end is open-source too and called GraphHopper Maps.[4]
GraphHopper can be configured to use different algorithms such as Dijkstra, A* and its bidirectional versions. To make routing fast enough for long paths (continental size) and avoid heuristical approaches GraphHopper uses contraction hierarchies by default. In the Java Magazine from Oracle, the author, Peter Karich, describes the techniques necessary to make the system memory efficient and fast.[5] Furthermore, GraphHopper is built on a large test suite including unit, integration and load tests.[6]
The Apache License allows everyone to customize and integrate GraphHopper in free or commercial products, and together with the query speed and OpenStreetMap data this makes GraphHopper a possible alternative to existing routing services and GPS navigation software e.g. using the Maplibre Navigation SDK.[7]
Besides point-to-point routing for different vehicles GraphHopper can be used to calculate distance matrices which are then used as an input for vehicle routing problems.[8] Other use cases are: