Here is some further info about accuracy coming from locationmanager:
1st call => Giving the last location (old one for example from the maps app)
2nd call => Giving a new location but very inaccurate!
3rd call => Giving a new location with better acuracy
Further calls can give more accuracy but they are time consuming (the fourth call is statistically takeing more time!) and there is no guarantee that the accuracy is better then the third call!
I think maps app is handling three calls (very fast and a hopefully good accuracy)
And there is my old (other problem) that there is NO GUARANTEE thet gps is called more than three times - sometimes it does sometimes not. I did not found out when/why ...
My strategy is to run it three times and:
- if the accuracy is better than 20 meters i return (result good)
- if the three calls are gone and the accuracy is better than 100 meters i return (bad but good enough to use)
- if the three calls are gone and the accuracy is bader than 100 meters i take the last known location and the user is able to retry it
Ralf
Last edited by rhuettl; 10-24-2008 at 11:42 AM.
|