- (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 ‘
位置点不准确,获取了几次也不准,有什么解决方法
}
|
|
| 10分 |
你的意思是@”%f”的精度不够?
|
| 10分 |
那样的话,改@”%8.5f”试试??
|
|
改@”%8.5f” 也不行。不是精度问题。
|
|
| 30分 |
不是精度问题,那你是需要什么样的结果才是准确的呢。
是要和谷歌的一致才是准确的吗 除了上次的火星坐标之外, 大概原因是这样的 某书本上的说法,如果你消耗的起时间,多次定位来确定。 |
|
位置有点偏差,但也算比较准了
|
|