Skip to main content

Using Mozilla Location services, log location vs. time using WiFi or convert to KML.

Project description

Mozilla Location Services from Python

Build Status Python versions (PyPI) PyPi Download stats

Uses command line access to WiFi information in a short, simple Mozilla Location Services with Wifi from Python. The command line programs used to access WiFi inforamtion include:

Note that a similar service with better accuracy is available from Google. Let us know if you're interested.


python -m pip install -e .



Returns dict() containing lat lng accuracy N BSSIDs heard. In urban areas, accuracy ~ 5 - 100 meters.

convert to KML

Display logged data in Google Earth or other KML viewer after converting from CSV to KML:

python in.log out.kml

which uses

pip install simplekml

Note that your time MUST be in ISO 8601 format or some KML reading programs such as Google Earth will just show a blank file. E.g.



Would like to add Bluetooth beacons.


Raspberry Pi 3 / 4 / Zero W

Debian comes without NetworkManager by default. Be careful as you lose Wifi password etc. by this procedure

  1. Install network manager and remove the old
    apt install network-manager
    apt purge dhcpcd5
  2. upon reboot, try
    nmcli dev wifi list
    you should see several wifi access points and signal.
  3. try the MLS geolocation program above.

Project details

Download files

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

Files for mozloc, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mozloc-1.0.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page