Metadata-Version: 2.1
Name: geohashr
Version: 1.0.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Dist: pytest ~=7.1.2 ; extra == 'test'
Provides-Extra: test
License-File: LICENSE
Summary: Just another geohashing library
Keywords: geohash
Home-Page: https://github.com/gi0baro/geohashr
Author: Giovanni Barillari <g@baro.dev>, Paolo Quadri <pquadri10@gmail.com>
Author-email: Giovanni Barillari <g@baro.dev>, Paolo Quadri <pquadri10@gmail.com>
License: BSD-3-Clause
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/gi0baro/geohashr
Project-URL: Funding, https://github.com/sponsors/gi0baro
Project-URL: Source, https://github.com/gi0baro/geohashr

# Geohashr

*Just another Python geohashing library.*

## In a nutshell

```python
import geohashr

geohashr.encode(45.464664, 9.188540)
# 't18k68dr5kn8'

geohashr.decode('t18k68dr5kn8')
# (45.46466404572129, 9.188540065661073)

geohashr.bbox('t18k68dr5kn8')
# {
#     'e': 45.464664213359356, 
#     's': 9.188539981842041, 
#     'w': 45.46466387808323, 
#     'n': 9.188540149480104
# }

geohashr.neighbors('t18k68dr5kn8')
# {
#     'e': 't18k68dr5knb', 
#     'n': 't18k68dr5kn9', 
#     'ne': 't18k68dr5knc', 
#     'nw': 't18k68dr5kn3', 
#     's': 't18k68dr57yx', 
#     'se': 't18k68dr57yz', 
#     'sw': 't18k68dr57yr', 
#     'w': 't18k68dr5kn2'
# }

geohashr.neighbor('t18k68dr5kn8', 'e')
# 't18k68dr5knb'
```

## License

Geohashr is released under the BSD License.

