title: Accuracy of Core Location
body: <p>I'm currently working on a location tracking app and I have difficulties with inaccurate location updates from my <em>CLLocationManager</em>. This causes my app to track distance which is in fact only caused by inaccurate GPS readings.</p>
  
  <p><img src="https://i.stack.imgur.com/UGTLb.png" alt="Inaccurate location readings"></p>
  
  <p>I can even leave my iPhone on the table with my app turned on and in few minutes my app tracks hundreds of meters worth of distance just because of this flaw.</p>
  
  <p>Here's my initialization code:</p>
  
  <pre><code>- (void)initializeTracking {
      self.locationManager = [[CLLocationManager alloc] init];
      self.locationManager.delegate = self;
      self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
      self.locationManager.distanceFilter = 5;
  
      [self.locationManager startUpdatingLocation];
  }
  </code></pre>
  
  <p>Thanks in advance! :-)</p>