On Sep 7, 10:16 am, víctor <[email protected]> wrote: > > Process the data in the callback function (when it is available). > > If you are making 2 asynchronous calls, check to see when both have > > completed, then do your calculation in that callback function. > > (I think that is what Rossko said in his first reply to you) > > > -- Larry > > Thanks, your answer helped me. > > The problem is I have an array with a variable number of positions. Well then... 1. you better check the usage limits on the directions service, it has rate limits and quotas 2. count the responses and process the data when it has all come back. For more than a few, you will have to do them sequencially anyway. You may want to rethink your design as it may take a while. Searching this group should give you some ideas.
-- Larry -- 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.
