Hello, 
First sorry about my English...

I´m working in a application using DirectionServices. I need to  know the 
distance betwen a cup of points.
Mi problem is that I have a For bucle in my javascript source and I send the 
route in DirectionService.route().  After that I use the response 
(DirectionResutl) to analice the legs and steps about the route.

I know the response of this function is asyncronous, and I only can save 
data if I use an alert message after every route, but It can be a solution 
because I have a lot of points to study. If i dont stop the application, the 
javascript code run faster than the google response and the appiclation dont 
work.

Can anyone tell me any idea to solve this problem?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/TtulsXoWwdAJ.
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