I came across a service called Wigle recently and since so many of you who come here are interested in geolocation tools and software I thought I’d pass this little Python code snippet along.

It takes WiFi MAC addresses and looks up the latitude and longitude from a collection of 100,000,000 known networks that have been submitted. It’s essentially an open version of what Google Maps do to improve the accuracy of your GPS on Android.

You can use it to look up your own MAC address, or you can pass in a MAC address you want to locate.


To use it you need to sign up with wigle.net, and make a note of your username and password.

Then to set up the agent call: mac_locater = WigleAgent(, )

To look up the system MAC address use: print mac_locater.get_lat_lng()

And if you want to look up a specific MAC address use: print mac_locater.get_lat_lng('0A:2C:EF:3D:25:1B')

Let me know in the comments if you’d like to see an Excel VBA version of this.

Jamie Bull | mail@oco-carbon.com

Related Posts

WiGLE is a popular platform which can be used for finding the location of a device using the names of WiFi networks in its vicinity. I’ve written about this before, and wrote some Python code to interact with their API. This API has since been retired and replaced with a new one, as of December […]

Just a quick post to point out a couple of really useful tools.The first is a web-based tool for finding weather files for a location of interest. It’s similar to the Excel EPW finder tool we created a few years back, but much more modern looking. It is however missing a few of the useful […]

Eppy is a really useful library which I’ve written about several times, since before I really had anything to offer in terms of contributing code. Over the past year or so though, I’ve started to contribute back some of the changes and additions I’ve made while using eppy on academic and commercial projects.This post is […]

Leave a Reply

Your email address will not be published. Required fields are marked *