Your code fires off several directions requests in a burst. Some time later, some results mat come back in any random order. A result may arrive while your code is in the middle of processing another; they are all indistinguishable so the processing may go screwy.
There is a speed limit to directions requests. > Update - The functionality above was working correctly last April. Pure fluke I suppose, the code as given will never work reliably. You need to process one directions call at a time, taking requests off of a stack. Check the response, if it was rejected try adding a delay time. When stack empty, do the final process. The principle is outlined in this v2 example http://econym.org.uk/gmap/geomulti.htm -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
