Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Get position based on wifi APs in proximity and database.

Project description

Locates the current wifi-enabled computer using nearby access points and

Project home:


$ pip install radiocells


Must run as root to get access to scanning on Linux.

Example use:

import radiocells
accuracy, latlng = radiocells.locate(device='wlan0')

Example script included in examples/, (prints out accuracy in meters, and coordinates):

$ sudo ./ wlan0
30 (59.12345, 10.12345)


Python 2 and 3. Only tested on Linux (Ubuntu, Fedora, Arch).

Development info

example query sent to curl -H “Accept: application/json” -H “Content-type: application/json” -X POST -d ‘{“wifiAccessPoints”:[{“macAddress”:”24-DE-C6-A8-C9-64”,”signalStrength”:-57}]}’

Example response: {“source”: “wifis”, “measurements”: 14, “location”: {“lat”: 59.12345, “lng”: 10.12345}, “accuracy”: 30}

or on fail: {‘resultType’: ‘error’, ‘results’: {‘source’: ‘none’, ‘measurements’: 0, ‘location’: {‘lat’: 0.0, ‘lng’: 0.0}, ‘accuracy’: 9999}, ‘error’: {‘message’: ‘Empty request’, ‘code’: 400, ‘errors’: [{‘message’: None, ‘reason’: ‘parseError’, ‘domain’: ‘global’}]}}

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for radiocells, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size radiocells-0.3.0-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size radiocells-0.3.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page