title: CLLocationManager and accuracy issues - any experiences?
body: <p>So I am dealing with some accuracy issues with iPhone GPS. I have an app which uses location.</p>
  
  <p>In the delegate method <code>locationManager: didUpdateToLocation: fromLocation:</code> I am being returned a location. From a bit of research, it appears the GPS isn't always accurate on the first result it returns, even when setting <code>desiredAccuracy</code> property to <code>kCLLocationAccuracyBest</code>.</p>
  
  <p>In order to get around this, I don't call <code>stopUpdatingLocation</code> before it's returned <code>newLocation:</code> at least 3 times (this is very quick). I have also played around with two other "requirements" for whether to <code>stopUpdatingLocation</code> and return the <code>newLocation</code>. One way I tried was to check the lat and long for <code>newLocation</code> and compare to <code>oldLocation</code> and if these were not identical, then keep the location updating running. I also tried with checking the distance between the <code>oldLocation</code> and <code>newLocation</code> and if it's less than 20 meters, it's fine. Both of these are tested with the returning of at least 3 runs. The latter way is less "strict", since <code>newLocation</code> and <code>oldLocation</code> is quite hard to get away with being 100% identical if the user is in a moving vehicle.</p>
  
  <p>Now, my issue is, that even when doing the above (basically not accepting a location, until a few updates have occured on <code>CLLocationManager</code> AND checking the distance between the <code>CLLocations</code> (or whether they are identical) I am still seeing somewhat weird results for locations sometimes, when testing.</p>
  
  <p>It would be fixes sometimes if I leave the app, go into Maps.app, use the GPS, then open multitasking, force quit my app and then reopen it to get a clean launch.</p>
  
  <p>Any experiences and possible solutions people have used to get around the same kind of issue? Comments and solutions appreciated :)</p>