{"uid":"cap_JWWyjtuxst7pMgqqEWHmI","slug":"coco-geohash-tool-b35e42d4","name":"CoCo Geohash Tool","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/geohash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"lat":{"type":"string"},"lon":{"type":"string"},"hash":{"type":"string"},"precision":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","anyOf":[{"required":["geohash"]},{"required":["lat"]}]}}}}},"responseSchema":{"type":"json","example":{"geohash":"9q8yy"},"exampleNote":"Illustrative response subset; not a live observation."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8TeTB9f1TcMwEVshMwCAw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts latitude/longitude coordinates to a geohash string, or decodes a geohash back to coordinates","exampleAgentPrompt":"Can you convert latitude 37.7749 and longitude -122.4194 to a geohash with precision 5?","exampleUseCases":[{"title":"Encode coordinates for spatial indexing","prompt":"I have a point at latitude 40.7128 and longitude -74.0060 — can you encode that as a geohash with precision 6 for me?"},{"title":"Decode geohash to coordinates","prompt":"I have the geohash '9q8yy' and I need to know what latitude and longitude that corresponds to."},{"title":"Cluster nearby locations with geohash","prompt":"Turn lat 51.5074 and lon -0.1278 into a geohash at precision 4 so I can group it with nearby points in the same grid cell."}],"resultDescription":"Returns a JSON object containing either a 'geohash' string (when encoding lat/lon input) or 'lat' and 'lon' values (when decoding a geohash input). The geohash precision controls the granularity of the encoded location.","failureModes":["Missing required query parameters (lat/lon for encoding or hash for decoding) may return an error","Invalid or out-of-range latitude/longitude values could produce unexpected results","Invalid geohash string may fail to decode","Precision values outside valid range (1-12) may be rejected or clamped","Payment not provided or insufficient may result in 402 response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call geohash encode/decode operation without setting up a full geospatial library. Ideal for AI agents needing to index or cluster locations on the fly, compare proximity via geohash prefix matching, or convert between coordinate formats as part of a larger workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:20.897Z","isFirstParty":false,"canonicalSlug":"coco-geohash-tool-b35e42d4"}