Rather than call the geolocation synchronously, you can calculate distances
in the callback function, so that it's done only when the geolocation result
arrives.

On Tue, Jun 8, 2010 at 12:12, Tobe <[email protected]> wrote:

> Hi,
> i want to use geolocation and calculate distances from this position
> to a list of places. Can I call the geolocation synchronously to first
> get the position and after that calculate the distances?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to