我想使用最好的座標。但有一點是混淆了我評估用戶位置GPS傳感器數據準確性的最佳方法是什麼?
在這裏,我要檢查是否有新的定位精度更好,然後用新的位置以其它方式使用舊的位置
if (newLocation.horizontalAccuracy>oldLocation.horizontalAccuracy)
{
self.bestEffortAtLocation=newLocation; // this mean new location is better accurate
}
else
{
self.bestEffortAtLocation=oldLocation; // this mean old location is better accurate
}
我想知道,上面的檢查正確與否?
我知道這是一個愚蠢的問題。但現在在這個時候我處於表面水平。
請建議
這不是「一個愚蠢的問題」。唯一愚蠢的問題是那些沒有被問到的問題。 – 2010-01-23 15:09:16