In my app, am getting latitude and longitude detail from CLlocationmanager and I draw overlay on map using those details. Sometime I see that even though I travel on the path(Highway road),GPS fetching wrong details so my map app drew overlay beyond the place where am really traveling. It shows like am driving on buildings and river and trees. Could anyone please help me the correct this error please.
In my app, am getting latitude and longitude detail from CLlocationmanager and I draw
Share
This is not an error. This is the accuracy of the GPS signal. It’s possible to get the best accuracy as possible defining
locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;, wherelocationManageris an object of typeCLLocationManager.However it may not be possible to always get the exact position of the user.