How to modify API responses?

Where should I look to modify the json response for the /route API? I really only need the list of coordinates for my use case and would like to minimize the unneeded info.

I tried to trace the code to Response Path Deserializer, but commenting out the “if (instructions)” block doesn’t seem to change anything

The documentation of the /route endpoint can be found here, but note that this is the documentation for the hosted GraphHopper Directions API. This should be quite similar, but sometimes not identical to the /route endpoint of the open source server, which is documented here

To turn off the instructions you can set instructions=false.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.