title: Current location on maps is not accurate. didUpdateLocations iPhone
body: <p>I am working on app where I need exact current location. The current location works fine when I am outdoors in iOS app. But when I am inside a building the current location is inaccurate. Its 100 meter away from my exact location.</p>
  <p>The setting for location manager are as follows:</p>
  <pre><code> locationManager.desiredAccuracy = kCLLocationAccuracyBest
   locationManager.distanceFilter = 100
   locationManager.allowsBackgroundLocationUpdates = true
  </code></pre>
  <p>And I am calling this function for location updates:</p>
  <pre><code>  func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
      let location: CLLocation = locations.last!
      self.updatedLocation = location    
  }
  </code></pre>
  <p>The current location works fine on Android devices in buildings.
  One thing that I have observed that when I open the Apple Maps and Google Maps app the current
  location is the same as I am getting in my app but they have a light blue circle showing that you could be anywhere around that area.</p>
  <p>Is there anyway I could improve the current location when I am inside a building?</p>
  <p>Any help would be appreciated.</p>
  <p>First image is screenshot from iOS where current location is inaccurate and the second image is screenshot from Android device where the location is precise.</p>
  <p><a href="https://i.stack.imgur.com/AY5pY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AY5pY.png" alt="Screenshot from iOS." /></a></p>
  <p><a href="https://i.stack.imgur.com/n5FKq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n5FKq.png" alt="Screenshot from Android." /></a></p>