Turning on WiFi improves location accuracy because your device scans nearby wireless access points and measures their signal strengths. Each access point’s location is stored in a crowdsourced database, so your device estimates its own position from the access points it detects, without connecting to any of them. Indoors, where GPS struggles, this usually pins your location to within a few meters.
WiFi radio signals are a great way to determine where a device is geographically located. The device (with WiFi turned on) measures the signal strength of all nearby WiFi networks that it detects, and this information is used to estimate how close or far the device is from each of these wireless access points. Since the location of those access points is already known, your device can work backwards to pin down its own position, a process called trilateration (often loosely called triangulation).
It often happens that when you’re inside your house, your smartphone may struggle to pick up your precise geographical location using GPS. The reason for this is simple: since GPS works with the help of satellites that circle around the Earth, being in a location that doesn’t have a clear view of the sky makes it difficult for the antenna in your device to track your location with the help of GPS.

However, that doesn’t mean that your location can’t be pinpointed if you’re surrounded by four walls and a ceiling. You can still switch on your WiFi and it will help to mark your location more accurately. Another very interesting thing about this is that you don’t even have to connect to any WiFi network for this to work; you just need to enable WiFi on your device.

How does that work?
Location Determination With GPS
When you’re out in the open, it’s pretty easy to mark your location on Earth using the Global Positioning System, or GPS. For the uninitiated, GPS is a technology that helps to pinpoint someone’s location and provides information about a given point on Earth. GPS consists of three segments: the space segment, the ground segment and receivers.
The space segment consists of a network of more than 30 satellites that constantly orbit the Earth and emit microwave signals that are captured by the tiny antenna installed inside your phone, tablet or any other “GPS-enabled” device.

Although there are more than two dozen GPS satellites in the sky, you only need to be visible by four to get yourself located anywhere in the world. A technique called trilateration works to estimate a GPS-enabled device’s exact location with astounding accuracy.
Location Determination With WiFi Signals
Since GPS works with the help of signals coming from the sky, it’s to be expected that your smartphone occasionally faces difficulties ascertaining your location when you are sitting in your living room in a multi-story building.
In such cases, enabling WiFi lends a helping hand to determine your location. You see, when WiFi on your phone is turned on, it actively searches for available wireless networks. Therefore, if your phone detects four access points, for instance, then the location detection algorithm deduces that it must be in the vicinity of these four access points (since WiFi access points can transmit radio signals only up to roughly 50 to 100 meters, or a couple hundred feet)

A very interesting thing to note is that you don’t need to actually be connected to a WiFi network for this to work. Your phone just takes a quick ‘snapshot’ of various wireless access points in its range and determines their MAC addresses without connecting to any of them!

Thus, all a phone needs to do is detect various WiFi hotspots in its range, and then its location accuracy improves, because the geographical location of millions of WiFi access points can be obtained from a centralized database. How accurate is the result? Indoors, where GPS often fails altogether, WiFi positioning based on signal strength usually places you within roughly 3 to 15 meters (10 to 50 feet), and frequently within a few meters when several access points are nearby. That is rarely good enough to point to the exact shelf you are standing next to, but it is plenty to drop your blue dot in the right room or the right store.
How Is The Geographical Location Of A Wireless Access Point Determined?
Google Street View cars used to drive around in the US and many other countries to gather pictures and data for the “Street View” feature of Google Maps. Collecting images of roads and streets was the main purpose, but they also recorded the geographical locations of WiFi networks that they detected during their journey.

In this way, Google established a massive database of millions and millions of access points all over the world. Therefore, when your device simply detects a WiFi access point (remember, no connection required), Google estimates your location by looking up the recorded position of that particular access point in its database.
These days, though, Street View cars are no longer the main source of this data. The much larger source is all of us. Every time a phone running Google or Apple software gets a GPS fix outdoors, it can quietly note the nearby access points it sees and report their signal strengths back, gradually mapping access points the world over. So billions of everyday smartphones, rather than a fleet of camera cars, keep these databases up to date. (If you would rather your own router stay out of them, you can add “_nomap” to the end of its network name, which both Google and Apple honor as an opt-out.)

In places where tech giants like Google (or Apple, Microsoft etc.) do not know precisely where a wireless access point is located, you can still track your location through GPS and then have the nearby wireless access points automatically registered in the Google Maps database (provided you’ve allowed Google to collect your WiFi location data).
This way, even you can help improve the colossal database of geographical locations of numerous WiFi access points without actually realizing it!
References (click to expand)
- Zhang, Z., Zhou, X., Zhang, W., Zhang, Y., Wang, G., Zhao, B. Y., & Zheng, H. (2011, September 19). I am the antenna. Proceedings of the 17th annual international conference on Mobile computing and networking. ACM.
- M Kotaru. SpotFi: Decimeter Level Localization Using WiFi. Stanford University
- (2008) Room-Level Wi-Fi Location Tracking. CiteSeerX
- N Conrad. Position Tracking Using WiFi - ScholarWorks at WMU. Western Michigan University
- (2017) Achieving Centimeter-Accuracy Indoor Localization on WiFi .... The University of Maryland, College Park













