On Sep 13, 9:38 am, visit <[email protected]> wrote: > Hi,Larry > > thanks for your help... > > I'll read the guide!! > > > You can. But it probably won't work. GDirections is asynchronous: > > Javascript Concepts > > Part 2 Asynchronous I/Ohttp://econym.org.uk/gmap/async.htm > > > You need to wait for the results to come back from the previous > > request before sending the next. > > ok..I'll think another way... > > > > > > 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. > > Sorry, onGDirectionsLoad is my function's name > I just want to know if I could use the same function to load(A,B) and > getDistance()?
Sure, if you code it to do that. But it sound to me like you are confusing the sequencing. When you make the request to the server, you provide the addresses. When the data is returned you can get call getDistance().meters on the GDirections object you made the request with. -- Larry > > > > > > > > I need your help...thanks- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
