{"uid":"cap_DV7HL_8y0uQO0XNQDqDW4","slug":"geo-geohash-82f0e7e1","name":"geo-geohash","description":"Encode a lat/lon point into a geohash string (precision 1-12 characters).","url":"https://x402.agentindex.world/geo/geohash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","title":"Lat","maximum":90,"minimum":-90},"lon":{"type":"number","title":"Lon","maximum":180,"minimum":-180},"precision":{"type":"integer","title":"Precision","default":9,"maximum":12,"minimum":1}}},"responseSchema":{"type":"json","example":{"geohash":"u09tvw0g2"}},"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_jmQDCMErGgLTcED8tfu_i","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":"Encodes a latitude/longitude coordinate into a geohash string at a specified precision (1–12 characters).","exampleAgentPrompt":"Encode the coordinates 37.7749, -122.4194 (San Francisco) into a geohash string at precision 9.","exampleUseCases":[{"title":"Geospatial indexing for nearby search","prompt":"I need to index a list of store locations — can you encode the coordinates 40.7128, -74.0060 into a geohash at precision 7 so I can use it for proximity lookups?"},{"title":"Mapping tile cache key generation","prompt":"Convert the GPS point 51.5074, -0.1278 (London) to a geohash at precision 6 — I want to use it as a cache key for my map tile system."},{"title":"Location clustering by geohash prefix","prompt":"Take the lat/lon 35.6895, 139.6917 (Tokyo) and give me its geohash at precision 5 — I'm grouping nearby points by their shared geohash prefix."}],"resultDescription":"Returns a geohash string of the requested precision (1–12 characters) that encodes the given latitude and longitude into a compact alphanumeric representation suitable for proximity indexing, clustering, or storage.","failureModes":["Latitude out of range (-90 to 90) returns a validation error","Longitude out of range (-180 to 180) returns a validation error","Precision outside 1–12 range returns a validation error","Missing required lat or lon parameters returns a 422 or bad request error","Payment failure results in 402 response before computation"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, pay-per-call geohash encoding with no API key setup — ideal for agents that occasionally need to encode coordinates into geohash strings without maintaining a subscription or library dependency. Prefer it over rolling your own geohash logic when operating in a serverless or agent environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:20:44.929Z","isFirstParty":false,"canonicalSlug":"geo-geohash-82f0e7e1"}