Determine the distance between a WiFi access point and a device - android

I need to know the distance between my phone and WiFi access points. These points are set up in adjacent rooms. I researched about Geo Location, but that's been deprecated now ... Basic set-up of my project consists of 3 WiFi access points. My code is getting the strongest signal and getting connected to that access point.
Now I need to get the distance between that access point and my phone. Help would be appreciated. Thanks.

Based on my knowledge and following answers, it is not possible to find out distance between your device and WiFi access point. Because basically they don't store GPS location inside.
how to get wifi hotspot's location?
Location and distance calculation using Wifi in android

Related

How to get gps location with Network MOBILE and not Network Wi-Fi

Is it possible to get the coordinates only with the mobile network enabled?
I need to get the coordinates within 30 seconds. Because when the user clicks the button to hide, it can not be too long to get the coordinates.
I can not use NETWORK_PROVIDER to get the coordinates of the Wi-Fi network because the user will be on the street and not connected to a Wi-Fi network, but will have the mobile data network connected.
Is it possible to get coordinates over the mobile data network?
I know GPS_PROVIDER is slower than NETWORK_PROVIDER, so I'd like to know if it's possible as I said above. Thank you!
Is it possible to get the coordinates only with the mobile network enabled?
Yes. For example, navigation apps work while driving in open spaces, far from any WiFi.
I need to get the coordinates within 30 seconds
There is no way to guarantee this. There is no way to guarantee that you can get a GPS fix in any amount of time. There are plenty of places in the world where it is difficult to get GPS signals.

getSpeed() of Location is not working on WiFi

I want to calculate the speed of user on WiFi. I am getting location updates via. onLocationChanged() but every time hasSpeed() returning false and getSpeed() returning 0.0.
Is there any API available to get speed on WiFi or I need to calculate speed manually? Any help or guidance will be well appreciated.
Note: I am able to get the speed on GPS.
You won't be able to use getSpeed() when the user is only connected to WiFi. WiFi location works based on known locations of networks the phone sees. Unlike GPS, this will only ever provide a rough location, so there's no way to calculate speed.
Think about it like this: If I start at point A and walk 10 feet to point B, will there be any chance in the WiFi networks I can see? Probably not. Will be there be a change in my GPS coordinates? With a decent view of the sky, yes.

Getting location information of Android phones connected to a wifi access point

I am trying to get the location information of Android phones connected to a particular wifi access point/hotspot which is another Android device. I know how to obtain location information for a particular Android device using the Location API as well as the signal strength information of the access points in vicinity. Actually I am trying to send the location information of all the nodes connected to the hotspot. For that maybe I need to open different sockets. After that based on that information I have make some decisions. Can anyone give me a good approach to solve this.
You can't get location direction from WiFi hotspot (actually WiFi spot itself doesn't know where it's located).
http://en.wikipedia.org/wiki/Skyhook_Wireless
there are databases which contains mapping between WiFi hotspot MAC address and locations. So, your application should get info about WiFi hotspot and after go to one of this databases.
To know more about that u can refer this one http://developer.android.com/guide/topics/location/strategies.html

Get wifi access point location in android

Is there a way to get the Location (latitude, longitude) of an wifi access point? I need to display them on a map so the only way for me to do that is to get the location of each wifi access point.
Thanks.
You need to use a database of access points for this, such as the one at WiGLE.net.
Contact them for information on a commercial license.
Routers don't typically have GPS capabilities. You can determine the geographic location roughly using a reverse IP lookup and a geographic ISP database.
You might be able to estimate a distance away from the user using signal strength...

How to know if android phone is inside of a certain building name?

I was wondering was there a way to track if the android device is inside of a building and retreieve what building by using the location manager? without having GPS being turned on.
Even if you had a Lat/Lon location, you would then use GeoCoding to get the address from the location, addresses may be shown as 2 or 3 buildings in a single location, my home address is shown as a range of house numbers including my neighbours. Without accurate GPS, you wont have enough accuracy.
Android device can get device location over the WIFI or from GSM antennas too, but this is not very accurate. Location technology that is "coarse" only knows where you are within several hundred meters. I think you can not get right results.
If you want to try it, you need to add ACCESS_COARSE_LOCATION permission to the AndroidManifest.xml file.

Categories

Resources