Documentation and Code

The GraphHopper Directions API comes as a RESTful web service. Integrate routing into your application without any knowledge about the complex algorithms behind it.

API Components

Routing API

The Routing API is a powerful A-to-B routing service for many vehicle types: cars, trucks, bikes, walking, and more. For all routes we return elevation, turn-by-turn instructions, geometry, total distance and total estimated time. Learn more

Route Optimization API

The Route Optimization API solves your vehicle routing problems. It allows you to consider various business specific constraints such as driver skills, heterogeneous vehicles, driver breaks, multiple time windows, etc. Learn more

Geocoding API

The Geocoding API provides address search and reverse geocoding. Learn more.

Matrix API

The Matrix API calculates distance and time matrices quickly, determining raw speed and distance information from the underlying road network.
Learn more.

Isochrone API

The Isochrone API calculates the accessible areas of a certain location for all supported vehicle profiles. It returns a list of polygons and allows you to block certain streets. Learn more.

Map Matching API

The Map Matching API provides “snap to road” functionality. It turns GPS tracks of your vehicles into actual streets. Learn more.

Official API Documentation

Get started with our routing services, and explore all features in depth!

API Explorer

This visualization tool will allow you to easily see all optimized routes, how your parcels are assigned to each vehicle, and the resulting times.


Discuss your problems with our community and explore the rich content of routing questions.

API Clients

We provide API clients for many programming languages, and have official support currently for Java and JavaScript.

Our software, used in the real world