How to pass the route result to Open Layer OSM map javascript

I have a script generating the osm map showing below and a JavaScript api to get directions but I need help on how to get the results from openrouteservice directions to display onto my map.

.Any help would be appreciated.

Hi @Kiiza_Justus

Sorry but this is not an ORS issue. This is basic JavaScript and (Geo)JSON handling as well as using OpenLayers.
There are more than enough examples for each of these topics available on the web.

It might be easier if you directly use the geojson endpoint or use our openrouteservice-js

Good Luck