BASE

GraphHopper

GraphHopper

Geospatial app component · Free

A Java routing engine based on OpenStreetMap: a library or HTTP server for distances, directions, and travel profiles; the cloud API is separate.

Resource illustration: GraphHopper

Open resource ↗

What you can use for free

The open source component used locally or self-hosted for the stated workflow, within its license terms.

Paid features and costs

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.

Access and limitations

Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.

Use cases

  • Add route calculation to an app
  • Build a route with the local engine and compare it against control points

Example workflow

A possible workflow; this is not a report of hands-on testing.

Add route calculation to an app

Before you start

  • Regional OSM data, a travel profile, and coordinate pairs.
  • A test project and completion criteria for the task: Add route calculation to an app.

Steps

  1. Set up GraphHopper to test: Regional OSM data, a travel profile, and coordinate pairs.
  2. Build a route with the local engine and compare it against control points.
  3. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

Check your result

  • The graph matches the region and profile; OSM data and cloud API terms differ.
  • Check the result against a reference example; separately confirm the terms of any assets and external services used.

Choosing GraphHopper

Add route calculation to an app

Choose this when

  • Add route calculation to an app
  • Build a route with the local engine and compare it against control points

Requirements

  • The local web-service scenario requires a JVM, configuration file, and map data; check version requirements against the chosen branch.

Things to consider

  • Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
  • Terms of use: Apache-2.0
  • Mobile offline routing is no longer officially supported. CH preparation requires time/resources and limits speed mode to predefined profiles.

Frequently asked questions

What can you use for free in GraphHopper?

The openly available portion, used locally or self-hosted for the stated use case within its license terms.

What additional costs might arise with GraphHopper?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.

What terms of use matter for GraphHopper?

Apache-2.0

How do you get started with GraphHopper?

Set up GraphHopper to test: Regional OSM data, a travel profile, and coordinate pairs. Build a route with the local engine and compare it against control points. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

How do the routing engine and Directions API differ?

The routing engine works as a Java library or standalone web server with OSM/GTFS data, routes, isochrones, and map matching for GPX traces. Directions API is a separate commercial offering. Speed mode uses precomputed CH and predefined vehicle profiles; hybrid/flexible modes have different conditions for changing parameters.

License

Apache-2.0

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • GraphHopper
  • Geospatial application component

Sources

Other resources