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 https://api.openrouteservice.org/v2/directions/driving-car/geojson?api_key=

In the interactive docs (https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/post) you can see the parameters you can change to get different route results.

@adam thanks for your reply. good to know