The GDirections class of Google maps API helped me in \"displaying\" the route between two supplied coordinates.
Now I want a list of ALL
The overview_path doc says it returns
An array of LatLngs representing the entire course of this route. The path is simplified in order to make it suitable in contexts where a small number of vertices is required.
I don't interpret that to mean the same thing as returning an array of all the waypoints on a route. And in your question, it's not clear to me whether you want waypoints or coordinates (lat long) or both. If I were you, I'd also consider legs
, which returns
an array of DirectionsLegs, each of which contains information about the steps of which it is composed. There will be one leg for each waypoint or destination specified.
Within DirectionsLeg
, I think you should also take a look at steps
and via_waypoints
.