$npx skillfedfor your agent

geolib

A library for geohash encoding, decoding and associated functions

With conditionsPyPI Python ModulesReleased May 2019139.1K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — geolib-1.0.7-py3-none-any.whl
v1.0.7 · released 2019-05-04 · Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* · 1 runtime deps: future

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

Licensepermissive license permissive
Python supportSupports the current Python release >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
future
MaintenanceAbandoned 2,659 days since the last release
Last repo commit
First released
Downloads139,113 / month, #11,308 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
geohash encoding decodinggeographic coordinate hashingspatial grid cellslatitude longitude to geohashgeohash neighbors adjacentgeo spatial indexinglocation proximity queries
Topics
geospatialspatial-indexingabandoned

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also geohash2 · python-geohash · pygeohash · py-geohex3 · s2sphere · polyline · h3 · reverse-geocode · reverse_geocoder · pgeocode