{"uid":"cap_OLb5HTPLrjPUUCVZ7cSkv","slug":"geohash-encode-decode-3b37bbc6","name":"Geohash Encode/Decode","description":"Encodes a coordinate as geohash or decodes a geohash to its bounding box. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age. ","url":"https://geo.halowerk.com/v1/geohash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":""},"lon":{"type":"number","maximum":180,"minimum":-180,"description":""},"geohash":{"type":"string","maxLength":12,"minLength":1,"description":""},"operation":{"enum":["encode","decode"],"type":"string"},"precision":{"type":"integer","maximum":12,"minimum":1,"description":""}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d7Xl5kZZ4f-LITQIpF0HB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a WGS84 coordinate into a geohash string at a specified precision, or decodes a geohash string back to its bounding box.","exampleAgentPrompt":"Encode the coordinates 37.7749, -122.4194 as a geohash at precision 7, and tell me the resulting geohash string.","exampleUseCases":[{"title":"Geospatial proximity bucketing for POIs","prompt":"Take the restaurant location at 40.7128, -74.0060 and encode it as a geohash with precision 6 so I can group it with nearby places in my database."},{"title":"Decoding a stored geohash for map display","prompt":"I have a geohash code 'u4pruydqqvj' stored in my database — can you decode it to get the bounding box so I can display the area on a map?"},{"title":"Assigning delivery zones by geohash cells","prompt":"Encode the delivery drop-off point at latitude 51.5074, longitude -0.1278 as a geohash at precision 5 so I can match it to our regional delivery zone grid."}],"resultDescription":"For encode operations: the geohash string at the requested precision. For decode operations: the bounding box (min/max lat and lon) and center point of the geohash cell. Missing or unavailable fields are returned as null and listed in unavailable_fields. Derived values include method disclosures.","failureModes":["Missing required fields (lat/lon for encode, geohash for decode) return validation errors","Precision outside 1-12 range returns a schema validation error","Invalid geohash string characters cause decode to fail","Latitude outside -90 to 90 or longitude outside -180 to 180 returns a range error","Network or payment (x402) failure prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need deterministic, standards-compliant geohash encoding or decoding with explicit method transparency. Ideal for spatial indexing pipelines, proximity bucketing, or any workflow that must store or compare locations using the geohash standard. Prefer this over H3 or S2 endpoints (also available on geo.halowerk.com) when your downstream system specifically requires geohash format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:49.947Z","isFirstParty":false}