On Sep 13, 3:14 am, visit <[email protected]> wrote:
> Dear All:
>
> May I ask some questions?

Sure.  But please read the posting guidelines.  And may I also suggest
this great guide on asking questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html
In particular:
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific

>
> I want to use "Directions" to get some addresses's distance,if I can
> use "for loop"

You can.  But it probably won't work. GDirections is asynchronous:
Javascript Concepts
Part 2 Asynchronous I/O
http://econym.org.uk/gmap/async.htm

You need to wait for the results to come back from the previous
request before sending the next.


>
> to get two addresses's distance?
>
> And
>
> "GEvent. (gdir, "load", onGDirectionsLoad);"
>
> if I could use onGDirectionsLoad to load two addresses and then get
> the distance by getDistance().meters?

I don't see onGDirectionsLoad in the documentation.

  -- Larry

>
> I need your help...thanks
--~--~---------~--~----~------------~-------~--~----~
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