user17124125
user17124125

Reputation:

How To get Accurate current location in ios swift 5 meters accurate

i want accurate current location , i got current location 100 meters aways from my current location

this is my code if you know any way to get pin point accuracy

 let manager = CLLocationManager()
      manager.desiredAccuracy = kCLLocationAccuracyBestForNavigation
      manager.delegate = self
      manager.requestAlwaysAuthorization()
      manager.allowsBackgroundLocationUpdates = true
      manager.pausesLocationUpdatesAutomatically = false

Upvotes: 0

Views: 1280

Answers (1)

Neklas
Neklas

Reputation: 542

The accuracy of Location depends on:

  • GPS device (or hardware, or even firmware)
  • GPS device maximum accuracy support
  • Quality of connection between your GPS device and Satellite
    • This can be affected by obstacles (metal objects, tall buildings,...)
  • Your phone/watch/pad power level (system can reduce the accuracy to save battery)
  • User may only allow your app to access reduced accuracy or not precise location
  • Your setting of LocationManager:
    • manager.desiredAccuracy = kCLLocationAccuracyBestForNavigation
    • This setting will also turn on Sensor to improve the accuracy of location.

I am working on a Workout project also, already saw a lot of Location point that has hozirontalAccuracy below 5 meters. And, we just hope that the user's GPS signal is strong and stable, there is no other method to improve now.

Upvotes: 0

Related Questions