Hi all

Link: http://www.isi.edu/~shubhamg/google_distance.htm

I am trying to run multiple gDirections requests with an array of
coordinates. It gives me result for only one of the coordinates and
returns null for all the other. I display the results (distance from
gDirections) as text on the webpage. If you check the error console
for the webpage provided, it shows me 2 null results.

It is probably because of the bad synchronization of such requests.
How do I prevent the second request being sent before first request is
completed and print the result on the webpage? I want to print the
distances for all the 3 coordinates. Currently it prints for only one.
Thanks in advance.

Shubham

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to