I want to use this API to calculate the travel time between two addresses ( the origin and destination parameters that are obligatory ) passing through two successive waypoints ( an optional parameter of the Directions API ). Unfortunately, I can't pass two addresses in the same parameter "waypoints". Normally we can use more than one waypoints in our API Call.
My API Call works well to calculate travel time between origin and destination and for the path origin->waypoint1->destination but I want to calculate the travel time for the path origin->waypoint1->waypoints2->destination. And normally it should show the result with the form : [23 mins , 10 mins , 34 mins]