# Geohash Spatial Proximity Clustering

> Encodes latitude and longitude into hierarchical alphanumeric Geohash strings for prefix-based spatial search. Use when implementing fast radius and proximity s

- Skill: `bishnucd/geohash-spatial-proximity-clustering` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/geohash-spatial-proximity-clustering`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/geohash-spatial-proximity-clustering/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/bishnucd/geohash-spatial-proximity-clustering

---

---
name: geohash-spatial-proximity-clustering
description: Encodes latitude and longitude into hierarchical alphanumeric Geohash strings for prefix-based spatial search. Use when implementing fast radius and proximity searches in NoSQL databases.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://en.wikipedia.org/wiki/Geohash"
---
# Geohash Spatial Proximity Clustering

## Overview
Geohash interleaves latitude and longitude bits into Base32 strings. Shared prefix characters represent geographic proximity, allowing fast bounding-box searches using string prefix queries.

## Operational Workflow

1. **Encode lat/lon coordinates into 6-8 character Geohash string (e.g. 9q8yyk8).**:
   - Encode lat/lon coordinates into 6-8 character Geohash string (e.g. 9q8yyk8).

2. **Calculate the 8 neighboring geohash cells to handle border edge boundary issues.**:
   - Calculate the 8 neighboring geohash cells to handle border edge boundary issues.

3. **Execute database string prefix queries (e.g. WHERE geohash LIKE "9q8yy%") in DynamoDB/MongoDB.**:
   - Execute database string prefix queries (e.g. WHERE geohash LIKE "9q8yy%") in DynamoDB/MongoDB.

4. **Filter candidate results using exact Haversine distance calculations.**:
   - Filter candidate results using exact Haversine distance calculations.

## Recommended Tools & Environments
- Geohash
- Base32
- Redis / DynamoDB
- Python / JavaScript

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

