Decode encoded points in path

Hi there. I’m trying to find decoder for encoded points.

You’ll need a special handling for the decoding of this string on the client-side. We provide open source code code in Java and JavaScript, see the clients section

https://graphhopper.com/api/1/docs/routing/

The official clients do this for you:


If you need the source to implement this for other languages like python - have a look e.g. here: https://github.com/graphhopper/graphhopper/blob/master/web-api/src/main/java/com/graphhopper/http/WebHelper.java#L52
or here: https://github.com/graphhopper/directions-api-js-client/blob/master/src/GHUtil.js#L27

Thanks for quick response.

We’re building an app containing navigator feature and planning to use your routing API.

Btw: also have a look into the recently developed SDK that’s a big helper at least for developing navigation applications on Android https://github.com/graphhopper/graphhopper-navigation-android

Thanks, I’ll definitely check it out.

Did not find the answer here, adding this to the API/GET-request solved it for me:

 `&points_encoded=false`

then all the coordinates get back from the server without encoding.
https://docs.graphhopper.com/#operation/getRoute

1 Like