我正在寻找一种方法来在您所在位置的某个半径范围内找到用户。我需要这个的原因是因为我想知道一个地区有多少人。我发现的一种可能方法是激活蓝牙并找到周围的活动设备。
我想知道是否有其他解决方案、API 和可能性来做到这一点。
我正在寻找一种方法来在您所在位置的某个半径范围内找到用户。我需要这个的原因是因为我想知道一个地区有多少人。我发现的一种可能方法是激活蓝牙并找到周围的活动设备。
我想知道是否有其他解决方案、API 和可能性来做到这一点。
Your best bet would probably be with searching for bluetooth devices.
Most phones have a class 2 bluetooth radio which is generally rated at a range of 10 m, but it can very greatly on the environment (for example, you would notice significant packet loss transmitting through even a small amount of water, such as in a person.) On the other side of the coin, the radio could detect devices up to 100 m away if there were nothing but air between the two devices.
The main problem with this is that you would have to require bluetooth to be active, which a lot of users might not have by default.
有人谈论点对点 wifi 连接,但不确定状态。会给你比蓝牙更远的距离。还有一个图书馆
还有一个来自 qualcomm 的库
https://developer.qualcomm.com/develop/mobile-technologies/peer-peer-alljoyn/faq