Maidenhead Locator, Lat Lon coordinate convertor
Project description
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 |
Install
pip install -e .
Examples
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
mh.toLoc('AB01cd')
take any string and returns topleft [lat, lon] of Maidenhead grid square.
Command Line
Python:
Maidenhead.py 65 -148
Julia:
./Maidenhead.jl 65 -148
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
maidenhead-1.1.6.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for maidenhead-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97b2993f61b99ac4989c14fe733dcced15fba663bb43c0c9bdb440f73f0b6e8 |
|
MD5 | 36da1a2effd5dae48ad460e9f0758cac |
|
BLAKE2b-256 | e9818d595c6c2e9dc00431c3d58d8d80f4a23199398fdfbb41845bffb5ce2a42 |