> Can anyone tell me any idea to solve this problem?

You might implement a queue.
Send a request for the first item in the queue.
When the response comes, process it.
Remove the completed item from the queue.
Look to see if there is  a next request in the queue, and send that.

Beware of the terms of use, regarding displaying Directions results
and saving data extracted from results.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to