How to retrieve Optimized route?

Greetings:


I am populating a route (on a GMap) with entries from a database. I have entering the start location, stop location, and all of the waypoints working fine. I can optimize and retreive the directions OK. What I have not been able to figure out is how to retrieve the order of the Waypoints after optimization. The database needs to be updated to reflect the results in the map. Is that possible?

Phil

Hi,


You can use the Directions.Route[].Legs[].WayPointIndex property to find out the optimized waypoint index.

Thanks, I'll take a look at that.