ohhh sure, sounds simple :) Now, it works a lot better, but there is one thing I discovered. When I open the web-application or waited a "long" time since the last localization it just returns a latitude and longitude with 8 floating point numbers. The next times, it always returns 14 floating point numbers. I set the maximumAge to 1000. Is there a logical reason for it or is it just because of the accuracy of the localization?
On Jun 8, 12:31 pm, Miguel Angel Vilela <[email protected]> wrote: > 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%2B > > [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.
