{"uid":"cap_AuEimH7CgJYCNZMlUwNBI","slug":"fastx402-geohash-encoder-decoder-38679a20","name":"FastX402 Geohash Encoder/Decoder","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/geohash?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":[],"properties":{"lat":{"type":"string","description":"Latitude, to encode"},"lon":{"type":"string","description":"Longitude, to encode"},"geohash":{"type":"string","description":"Geohash to decode"},"precision":{"type":"string","description":"Geohash length 1-12 (default 9)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"bbox":{"type":"object","properties":{"max_lat":{"type":"number"},"max_lon":{"type":"number"},"min_lat":{"type":"number"},"min_lon":{"type":"number"}}},"geohash":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"lat":41.00853,"lon":28.9785,"bbox":{"max_lat":41.009216,"max_lon":28.979187,"min_lat":41.007843,"min_lon":28.977814},"geohash":"sxk973m"}},"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__nUezZSekKvAypHhknsHG","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 latitude/longitude coordinates into a geohash string or decodes a geohash back into coordinates and bounding box","exampleAgentPrompt":"Convert the coordinates 41.00853, 28.9785 to a geohash with precision 7.","exampleUseCases":[{"title":"Encode location for proximity search","prompt":"I have a location at latitude 40.7128, longitude -74.0060 — can you encode it as a geohash with precision 8 so I can use it for proximity indexing?"},{"title":"Decode geohash to map coordinates","prompt":"I have the geohash 'sxk973m' — what latitude, longitude, and bounding box does it correspond to?"},{"title":"Normalize GPS data for storage","prompt":"Convert these GPS coordinates — lat 48.8566, lon 2.3522 — to a geohash at precision 9 so I can store Paris as a compact location key."}],"resultDescription":"Returns a JSON object with the decoded or encoded result: a geohash string, the center latitude and longitude as numbers, and a bounding box with min/max lat and lon values defining the rectangular cell the geohash represents.","failureModes":["Missing both lat/lon and geohash — returns error because neither encode nor decode operation can be performed","Precision out of range (not 1–12) — may return error or use default","Invalid geohash characters — decode will fail with an error response","Payment not included or insufficient — returns HTTP 402 requiring USDC payment via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call geohash encode/decode operation with no account setup. Ideal for AI agents needing on-demand coordinate-to-geohash conversion in geospatial pipelines, proximity matching, or location indexing workflows without maintaining API credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:38:38.770Z","isFirstParty":false,"canonicalSlug":"fastx402-geohash-encoder-decoder-38679a20"}