简体   繁体   English

您的CoreLocation最佳实践是什么?

[英]What are your CoreLocation best practices?

I am working on a CoreLocation based application which should show the position of the user on a map. 我正在开发一个基于CoreLocation的应用程序,它应该在地图上显示用户的位置。

My current problem is, that the precision of CL is not very good. 我目前的问题是,CL的精度不是很好。

I am testing the app in an urban environment, so i am walking through a the streets around our office and see how precise it is. 我正在城市环境中测试应用程序,所以我走过办公室周围的街道,看看它有多精确。 The horizontalAccuracy is usually around 47m - 50m when i am walking, and updates occur randomly between every 10 seconds and 1 minute. 当我走路时, horizontalAccuracy精度通常在47m到50m左右,并且每10秒到1分钟之间随机更新一次。 The updated position can vary between almost accurate and 20 meters or more off my real position. 更新后的位置可以在几乎准确到20米或更远的位置之间变化。 When i stop and wait for a minute, the position will almost always be correct within a minute, and the precision may rise to 17m. 当我停下来等待一分钟时,位置几乎总是在一分钟内正确,精度可能会上升到17米。

I have tested this with three iPhone (3G and 3GS) and one iPod Touch(which is less precise). 我用三个iPhone(3G和3GS)和一个iPod Touch(不太精确)测试了这个。

However, there is a difference in the final usage of the product: The target audience of our product will use it in a rural, open environment without any houses nearby. 但是,产品的最终用途存在差异:我们产品的目标受众将在农村开放的环境中使用它,而附近没有任何房屋。

Will this improve accuracy? 这会提高准确性吗?

How accurate can the iPhone get at best in terms of horizontalAccuracy? iPhone在水平准确度方面的准确度有多准确?

Are there any best practices, tips and tricks to improve the precision? 是否有提高精度的最佳实践,提示和技巧?

Your problem is not CL, but the urban environment. 你的问题不是CL,而是城市环境。 Buildings block view of the GPS satellites used to calculate location. 建筑物阻挡用于计算位置的GPS卫星的视图。 The more satellites you can see the better the accuracy. 您可以看到的卫星越多,准确度越高。

The iPod Touch doesn't have GPS capability and location based solely on WiFi signals it can detect and lookup in an online database . iPod Touch没有GPS功能和位置,仅基于可以在在线数据库中检测和查找的WiFi信号。 It will probably give poor or no location data when in a rural environment since it depends entirely on nearby WiFi signals. 在农村环境中,它可能会提供较差或没有位置数据,因为它完全取决于附近的WiFi信号。

For more info see: 有关详情,请参阅:

The absolute best accuracy you can expect is about 2.5m (8') without WAAS and with SA turned off. 没有WAAS且SA关闭的情况下,您可以预期的绝对最佳精度约为2.5米(8') You won't get that in an urban environment though, you need a clear sky for that best case accuracy. 但是,你不会在城市环境中得到它,你需要一个清晰的天空,以获得最佳的案例准确性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM