On Sep 7, 8:47 am, víctor <[email protected]> wrote:
> On 29 ago, 16:05, Rossko <[email protected]> wrote:
>
> > > is possible stop de code until the callback function is called to save
> > > de date?
>
> > No.
>
> Then, if I have 3 points:
> Barcelona
> Paris
> London
>
> and I start in Barcelona and I want to go to the nearest town (in this
> case Paris). How can I do it?

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

> I need the two distances: Barcelona to Paris and Barcelona to London
> for decide which is the nearest.

-- 
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