curl -X POST
‘https://api.openrouteservice.org/v2/directions/foot-walking/geojson’
-H ‘Content-Type: application/json; charset=utf-8’
-H ‘Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’
-H ‘Authorization: API KEY’
-d ‘{“coordinates”:[[8.681495,49.41461]],“alternative_routes”:{“share_factor”:0.8,“target_count”:2,“weight_factor”:2},“options”:{“round_trip”:{“length”:2000,“points”:5,“seed”:1}}}’
This request produces the image above