How to create simple straight line between two point in graphhooper? currently they create path using road in map.
What do you want to achieve with the straight line and why do you want to do it with GraphHopper? If you just want to calculate the distance of a "straight line" between two coordinates, just use the Harversine formula to approximate it.
The main achieve is to see elevation data of the line between two points
We would need to expose the elevation via a separate API which could be nice but is not (yet) on our road map.