← Back to directory

Geohash encoder and decoder with neighbour cells

https://api.duoleads.com/v1/geo/geohash

Overview

Geohash encoder and decoder: encode a WGS-84 latitude and longitude to a geohash at a chosen precision, or decode a geohash back to its bounding box, centre point and error bounds in metres. Encoding also returns the eight neighbouring cells, which is what a caller needs to do proximity search over a geohash-indexed store without a spatial database.

Protocol x402
Price $0.05
Payment Asset USD Coin
Payment Network eip155:8453
Category data/location
Provider duoleads
Source bazaar
Indexed 2026-09-29 00:13:45

Health

Status healthy
Latency (p50) 632ms
Uptime (30d) 97.0%
Reliability Score 88.5/100
Last Checked 2026-10-31 07:02:25
Last Healthy 2026-10-31 07:02:25
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "lat": "52.3728", "lon": "4.8936", "op": "encode", "precision": "9" }, "type": "http" }

Output Schema

{ "example": { "data": { "bbox": { "max_lat": 52.37281322479248, "max_lon": 4.893636703491211, "min_lat": 52.37277030944824, "min_lon": 4.893593788146973 }, "center": { "lat": 52.37279176712036, "lon": 4.893615245819092 }, "error_m": { "lat": 2.39, "lon": 1.46 }, "geohash": "u173zq5mt", "neighbours": { "e": "u173zq5mw", "n": "u173zq5mv", "ne": "u173zq5my", "nw": "u173zq5mu", "s": "u173zq5mm", "se": "u173zq5mq", "sw": "u173zq5mk", "w": "u173zq5ms" }, "precision": 9 }, "meta": { "computed_at": "2026-09-28T12:00:00.000Z", "deterministic": true, "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms", "price_usd": "0.05", "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D" }, "ok": true, "route": "/v1/geo/geohash", "version": "1.0.0" }, "type": "json" }