How to add two adresses in the same parameter of the Directions API

Database & APIs

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]

What have you tried so far?

I tried to define waypoints parameter as a list and enter the two addresses like [address1 , address2], but it just takes the second address without using the first one. I also tried to define two different parameters like "waypoints1" and "waypoints2" but it doesn't recognise the "waypoints" parameter and calculate only the "origin" to "destination" travel time.

Thanks a lot for your help.

Did you check FlutterFlow's Documentation for this topic?
Yes
2