Metadata-Version: 2.1
Name: maidenhead
Version: 1.4.1
Summary: Maidenhead Locator, Lat Lon coordinate convertor
Home-page: https://github.com/space-physics/maidenhead
Author: Michael Hirsch; Henri Kuiper
Author-email: scivision@users.noreply.github.com
License: UNKNOWN
Description: # Maidenhead &lt;-&gt; Lat/Lon
        
        [![DOI](https://zenodo.org/badge/132653071.svg)](https://zenodo.org/badge/latestdoi/132653071)
        ![Actions Status](https://github.com/space-physics/maidenhead/workflows/ci/badge.svg)
        [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/space-physics/maidenhead.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/space-physics/maidenhead/context:python)
        [![pypi versions](https://img.shields.io/pypi/pyversions/maidenhead.svg)](https://pypi.python.org/pypi/maidenhead)
        [![PyPi Download stats](http://pepy.tech/badge/maidenhead)](http://pepy.tech/project/maidenhead)
        
        `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
        
        ```sh
        pip install maidenhead
        ```
        
        or for development version
        
        ```sh
        git clone https://github.com/space-physics/maidenhead
        
        pip install -e maidenhead
        ```
        
        ## Examples
        
        All examples assume first doing
        
        ```python
        import maidenhead as mh
        ```
        
        ### lat lon to Maidenhead locator
        
        ```python
        mh.to_maiden(lat, lon, level)
        ```
        
        returns a char (len = lvl*2)
        
        ### Maidenhead locator to lat lon
        
        ```python
        mh.to_location('AB01cd')
        ```
        
        takes Maidenhead location string and returns top-left lat, lon of Maidenhead grid square.
        
        ## Command Line
        
        The command line interface takes either decimal degrees for "latitude longitude" or the Maidenhead locator string:
        
        ```sh
        maidenhead 65.0 -148.0
        ```
        
        > BP65aa
        
        ```sh
        maidenhead BP65aa12
        ```
        
        > 65.0083 -147.9917
        
        ## Alternatives
        
        We also have
        [Maidenhead conversion for Julia](https://github.com/space-physics/maidenhead-julia).
        
        Open Location Codes a.k.a Plus Codes are in
        [Python code by Google](https://github.com/google/open-location-code/tree/master/python).
        
Keywords: location,maidenhead
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Provides-Extra: tests
Provides-Extra: lint
