geolib
A library for geohash encoding, decoding and associated functions
Decision gist · record as of 2026-08-14
Yes, if you need geohash encoding/decoding for a stable, non-critical feature and can accept an unmaintained package. The code is simple and low-friction to install, and the MIT license is permissive. No, if you require active maintenance, support for the latest Python versions, or bug fixes—consider a maintained alternative or fork.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single lightweight dependency (future).
- However, the package is abandoned—last release was 2019-05-04 and no commits since 2023-05-26.
- It will not receive bug fixes or updates for modern Python versions.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2019-05-04 (2659 days) · last repo commit 2023-05-26 · 29 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 139,113 downloads/mo, #11,308 on PyPI
Alternatives
Verify before relying
pip install geolib
from geolib import geohash
# Encode latitude, longitude to geohash
code = geohash.encode('70.2995', '-27.9993', 7)
print(code) # 'gkkpfve'
# Decode geohash back to coordinates
lat, lon = geohash.decode('gkkpfve')
print(lat, lon) # (70.2995, -27.9993)
# Find neighboring cells
neighbours = geohash.neighbours('gcpuyph')
print(neighbours.ne) # 'gcpuypm'- Whether the package works reliably on Python versions released after 2019 or if modern dependency versions introduce incompatibilities.
- Whether the port from Chris Veness' JavaScript implementation has been validated against the original for edge cases or precision issues.
What it is and what it does
Geolib is a Python port of Chris Veness' geohash library, providing tools to convert between geographic coordinates (latitude/longitude) and geohash strings—a compact spatial encoding scheme. It supports encoding coordinates to geohashes at variable precision levels, decoding geohashes back to coordinate pairs, and computing neighboring cells and directional bounds for spatial proximity operations.
The library is designed for applications that need efficient spatial indexing or proximity queries without heavy dependencies. It depends only on the future package for Python 2/3 compatibility. However, the project is abandoned and has not been updated since 2019, so it may lack support for modern Python versions and will not receive maintenance or bug fixes.
Use it for
- Build a location-based service that groups nearby coordinates into grid cells for efficient spatial queries.
- Implement a map tile or spatial database index using geohashes to partition geographic data.
- Find all geohash neighbors of a given location to identify adjacent regions in a grid-based system.
- Compress latitude/longitude pairs into short strings for storage or transmission in location-aware applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need geohash encoding/decoding for a stable, non-critical feature and can accept an unmaintained package.
The code is simple and low-friction to install, and the MIT license is permissive. No, if you require active maintenance, support for the latest Python versions, or bug fixes—consider a maintained alternative or fork.
Install
geolib on PyPI
Before you install
Low install friction with a single lightweight dependency (future). However, the package is abandoned—last release was 2019-05-04 and no commits since 2023-05-26. It will not receive bug fixes or updates for modern Python versions.
License in practice
MIT license (permissive) allows free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install geolib
from geolib import geohash
# Encode latitude, longitude to geohash
code = geohash.encode('70.2995', '-27.9993', 7)
print(code) # 'gkkpfve'
# Decode geohash back to coordinates
lat, lon = geohash.decode('gkkpfve')
print(lat, lon) # (70.2995, -27.9993)
# Find neighboring cells
neighbours = geohash.neighbours('gcpuyph')
print(neighbours.ne) # 'gcpuypm'
Verify before relying
- Whether the package works reliably on Python versions released after 2019 or if modern dependency versions introduce incompatibilities.
- Whether the port from Chris Veness' JavaScript implementation has been validated against the original for edge cases or precision issues.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefuture |
| Maintenance | Abandoned 2,659 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 139,113 / month, #11,308 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Scientific/Engineering :: GISTopic :: Software Development :: Libraries :: Python Modules |
Evidence: geolib-1.0.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “geohash neighbors adjacent”
- geolibEncodes and decodes geographic coordinates as geohashes, and computes…
- pygeohashEncodes latitude/longitude coordinates to geohash strings and decodes…
- geohash2Encodes latitude/longitude coordinates to geohashes and decodes…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also geohash2 · python-geohash · pygeohash · py-geohex3 · s2sphere · polyline · h3 · reverse-geocode · reverse_geocoder · pgeocode