取得する場所が適切な精度であることを確認するために、次の条件を使用しています。私の場合はkCLLocationAccuracyBestです。しかし、問題は私がまだ不正確な場所を取得することです。
// Filter out nil locations
if(!newLocation)
return;
// Make sure that the location returned has the desired accuracy
if(newLocation.horizontalAccuracy < manager.desiredAccuracy)
return;
// Filter out points that are out of order
if([newLocation.timestamp timeIntervalSinceDate:oldLocation.timestamp] < 0)
return;
// Filter out points created before the manager was initialized
NSTimeInterval secondsSinceManagerStarted = [newLocation.timestamp timeIntervalSinceDate:locationManagerStartDate];
if(secondsSinceManagerStarted < 0)
return;
// Also, make sure that the cached location was not returned by the CLLocationManager (it's current) - Check for 5 seconds difference
if([newLocation.timestamp timeIntervalSinceReferenceDate] < [[NSDate date] timeIntervalSinceReferenceDate] - 5)
return;
GPSをアクティブにすると、実際に正確な結果が得られる前に、不正確な結果が得られます。正確な/正確な位置情報を取得するためにどのような方法を使用していますか?