- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{ location = [newLocation coordinate];
curLat =[NSString stringWithFormat:@"%f",location.latitude];//get latitude
curLng =[NSString stringWithFormat:@"%f",location.longitude];//get longitude ‘位置点不准确,获取了几次也不准,有什么解决方法
}
{ location = [newLocation coordinate];
curLat =[NSString stringWithFormat:@"%f",location.latitude];//get latitude
curLng =[NSString stringWithFormat:@"%f",location.longitude];//get longitude ‘位置点不准确,获取了几次也不准,有什么解决方法
}
gps定位,精确但是,估计不是
设备根据蜂窝网和wifi基站的信号强度来进行三角定位,误差在所难免某书本上的说法,如果你消耗的起时间,多次定位来确定。