有没有办法找出是否通过A-GPS获得CLLocation,cell塔信号强度还是wifi? [英] Is there a way to find out if iPhone obtained CLLocation by A-GPS, cell tower signal strength or wifi?

查看:127
本文介绍了有没有办法找出是否通过A-GPS获得CLLocation,cell塔信号强度还是wifi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一个属性来表示iPhone如何物理上获得 CLLocation

I'm trying to find a property that indicates how iPhone physically obtains CLLocation?

我知道iPhone通过以下方式获得 CLLocation

As far as I am aware iPhone gets CLLocation via either:

1)GPS
2) b $ b 3)Wifi ID和信号强度

1) GPS 2) Cell tower triangulation 3) Wifi ID and signal strength

我可以通过编程方式引用公共图书馆中的某些东西来获取这些信息吗?

Can I programmatically refer to something in the publicly accessible libraries to get this?

如果没有办法在可公开访问的库中以编程方式标识它,那么是否有一个圆的方式获取相同的信息?

If there isn't a way to identify it programmatically in the publicly accessible libraries, is there a "round about" way to get the same information?

推荐答案

简短的答案是否定的,没有发布的方式来获取这些信息。

The short answer is no, there is no published way to get this information.

你可以使用horizo​​ntalAccuracy和verticalAccuracy源,至少在GPS和其他之间。你会想测试它想出你喜欢的数字,但GPS通常会比10米更好,其他人更糟。

You can use horizontalAccuracy and verticalAccuracy to guess the source, at least between GPS and the others. You would want to test it to come up with numbers you like, but GPS will usually be better than 10 meters and the others worse.

您可以尝试手动查找wifi的位置,看看它是否匹配你得到的结果。您也可以使用Reachability来查看是否有WiFi连接,如果没有,则对其进行排序。

You can try to manually look up the wifi location and see if it matches the results you get. You can also use Reachability to see if there is a wifi connection and rule it out if not.

这篇关于有没有办法找出是否通过A-GPS获得CLLocation,cell塔信号强度还是wifi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆