{"uid":"cap_YflIIO9k8PXadTvQXi0bn","slug":"geohash-encode-with-bounding-box-and-neighbors-19e6fea1","name":"Geohash Encode with Bounding Box and Neighbors","description":"Encode a coordinate to a geohash and return its bounding box and 8 neighbors.","url":"https://geospatial.openverbs.com/v1/geohash","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude."},"lon":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude."},"precision":{"type":"integer","maximum":12,"minimum":1,"description":"Geohash length. Defaults to 9."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lVr4Yd4G-RSZYekDn4VoM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 and returns its bounding box and 8 surrounding neighbor geohashes.","exampleAgentPrompt":"Encode the coordinates 40.4462, -79.9822 into a geohash with precision 7, and give me the bounding box and all 8 neighboring geohash cells.","exampleUseCases":[{"title":"Proximity search grid for delivery app","prompt":"I need to group nearby restaurant locations together — encode the coordinate 37.7749, -122.4194 into a geohash at precision 6 and give me its bounding box and all 8 neighbors so I can search adjacent cells too."},{"title":"Geofencing cell boundary lookup","prompt":"What's the geohash for latitude 51.5074, longitude -0.1278 at precision 8, and what are its exact geographic boundaries and neighboring cells?"},{"title":"Map tile spatial indexing","prompt":"Convert my drone's current position at lat 48.8566, lon 2.3522 to a geohash at precision 9 so I can index it spatially, and also tell me the neighbor hashes I'd need to check for overlap."}],"resultDescription":"Returns the geohash string for the given coordinate at the specified precision, along with the geographic bounding box (west, south, east, north in decimal degrees) of that geohash cell, and the 8 neighboring geohash strings (N, NE, E, SE, S, SW, W, NW).","failureModes":["Latitude out of range [-90, 90] returns validation error","Longitude out of range [-180, 180] returns validation error","Precision outside [1, 12] returns validation error","Missing required lat or lon fields returns 400 bad request","Payment failure or insufficient USDC balance returns 402"],"whenToPreferThis":"Use this endpoint when you need to encode a single coordinate into a geohash AND simultaneously retrieve its bounding box and neighbor cells in one call — ideal for proximity search, spatial indexing, or geofencing workflows that require adjacent cell awareness without chaining multiple API calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:00.638Z","isFirstParty":false}