Close

Location Estimation with Wifi Networks

A project log for LoRa Bike Light with Indoor Location Estimation

A makeover of a Bike rear light that scans the WiFi Networks in your surroundings, and transmits the Data via LORA

ulrichUlrich 08/22/2021 at 20:080 Comments

Have you ever tought about Using Wifi Location for estimating your GPS Location?

In most of the areas we are typically a Wifi Network is near.

Google offers you a Service to hand over the Wifi Mac Adresses near you and they will tell you where you are.

This API is called Geolocation API

You may find a documentation here. -> Geolocation Google API

There are a bunch of other players in the market that offer the same. E.g. Here Maps, Firefox... and so on.

Just choose the API that is nicest for you.

Once you choosed your API Provider you may SCAN the networks around you.

One the ESP32 combined withe the Arduino IDE this is quite simple.

Please see the code below. This code does exactly this. it scans for the nearest Wifi and sort them according to signal strength.

Once this is done the Mac Adress and Signal strength is stored.

Now you can send this Information to a Google sheet.

Inside this Google sheet you can Access the Geolocation API and estimate with this information the location of your Bike Light:

You see in the last Collum of the below sheet. Latitude, longitude and the Accuracy in meters of the Estimation.

For me this is quite scary. All you need to know is three WIFI signals and google knows where you are with a accuracy of 20 meters.

For my privacy I faded my exact MACs and the location.

Discussions