如何使用核心位置管理器提高经纬度的准确性

发布于 2024-11-17 07:32:25 字数 435 浏览 2 评论 0原文

可以采取哪些措施来提高 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撩起发的微风 2024-11-24 07:32:25

好吧,您无法更改该代码以使其变得更好......但是您可以在委托中进行一些有趣的检查:

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation

其中 newLocation 包含以下属性

  horizontalAccuracy
  verticalAccuracy

:在开始“使用”纬度/经度值之前,应该监视准确性,直到达到您满意的程度。

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:

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation

Where newLocation contains the following properties:

  horizontalAccuracy
  verticalAccuracy

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

困倦 2024-11-24 07:32:25

不,这是你在代码中能做的最好的事情。

NO, that is the best you can do in code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文