I've a GPS tracker that now works great, except when iPhone lost GPS connection. When the connection is lost, the track makes one or more points to a random location, as you can see in this image:
(source: alluneed.it)
In which way can I discard these bad values? I've thought about doing it this way: before save my data, I can do a sum of my integer values of current latitude and longitude and compare with integer values of my old latitude and longitude; if the difference is bigger than some value, I discard my data.
Will it be a good thing? Are there some other nice tricks to do this?
maybe i've found my fault:
in
locationManager:didFailWithError:
when i receive a kCLErrorNetwork or any other error except kCLErrorDenied i perform a stopupdatinglocation and a startupdatinglocation.
Now the app works good, i make some other test tomorrow and post here the result.