hey i use javascript and i am trying to display alternative routes but i get 400 error.
my code:
orsDirections.calculate({
coordinates: [[21.78896,40.30069], [22.933332, 39.366669]],
profile: "driving-car",
alternative_routes:{"target_count":3,"weight_factor":2,"share_factor":2},
extra_info: ["waytype", "steepness"],
options: {avoid_features :["highways"]},
format: "geojson",
api_version: 'v2',
})
am i missing something?