iOS:我可以手动将wifi网络与地理位置相关联吗? [英] iOS: Can I manually associate wifi network with geographic location?
问题描述
是否可以让手机知道特定的wifi网络位于特定的地理位置?
Is it possible to make the phone to "know" that a specific wifi network is at specific geographic location?
if (answer == YES)
{
than how?
}
else
{
can the phone figure this out by himself?
}
另一个类似的问题:
有没有办法开始监控a准确度为~100m的区域,但告诉CLLocationManager通过wifi网络和蜂窝天线使用 only ?因为我不想启动GPS 无论如何......
Another similar question: is there any way to start monitor a region with accuracy of ~100m but telling the CLLocationManager to use only by wifi networks and cellular antenas? Because I don't want to power up the GPS no matter what...
谢谢!
推荐答案
iPhone定位糟透了你无能为力。
如果您越狱设备,可以使用 Apple80211 私有框架,用于查找可用的Wi-Fi网络及其信号强度。但这也意味着您的应用会被拒绝。
If you jailbreak your device you can use the Apple80211 private framework to look up the available Wi-Fi networks and their signal strength. But that also means your app will get rejected.
如果用户手动连接到Wi-Fi 您可以在该网络上查看设备的MAC地址并使用它来猜测您的位置。由于Wi-Fi的范围为50米,这就是您获得的准确度。
If the user manually connects to a Wi-Fi you can see the MAC addresses of the devices on that network and use that to guess your position. Since Wi-Fi has a range of 50 meters, that's the accuracy you get.
所有定位系统对于App Store开发人员来说都是透明的,这意味着应用程序不能禁用GPS,列出Wi-Fis或读取信号强度。如果您通过GPS或Wi-Fi定位查看海拔高度参数,那么您可以做的最多就是 guess 。
All the positioning system is transparent for an App Store developer, meaning an application can't disable the GPS, list Wi-Fis, or read the signal strength. The most you can do is guess if you are positioning through GPS or Wi-Fi looking at the altitude parameter.
用例:你是在商场里,你想知道商店X在哪里。可能没有GPS信号,如果您安装GPS中继器,您将获得该中继器天线的位置,而不是您的位置。即使您安装了十几个Wi-Fi接入点,也无法要求用户手动连接,因为这很麻烦,即使他这样做,他也会获得50-100米的准确度,然后在这里连接存在安全隐患那里。基本上你搞砸了。
Use case: You are in a mall and you want to know where shop X is. Probably there is no GPS signal, and if you install a GPS repeater you get the position of the antenna of that repeater, not your position. Even if you install a dozen Wi-Fi access points you can't ask the user to manually connect because it's a hassle, and even if he did he would get 50-100 meters accuracy, and then there is the security risk of connecting here and there. Basically you are screwed.
这篇关于iOS:我可以手动将wifi网络与地理位置相关联吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!