Skip to main content

Maidenhead Locator, Lat Lon coordinate convertor

Project description

image image Build status pypi versions PyPi Download stats

Maidenhead <-> Lat/Lon

maidenhead provides a simple, yet effective location hashing algorithm. Maidenhead allows global location precision down to 750m

Maidenhead provides 4 levels of increasing accuracy

Level Precision
1 World
2 Regional
3 Metropolis
4 City

We also have Maidenhead conversion for Julia.

Open Location Codes a.k.a Plus Codes are in Python code by Google.


pip install -e .


All examples assume first doing

import maidenhead as mh

lat lon to Maidenhead locator

mh.toMaiden(lat, lon, level) 

returns a char (len = lvl*2)

Maidenhead locator to lat lon


take any string and returns topleft lat, lon of Maidenhead grid square.

Command Line

Python: 65 -148

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 maidenhead, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size maidenhead-1.3.0.tar.gz (4.4 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page