# Geo Calc Geohash Neighbors

> Geo Calc Geohash Neighbors is a paid API for AI agents from geo-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns the eight adjacent geohash cells (N, NE, E, SE, S, SW, W, NW) for a given geohash, wrapping correctly at 180 degrees longitude.

## Facts

- Endpoint: GET https://geo-calc.x402tookit.com/geohash-neighbors?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geo-calc-geohash-neighbors-4f627c84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vFLCyKnRAWxxVamYFRp5i

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 geo-calc-geohash-neighbors-4f627c84
```

Example prompt: What are all eight neighboring geohash cells surrounding the geohash 'u4pruydqqvj'? I need the N, NE, E, SE, S, SW, W, and NW adjacent tiles.

## When to prefer this

Choose this endpoint when you need to enumerate all eight adjacent geohash cells around a known geohash — particularly for proximity search expansion, map tile preloading, or spatial indexing workflows. It correctly handles longitude wrapping at 180 degrees, making it more reliable than naive neighbor arithmetic near the antimeridian. Use it over manual neighbor computation to avoid edge-case bugs near poles or the dateline.

## Known failure modes

- Missing or empty geohash parameter returns a validation error
- Geohash longer than 12 characters or containing invalid characters is rejected
- Network timeout if the service is temporarily unavailable
- Degraded response with missingDirections if neighbor computation partially fails near poles or antimeridian edge cases

## How this service works

The eight adjacent geohash cells (N, NE, E, SE, S, SW, W, NW) for a geohash, wrapping at 180 degrees longitude.

## Output

Returns an object with the input geohash and a neighbors map containing eight keys (n, ne, e, se, s, sw, w, nw) each holding the corresponding adjacent geohash string. Also includes validity flags, source info, and any warnings about missing directions or degraded results.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "geohash"
     ],
     "properties": {
      "geohash": {
       "type": "string",
       "description": "Geohash, 1 to 12 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "valid": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "geohash": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "neighbors": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "e": {
         "type": [
          "null",
          "string"
         ]
        },
        "n": {
         "type": [
          "null",
          "string"
         ]
        },
        "s": {
         "type": [
          "null",
          "string"
         ]
        },
        "w": {
         "type": [
          "null",
          "string"
         ]
        },
        "ne": {
         "type": [
          "null",
          "string"
         ]
        },
        "nw": {
         "type": [
          "null",
          "string"
         ]
        },
        "se": {
         "type": [
          "null",
          "string"
         ]
        },
        "sw": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "disclaimer": {
       "type": [
        "null
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geo-calc-geohash-neighbors-4f627c84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geo-calc.x402tookit.com](https://www.zero.xyz/host/geo-calc.x402tookit.com/llms.txt)
