Routes geometry result as geojson

for direction post request result return routes as json however the route geometry is not in a geojson format. not sure how to use the geometry result. How can I get the route geometry as a json or geojson format?

you can just request the geojson when you make the request by using

In the interactive docs ({profile}/post) you can see the parameters you can change to get different route results.

@adam thanks for your reply. good to know