Display Route Optimization API webservice response in Leaflet Map

Hello together,

at first i followed the tutorials for the traveling salesman problem. To solve the problem i decided to use the webservice of Graphhopper. The request and the reponse of the webservice are vaild and successfull. Now i want to display the response/result in a Leaflet Map.

On the Leaflet homepage i followed the tutorial to add a geoJson to the map. Poorly i had no success to get it working.

However what is the best habit to pass the response data to the Leaflet map and display the Result?

You can use our JavaScript demo as a base: