{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":["cards","card"]},"type":"markdown"},"seo":{"title":"GraphHopper Directions API","llmstxt":{"title":"GraphHopper Directions API","description":"REST API for route optimization (vehicle routing, traveling salesman), route planning, turn-by-turn navigation, distance matrices, isochrones, geocoding, map matching, and location clustering. Built on OpenStreetMap and TomTom data. Base URL: https://graphhopper.com/api/1\n"}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"graphhopper-directions-api","__idx":0},"children":["GraphHopper Directions API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrate A-to-B route planning, turn-by-turn navigation, route optimization, isochrone calculations,"," ","location clustering and other tools into your application."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"get-started","__idx":1},"children":["Get started"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://graphhopper.com/dashboard/signup"},"children":["Sign up for GraphHopper"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.graphhopper.com/a/solutions/articles/44001976027"},"children":["Create an API key"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pass the key as the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}," query parameter in every request, for example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"curl \"https://graphhopper.com/api/1/route?point=51.131,12.414&point=48.224,3.867&profile=car&calc_points=false&key=api_key\"\n","lang":"shell"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also try all APIs without registration in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://explorer.graphhopper.com/"},"children":["API Explorer"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"apis","__idx":2},"children":["APIs"]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":240},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Route Optimization","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/route-optimization"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Solve traveling salesman and vehicle routing problems."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Routing","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/routing"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Calculate the best path between two or more points, with turn-by-turn instructions."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Matrix","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/matrices"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Calculate distances and times between many start and destination locations."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Geocoding","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/geocoding"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Find the coordinates of an address, and addresses near a coordinate."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Isochrone","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/isochrones"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Compute the area reachable from a location within a time or distance limit."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Map Matching","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/map-matching"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Snap GPS traces to the road network."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Clustering","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/clustering"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Assign customers to a given number of groups."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Custom Profiles","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/openapi/custom-profiles"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create routing profiles customized to your needs."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"guides","__idx":3},"children":["Guides"]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":240},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Common Workflows","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/guides/common-workflows"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["How the APIs combine, for example for a delivery app."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Route Optimization","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/guides/route-optimization"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fleets, workloads, objectives and constraints: the concepts behind a request."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Map Data and Routing Profiles","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/guides/map-data-and-routing-profiles"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OpenStreetMap and TomTom data, and the vehicle profiles for each."]}]},{"$$mdtype":"Tag","name":"Card","attributes":{"title":"Custom Model","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"start","variant":"filled","to":"/guides/custom-model"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Modify the routing behavior of a vehicle profile with rules in JSON."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"client-libraries","__idx":4},"children":["Client libraries"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To speed up development and make coding easier, we offer a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.npmjs.com/package/@graphhopper/directions-api-js-client"},"children":["JavaScript client"]}," and a"," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/graphhopper/graphhopper/tree/master/client-hc"},"children":["Java client"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For turn-by-turn navigation in your iOS or Android app we recommend the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/maplibre/maplibre-navigation-android/"},"children":["Maplibre Navigation SDK"]}," (Kotlin Multiplatform version), which works well with GraphHopper."]}]},"headings":[{"value":"GraphHopper Directions API","id":"graphhopper-directions-api","depth":1},{"value":"Get started","id":"get-started","depth":2},{"value":"APIs","id":"apis","depth":2},{"value":"Guides","id":"guides","depth":2},{"value":"Client libraries","id":"client-libraries","depth":2}],"frontmatter":{"sidebar":{"hide":true},"seo":{"title":"GraphHopper Directions API"}},"lastModified":"2026-11-30T03:42:33.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}