{
  "x402Version": 2,
  "id": 36309,
  "slug": "36309",
  "resource": "https://api.duoleads.com/v1/geo/pluscode",
  "description": "Encode coordinates as an Open Location Code (plus code) at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Returns code length, precision in metres and validity.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "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"
              },
              "center": {
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lon"
                ],
                "type": "object"
              },
              "code": {
                "type": "string"
              },
              "full_code": {
                "type": "string"
              },
              "is_full": {
                "type": "boolean"
              },
              "is_short": {
                "type": "boolean"
              },
              "length": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "precision_m": {
                "type": "number"
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "valid": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "length",
              "is_full",
              "is_short",
              "valid"
            ],
            "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/pluscode"
          },
          "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"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "bbox": {
                "max_lat": 52.372875,
                "max_lon": 4.893625,
                "min_lat": 52.37275,
                "min_lon": 4.8935
              },
              "center": {
                "lat": 52.3728125,
                "lon": 4.8935625
              },
              "code": "9F469VFV+4C",
              "is_full": true,
              "is_short": false,
              "length": 10,
              "precision_m": 13.9,
              "reason": null,
              "valid": true
            },
            "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/pluscode",
            "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": {
                  "code": {
                    "description": "Plus code for decode, shorten or recover.",
                    "maxLength": 20,
                    "type": "string"
                  },
                  "lat": {
                    "description": "Latitude for op=encode.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "length": {
                    "default": "10",
                    "description": "Integer code length for op=encode: one of 2,4,6,8,10 (default),11,12,13,14,15. Other integers in 2-15 are 400 UNSUPPORTED_VALUE.",
                    "maxLength": 64,
                    "pattern": "^[+-]?\\d+$",
                    "type": "string"
                  },
                  "lon": {
                    "description": "Longitude for op=encode.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "op": {
                    "default": "encode",
                    "description": "encode (default), decode, shorten or recover.",
                    "enum": [
                      "encode",
                      "decode",
                      "shorten",
                      "recover"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "ref_lat": {
                    "description": "Reference latitude for op=shorten/recover.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "ref_lon": {
                    "description": "Reference longitude for op=shorten/recover.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\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"
                      },
                      "center": {
                        "properties": {
                          "lat": {
                            "type": "number"
                          },
                          "lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "type": "object"
                      },
                      "code": {
                        "type": "string"
                      },
                      "full_code": {
                        "type": "string"
                      },
                      "is_full": {
                        "type": "boolean"
                      },
                      "is_short": {
                        "type": "boolean"
                      },
                      "length": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "precision_m": {
                        "type": "number"
                      },
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "valid": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "code",
                      "length",
                      "is_full",
                      "is_short",
                      "valid"
                    ],
                    "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/pluscode"
                  },
                  "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",
    "pluscode",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:52:31.963Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:52:31.809Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "lat": "52.3728",
              "lon": "4.8936"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "bbox": {
                  "max_lat": 52.372875,
                  "max_lon": 4.893625,
                  "min_lat": 52.37275,
                  "min_lon": 4.8935
                },
                "center": {
                  "lat": 52.3728125,
                  "lon": 4.8935625
                },
                "code": "9F469VFV+4C",
                "is_full": true,
                "is_short": false,
                "length": 10,
                "precision_m": 13.9,
                "reason": null,
                "valid": true
              },
              "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/pluscode",
              "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": {
                    "code": {
                      "description": "Plus code for decode, shorten or recover.",
                      "maxLength": 20,
                      "type": "string"
                    },
                    "lat": {
                      "description": "Latitude for op=encode.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "length": {
                      "default": "10",
                      "description": "Integer code length for op=encode: one of 2,4,6,8,10 (default),11,12,13,14,15. Other integers in 2-15 are 400 UNSUPPORTED_VALUE.",
                      "maxLength": 64,
                      "pattern": "^[+-]?\\d+$",
                      "type": "string"
                    },
                    "lon": {
                      "description": "Longitude for op=encode.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "op": {
                      "default": "encode",
                      "description": "encode (default), decode, shorten or recover.",
                      "enum": [
                        "encode",
                        "decode",
                        "shorten",
                        "recover"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "ref_lat": {
                      "description": "Reference latitude for op=shorten/recover.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "ref_lon": {
                      "description": "Reference longitude for op=shorten/recover.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\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"
                        },
                        "center": {
                          "properties": {
                            "lat": {
                              "type": "number"
                            },
                            "lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "type": "object"
                        },
                        "code": {
                          "type": "string"
                        },
                        "full_code": {
                          "type": "string"
                        },
                        "is_full": {
                          "type": "boolean"
                        },
                        "is_short": {
                          "type": "boolean"
                        },
                        "length": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "precision_m": {
                          "type": "number"
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "valid": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "code",
                        "length",
                        "is_full",
                        "is_short",
                        "valid"
                      ],
                      "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/pluscode"
                    },
                    "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
        },
        "center": {
          "lat": 0,
          "lon": 0
        },
        "code": "string",
        "full_code": "string",
        "is_full": true,
        "is_short": true,
        "length": 0,
        "precision_m": 0,
        "reason": "string",
        "valid": true
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}