{"uid":"cap_HhUwXQEEoLwYOrmCeJKSY","slug":"geo-calc-geohash-encode-f94e1794","name":"Geo Calc – Geohash Encode","description":"Encode latitude/longitude as a geohash (1 to 12 characters) with the cell bounds, center and size in meters.","url":"https://geo-calc.x402tookit.com/geohash-encode?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":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude in degrees, -90 to 90"},"lon":{"type":"number","description":"Longitude in degrees, -180 to 180"},"precision":{"type":"integer","description":"Characters, 1 to 12 (default 9)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"bounds":{"type":["null","object"],"properties":{"east":{"type":["null","number"]},"west":{"type":["null","number"]},"north":{"type":["null","number"]},"south":{"type":["null","number"]}}},"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"]},"centerLat":{"type":["null","number"]},"centerLon":{"type":["null","number"]},"precision":{"type":["null","number"]},"cellWidthM":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"cellHeightM":{"type":["null","number"]},"latErrorDeg":{"type":["null","number"]},"lonErrorDeg":{"type":["null","number"]}}}}}}},"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_zaJ2BKzPQqNOFoH8EVR9h","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":"Encodes a latitude/longitude coordinate as a geohash string (1–12 characters) and returns the cell bounds, center point, and cell dimensions in meters.","exampleAgentPrompt":"Encode latitude 40.7128, longitude -74.0060 as a geohash with precision 9 and tell me the cell bounds and size in meters.","exampleUseCases":[{"title":"Indexing delivery zones by geohash","prompt":"Convert my warehouse location at latitude 51.5074, longitude -0.1278 to a geohash with precision 6 so I can group nearby delivery addresses into the same cell — give me the cell bounds and its width and height in meters."},{"title":"Proximity clustering for ride-share pickup points","prompt":"I have a pickup point at lat 37.7749, lon -122.4194 — encode it as a precision-7 geohash and give me the bounding box coordinates so I can bucket nearby drivers into the same grid cell."},{"title":"Logging sensor location as compact geohash","prompt":"My IoT sensor is at latitude -33.8688, longitude 151.2093 in Sydney — encode that as a 9-character geohash and tell me how big the cell is in meters so I know the accuracy."}],"resultDescription":"Returns the geohash string for the given coordinate at the requested precision, together with the cell's north/south/east/west bounds, the center latitude and longitude, cell width and height in meters, and the latitude/longitude error in degrees.","failureModes":["Latitude out of range (-90 to 90) returns an error","Longitude out of range (-180 to 180) returns an error","Precision value outside 1–12 returns an error","Missing required lat or lon parameters returns a 400-level error","Network or payment (x402) failure prevents the response"],"whenToPreferThis":"Use this endpoint when you need to convert a raw WGS84 coordinate into a compact geohash string for spatial indexing, proximity bucketing, or storage, and you also need the cell bounds and cell dimensions in meters. Prefer it over decode or neighbor endpoints when the starting point is a lat/lon pair rather than an existing geohash.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:28.523Z","isFirstParty":false,"canonicalSlug":"geo-calc-geohash-encode-f94e1794"}