如何使用核心位置管理器提高经纬度的准确性
可以采取哪些措施来提高 iPhon 纬度和经度的准确性。
由于方法有很多,通常我们使用
self.TlocationManager = [[[CLLocationManager alloc] init] autorelease];
self.TlocationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.TlocationManager.distanceFilter = kCLLocationAccuracyBestForNavigation;
self.TlocationManager.delegate = self;
[self.TlocationManager startUpdatingLocation];
Aprat,因此我们需要额外实现才能从 iPhone 获取最佳位置。
What can be the possible steps to improve the accuracy of the Latitude and Longitude of the iPhon.
As there are many ways and normally we use
self.TlocationManager = [[[CLLocationManager alloc] init] autorelease];
self.TlocationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.TlocationManager.distanceFilter = kCLLocationAccuracyBestForNavigation;
self.TlocationManager.delegate = self;
[self.TlocationManager startUpdatingLocation];
Aprat from this what extra we need to implement for getting best Location from the iPhone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,您无法更改该代码以使其变得更好......但是您可以在委托中进行一些有趣的检查:
其中 newLocation 包含以下属性
:在开始“使用”纬度/经度值之前,应该监视准确性,直到达到您满意的程度。
http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/c_ref/CLLocation
Well, you can't change that code to make it any better... but you can make some interesting checks in your delegate:
Where newLocation contains the following properties:
You should monitor the accuracy until it reaches the point you're happy with before you start "using" the values for lat/long.
http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/c_ref/CLLocation
不,这是你在代码中能做的最好的事情。
NO, that is the best you can do in code.