{"uid":"cap_vFLCyKnRAWxxVamYFRp5i","slug":"geo-calc-geohash-neighbors-4f627c84","name":"Geo Calc Geohash Neighbors","description":"The eight adjacent geohash cells (N, NE, E, SE, S, SW, W, NW) for a geohash, wrapping at 180 degrees longitude.","url":"https://geo-calc.x402tookit.com/geohash-neighbors?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"missingDirections":{"type":["array","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aKTvvJmP1Dbxk57g6mixB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the eight adjacent geohash cells (N, NE, E, SE, S, SW, W, NW) for a given geohash, wrapping correctly at 180 degrees longitude.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Proximity search around a location","prompt":"I have the geohash 'gbsuv' for a point of interest — can you give me all its neighboring geohash cells so I can search for nearby items in those adjacent tiles too?"},{"title":"Map tile boundary expansion","prompt":"I'm building a map view centered on geohash 'ezs42' and need to preload the surrounding tiles. What are all 8 neighboring geohash cells for 'ezs42'?"},{"title":"Geofence neighbor detection near dateline","prompt":"I'm working with the geohash '8pbpbp' near the 180-degree longitude line — can you find all its adjacent geohash neighbors making sure longitude wrapping is handled correctly?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:49.790Z","isFirstParty":false,"canonicalSlug":"geo-calc-geohash-neighbors-4f627c84"}