{
  "x402Version": 2,
  "id": 36293,
  "slug": "36293",
  "resource": "https://api.duoleads.com/v1/geo/geohash",
  "description": "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.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791433856/bazaar-icons/16212cbac45fe9af.png",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "bbox": {
                "properties": {
                  "max_lat": {
                    "type": "number"
                  },
                  "max_lon": {
                    "type": "number"
                  },
                  "min_lat": {
                    "type": "number"
                  },
                  "min_lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "min_lat",
                  "min_lon",
                  "max_lat",
                  "max_lon"
                ],
                "type": "object"
              },
              "cell_height_m": {
                "type": "number"
              },
              "cell_width_m": {
                "type": "number"
              },
              "center": {
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lon"
                ],
                "type": "object"
              },
              "error_m": {
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lon"
                ],
                "type": "object"
              },
              "geohash": {
                "type": "string"
              },
              "neighbours": {
                "properties": {
                  "e": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "n": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ne": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "nw": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "s": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "se": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sw": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "w": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "n",
                  "ne",
                  "e",
                  "se",
                  "s",
                  "sw",
                  "w",
                  "nw"
                ],
                "type": "object"
              },
              "precision": {
                "type": "integer"
              }
            },
            "required": [
              "geohash",
              "precision",
              "bbox",
              "center",
              "error_m"
            ],
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/geo/geohash"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "lat": "52.3728",
            "lon": "4.8936",
            "op": "encode",
            "precision": "9"
          },
          "type": "http"
        },
        "output": {
          "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"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "geohash": {
                    "description": "Geohash to decode, 1-12 characters. Required when op=decode.",
                    "maxLength": 64,
                    "pattern": "^[0-9bcdefghjkmnpqrstuvwxyz]{1,12}$",
                    "type": "string"
                  },
                  "lat": {
                    "description": "WGS-84 latitude, -90 to 90. Required when op=encode.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "lon": {
                    "description": "WGS-84 longitude, -180 to 180. Required when op=encode.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "op": {
                    "default": "encode",
                    "description": "encode (default): lat/lon to geohash. decode: geohash to bounding box.",
                    "enum": [
                      "encode",
                      "decode"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "precision": {
                    "default": "9",
                    "description": "Geohash length 1-12, default 9 (about 4.8 m).",
                    "maxLength": 64,
                    "pattern": "^[+-]?\\d+$",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "bbox": {
                        "properties": {
                          "max_lat": {
                            "type": "number"
                          },
                          "max_lon": {
                            "type": "number"
                          },
                          "min_lat": {
                            "type": "number"
                          },
                          "min_lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "min_lat",
                          "min_lon",
                          "max_lat",
                          "max_lon"
                        ],
                        "type": "object"
                      },
                      "cell_height_m": {
                        "type": "number"
                      },
                      "cell_width_m": {
                        "type": "number"
                      },
                      "center": {
                        "properties": {
                          "lat": {
                            "type": "number"
                          },
                          "lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "type": "object"
                      },
                      "error_m": {
                        "properties": {
                          "lat": {
                            "type": "number"
                          },
                          "lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "type": "object"
                      },
                      "geohash": {
                        "type": "string"
                      },
                      "neighbours": {
                        "properties": {
                          "e": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "n": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "ne": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "nw": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "s": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "se": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sw": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "w": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "n",
                          "ne",
                          "e",
                          "se",
                          "s",
                          "sw",
                          "w",
                          "nw"
                        ],
                        "type": "object"
                      },
                      "precision": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "geohash",
                      "precision",
                      "bbox",
                      "center",
                      "error_m"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/geo/geohash"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "geo",
    "geohash",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-10T17:00:22.802Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-10T17:00:22.274Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791433856/bazaar-icons/16212cbac45fe9af.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "lat": "52.3728",
              "lon": "4.8936",
              "op": "encode",
              "precision": "9"
            },
            "type": "http"
          },
          "output": {
            "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"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "geohash": {
                      "description": "Geohash to decode, 1-12 characters. Required when op=decode.",
                      "maxLength": 64,
                      "pattern": "^[0-9bcdefghjkmnpqrstuvwxyz]{1,12}$",
                      "type": "string"
                    },
                    "lat": {
                      "description": "WGS-84 latitude, -90 to 90. Required when op=encode.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "lon": {
                      "description": "WGS-84 longitude, -180 to 180. Required when op=encode.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "op": {
                      "default": "encode",
                      "description": "encode (default): lat/lon to geohash. decode: geohash to bounding box.",
                      "enum": [
                        "encode",
                        "decode"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "precision": {
                      "default": "9",
                      "description": "Geohash length 1-12, default 9 (about 4.8 m).",
                      "maxLength": 64,
                      "pattern": "^[+-]?\\d+$",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "bbox": {
                          "properties": {
                            "max_lat": {
                              "type": "number"
                            },
                            "max_lon": {
                              "type": "number"
                            },
                            "min_lat": {
                              "type": "number"
                            },
                            "min_lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "min_lat",
                            "min_lon",
                            "max_lat",
                            "max_lon"
                          ],
                          "type": "object"
                        },
                        "cell_height_m": {
                          "type": "number"
                        },
                        "cell_width_m": {
                          "type": "number"
                        },
                        "center": {
                          "properties": {
                            "lat": {
                              "type": "number"
                            },
                            "lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "type": "object"
                        },
                        "error_m": {
                          "properties": {
                            "lat": {
                              "type": "number"
                            },
                            "lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "type": "object"
                        },
                        "geohash": {
                          "type": "string"
                        },
                        "neighbours": {
                          "properties": {
                            "e": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "n": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ne": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "nw": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "s": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "se": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sw": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "w": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "n",
                            "ne",
                            "e",
                            "se",
                            "s",
                            "sw",
                            "w",
                            "nw"
                          ],
                          "type": "object"
                        },
                        "precision": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "geohash",
                        "precision",
                        "bbox",
                        "center",
                        "error_m"
                      ],
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/geo/geohash"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "bbox": {
          "max_lat": 0,
          "max_lon": 0,
          "min_lat": 0,
          "min_lon": 0
        },
        "cell_height_m": 0,
        "cell_width_m": 0,
        "center": {
          "lat": 0,
          "lon": 0
        },
        "error_m": {
          "lat": 0,
          "lon": 0
        },
        "geohash": "string",
        "neighbours": {
          "e": "string",
          "n": "string",
          "ne": "string",
          "nw": "string",
          "s": "string",
          "se": "string",
          "sw": "string",
          "w": "string"
        },
        "precision": 0
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}