You should also test the age of your location data. This is the closest thing to flushing the cache (which is not possible). Check the timestamp
property and reject the update if it's too old.
// check that the location data isn't older than 60 seconds
if ([newLocation.timestamp timeIntervalSinceReferenceDate] < [NSDate timeIntervalSinceReferenceDate] - 60) {
return;
}
nevan
2010-06-25 15:16:00