Location and distance calculation using Wifi in android

核能气质少年 提交于 2019-12-06 05:52:49

问题


How to get the distance of our mobile device from a wifi hotspot kept inside a building? This is basically for navigational purposes inside the building.. Any help would be appreciated.


回答1:


If you want to use WiFi for indoor location (step 1 before navigation), then distance to the WiFi Access Points is not the correct approach. Instead use RSSI.

With Android you would need to take WiFi fingerprint of a building by moving around every few meters and sample the RSSI strength. You need to provide a user interface that lets the user manually specify on an image of the building (e.g. a CAD drawing). Doing this will build up a database of what the RSSI is for different locations in the building. When you come to use this data for locating a user indoors, then you need an app to take the RSSI strength measurement and compare it against the database you've prepared to find the appropriate match.

Notes: - If anyone adds/removes access points, you'll need to resample the building - The measurements can be affected by density of people - Some access points are variable strength access points, so the RSSI fingerprint is not consistent. - This won't work with iPhone because there is no API to get the RSSI strength.

So, it is a useful, but not perfect way to get indoor location. There are a lot of more detailed articles on RSSI fingerprinting available.

Of course, navigation has to be built on to of that then.




回答2:


Hi Kris

I understood what you are asking, The distance between Wifi access point and the Receiver, correct ? If yes, then it seem to be not possible after watching the discussion below.

Click here to see



来源:https://stackoverflow.com/questions/8921157/location-and-distance-calculation-using-wifi-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!