i am creating an app that uses location-
everything works swimmingly except one thing-
when i come home my iphone connects to my local wifi network and instead o
the inaccurate GPS coordinates are obtained by the iPhone not only via the Wi-Fi or mobile networks, but also the real-coordinates with accuracy level >100 metres.
What I use is to put the line: if (newLocation.horizontalAccuracy < 0 || newLocation.horizontalAccuracy > 50) return;
as the first line in the didUpdateToLocation
, to filter out inaccurate coordinates.
The 'location age' i.e. NSTimeInterval locationAge=[locTimestamp timeIntervalSinceNow];
does NOT serve for me to get rid of cached coordinates.