# Geohash Encode with Bounding Box and Neighbors

> Geohash Encode with Bounding Box and Neighbors is a paid API for AI agents from geospatial.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Encodes a latitude/longitude coordinate into a geohash string and returns its bounding box and 8 surrounding neighbor geohashes.

## Facts

- Endpoint: POST https://geospatial.openverbs.com/v1/geohash
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geohash-encode-with-bounding-box-and-neighbors-19e6fea1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YflIIO9k8PXadTvQXi0bn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability geohash-encode-with-bounding-box-and-neighbors-19e6fea1 -d '<json body>'
```

Example prompt: Encode the coordinates 40.4462, -79.9822 into a geohash with precision 7, and give me the bounding box and all 8 neighboring geohash cells.

## When to prefer this

Use this endpoint when you need to encode a single coordinate into a geohash AND simultaneously retrieve its bounding box and neighbor cells in one call — ideal for proximity search, spatial indexing, or geofencing workflows that require adjacent cell awareness without chaining multiple API calls.

## Known failure modes

- Latitude out of range [-90, 90] returns validation error
- Longitude out of range [-180, 180] returns validation error
- Precision outside [1, 12] returns validation error
- Missing required lat or lon fields returns 400 bad request
- Payment failure or insufficient USDC balance returns 402

## How this service works

Encode a coordinate to a geohash and return its bounding box and 8 neighbors.

## Output

Returns the geohash string for the given coordinate at the specified precision, along with the geographic bounding box (west, south, east, north in decimal degrees) of that geohash cell, and the 8 neighboring geohash strings (N, NE, E, SE, S, SW, W, NW).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude."
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude."
      },
      "precision": {
       "type": "integer",
       "maximum": 12,
       "minimum": 1,
       "description": "Geohash length. Defaults to 9."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geohash-encode-with-bounding-box-and-neighbors-19e6fea1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geospatial.openverbs.com](https://www.zero.xyz/host/geospatial.openverbs.com/llms.txt)
