Skip to main content

Just another geohashing library

Project description

Geohashr

Just another Python geohashing library.

In a nutshell

import geohashr

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

geohashr.decode('u0nd9hdfue8h')
# (45.46466396190226, 9.188540149480104)

geohashr.decode_exact('u0nd9hd')
# (45.46485900878906, 9.188003540039062, 0.0006866455078125, 0.0006866455078125)

geohashr.bbox('u0nd9hdfue8h')
# {
#     'e': 9.188540317118168,
#     's': 45.46466387808323,
#     'w': 9.188539981842041,
#     'n': 45.46466404572129
# }

geohashr.neighbors('u0nd9hdfue8h')
# {
#     'e': 'u0nd9hdfue8k',
#     'n': 'u0nd9hdfue8j',
#     'ne': 'u0nd9hdfue8m',
#     'nw': 'u0nd9hdfu7xv',
#     's': 'u0nd9hdfue85',
#     'se': 'u0nd9hdfue87',
#     'sw': 'u0nd9hdfu7xg',
#     'w': 'u0nd9hdfu7xu'
# }

geohashr.neighbor('u0nd9hdfue8h', 'e')
# 'u0nd9hdfue8k'

License

Geohashr is released under the BSD License.

Project details


Download files

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

Source Distribution

geohashr-1.3.1.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distributions

geohashr-1.3.1-pp310-pypy310_pp73-win_amd64.whl (149.5 kB view hashes)

Uploaded PyPy Windows x86-64

geohashr-1.3.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl (386.7 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ x86-64

geohashr-1.3.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl (387.9 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ ARM64

geohashr-1.3.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl (183.8 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

geohashr-1.3.1-pp310-pypy310_pp73-macosx_10_7_x86_64.whl (197.3 kB view hashes)

Uploaded PyPy macOS 10.7+ x86-64

geohashr-1.3.1-pp39-pypy39_pp73-win_amd64.whl (149.5 kB view hashes)

Uploaded PyPy Windows x86-64

geohashr-1.3.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl (386.7 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ x86-64

geohashr-1.3.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl (387.9 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ ARM64

geohashr-1.3.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl (183.8 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

geohashr-1.3.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl (197.3 kB view hashes)

Uploaded PyPy macOS 10.7+ x86-64

geohashr-1.3.1-pp38-pypy38_pp73-win_amd64.whl (149.5 kB view hashes)

Uploaded PyPy Windows x86-64

geohashr-1.3.1-pp38-pypy38_pp73-musllinux_1_1_x86_64.whl (386.7 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ x86-64

geohashr-1.3.1-pp38-pypy38_pp73-musllinux_1_1_aarch64.whl (387.9 kB view hashes)

Uploaded PyPy musllinux: musl 1.1+ ARM64

geohashr-1.3.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp312-none-win_amd64.whl (147.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

geohashr-1.3.1-cp312-cp312-musllinux_1_1_x86_64.whl (385.8 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

geohashr-1.3.1-cp312-cp312-musllinux_1_1_aarch64.whl (387.3 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ ARM64

geohashr-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (242.4 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (206.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp312-cp312-macosx_11_0_arm64.whl (183.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

geohashr-1.3.1-cp312-cp312-macosx_10_7_x86_64.whl (196.2 kB view hashes)

Uploaded CPython 3.12 macOS 10.7+ x86-64

geohashr-1.3.1-cp311-none-win_amd64.whl (148.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

geohashr-1.3.1-cp311-cp311-musllinux_1_1_x86_64.whl (386.8 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

geohashr-1.3.1-cp311-cp311-musllinux_1_1_aarch64.whl (388.0 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

geohashr-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp311-cp311-macosx_11_0_arm64.whl (183.8 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

geohashr-1.3.1-cp311-cp311-macosx_10_7_x86_64.whl (197.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

geohashr-1.3.1-cp310-none-win_amd64.whl (148.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

geohashr-1.3.1-cp310-cp310-musllinux_1_1_x86_64.whl (386.8 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

geohashr-1.3.1-cp310-cp310-musllinux_1_1_aarch64.whl (388.0 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

geohashr-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp310-cp310-macosx_11_0_arm64.whl (183.8 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

geohashr-1.3.1-cp310-cp310-macosx_10_7_x86_64.whl (197.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

geohashr-1.3.1-cp39-none-win_amd64.whl (148.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

geohashr-1.3.1-cp39-cp39-musllinux_1_1_x86_64.whl (386.8 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

geohashr-1.3.1-cp39-cp39-musllinux_1_1_aarch64.whl (388.0 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ ARM64

geohashr-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp39-cp39-macosx_11_0_arm64.whl (183.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

geohashr-1.3.1-cp39-cp39-macosx_10_7_x86_64.whl (197.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

geohashr-1.3.1-cp38-none-win_amd64.whl (148.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

geohashr-1.3.1-cp38-cp38-musllinux_1_1_x86_64.whl (386.6 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

geohashr-1.3.1-cp38-cp38-musllinux_1_1_aarch64.whl (387.9 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ ARM64

geohashr-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

geohashr-1.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (207.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

geohashr-1.3.1-cp38-cp38-macosx_11_0_arm64.whl (183.7 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

geohashr-1.3.1-cp38-cp38-macosx_10_7_x86_64.whl (197.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page