{
  "x402Version": 2,
  "id": 36307,
  "slug": "36307",
  "resource": "https://api.duoleads.com/v1/geo/distance",
  "description": "Distance and direction between WGS-84 coordinates: geodesic distance by Vincenty with a haversine fallback, initial and final bearing, the midpoint, and the destination point reached from a start point on a given bearing and distance. Also computes the cumulative length of a supplied coordinate path. Results in metres, kilometres, nautical miles and miles.",
  "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": {
              "bearing_final": {
                "type": "number"
              },
              "bearing_initial": {
                "type": "number"
              },
              "converged": {
                "type": "boolean"
              },
              "destination": {
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lon"
                ],
                "type": "object"
              },
              "distance": {
                "properties": {
                  "km": {
                    "type": "number"
                  },
                  "m": {
                    "type": "number"
                  },
                  "mi": {
                    "type": "number"
                  },
                  "nmi": {
                    "type": "number"
                  }
                },
                "required": [
                  "m",
                  "km",
                  "nmi",
                  "mi"
                ],
                "type": "object"
              },
              "legs": {
                "type": "integer"
              },
              "method": {
                "type": "string"
              },
              "midpoint": {
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lon": {
                    "type": "number"
                  }
                },
                "required": [
                  "lat",
                  "lon"
                ],
                "type": "object"
              },
              "points": {
                "type": "integer"
              }
            },
            "required": [
              "method",
              "converged"
            ],
            "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/distance"
          },
          "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": {
            "lat1": "52.3728",
            "lat2": "40.7128",
            "lon1": "4.8936",
            "lon2": "-74.0060"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "bearing_final": 228.8713,
              "bearing_initial": 290.8461,
              "converged": true,
              "distance": {
                "km": 5878.232354,
                "m": 5878232.354,
                "mi": 3652.564246,
                "nmi": 3173.991552
              },
              "method": "vincenty",
              "midpoint": {
                "lat": 53.7242681,
                "lon": -39.60892324
              }
            },
            "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/distance",
            "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": {
                  "bearing": {
                    "description": "Initial bearing in degrees for op=destination.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "distance_m": {
                    "description": "Distance in metres for op=destination, 0 to 1e9 (about 25 Earth circumferences); larger values are 400 INVALID_PARAM.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "lat1": {
                    "description": "Start latitude.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "lat2": {
                    "description": "End latitude.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "lon1": {
                    "description": "Start longitude.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "lon2": {
                    "description": "End longitude.",
                    "maxLength": 64,
                    "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                    "type": "string"
                  },
                  "method": {
                    "default": "vincenty",
                    "description": "vincenty (default, WGS-84) or haversine.",
                    "enum": [
                      "vincenty",
                      "haversine"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "op": {
                    "default": "distance",
                    "description": "distance (default), destination, midpoint or path.",
                    "enum": [
                      "distance",
                      "destination",
                      "midpoint",
                      "path"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "path": {
                    "description": "Comma-separated lat,lon pairs for op=path, at most 200 points.",
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "bearing_final": {
                        "type": "number"
                      },
                      "bearing_initial": {
                        "type": "number"
                      },
                      "converged": {
                        "type": "boolean"
                      },
                      "destination": {
                        "properties": {
                          "lat": {
                            "type": "number"
                          },
                          "lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "type": "object"
                      },
                      "distance": {
                        "properties": {
                          "km": {
                            "type": "number"
                          },
                          "m": {
                            "type": "number"
                          },
                          "mi": {
                            "type": "number"
                          },
                          "nmi": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "m",
                          "km",
                          "nmi",
                          "mi"
                        ],
                        "type": "object"
                      },
                      "legs": {
                        "type": "integer"
                      },
                      "method": {
                        "type": "string"
                      },
                      "midpoint": {
                        "properties": {
                          "lat": {
                            "type": "number"
                          },
                          "lon": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "type": "object"
                      },
                      "points": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "method",
                      "converged"
                    ],
                    "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/distance"
                  },
                  "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",
    "geodesy",
    "distance",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:52:43.578Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:52:43.46Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "lat1": "52.3728",
              "lat2": "40.7128",
              "lon1": "4.8936",
              "lon2": "-74.0060"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "bearing_final": 228.8713,
                "bearing_initial": 290.8461,
                "converged": true,
                "distance": {
                  "km": 5878.232354,
                  "m": 5878232.354,
                  "mi": 3652.564246,
                  "nmi": 3173.991552
                },
                "method": "vincenty",
                "midpoint": {
                  "lat": 53.7242681,
                  "lon": -39.60892324
                }
              },
              "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/distance",
              "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": {
                    "bearing": {
                      "description": "Initial bearing in degrees for op=destination.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "distance_m": {
                      "description": "Distance in metres for op=destination, 0 to 1e9 (about 25 Earth circumferences); larger values are 400 INVALID_PARAM.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "lat1": {
                      "description": "Start latitude.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "lat2": {
                      "description": "End latitude.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "lon1": {
                      "description": "Start longitude.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "lon2": {
                      "description": "End longitude.",
                      "maxLength": 64,
                      "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                      "type": "string"
                    },
                    "method": {
                      "default": "vincenty",
                      "description": "vincenty (default, WGS-84) or haversine.",
                      "enum": [
                        "vincenty",
                        "haversine"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "op": {
                      "default": "distance",
                      "description": "distance (default), destination, midpoint or path.",
                      "enum": [
                        "distance",
                        "destination",
                        "midpoint",
                        "path"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "path": {
                      "description": "Comma-separated lat,lon pairs for op=path, at most 200 points.",
                      "maxLength": 2048,
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "bearing_final": {
                          "type": "number"
                        },
                        "bearing_initial": {
                          "type": "number"
                        },
                        "converged": {
                          "type": "boolean"
                        },
                        "destination": {
                          "properties": {
                            "lat": {
                              "type": "number"
                            },
                            "lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "type": "object"
                        },
                        "distance": {
                          "properties": {
                            "km": {
                              "type": "number"
                            },
                            "m": {
                              "type": "number"
                            },
                            "mi": {
                              "type": "number"
                            },
                            "nmi": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "m",
                            "km",
                            "nmi",
                            "mi"
                          ],
                          "type": "object"
                        },
                        "legs": {
                          "type": "integer"
                        },
                        "method": {
                          "type": "string"
                        },
                        "midpoint": {
                          "properties": {
                            "lat": {
                              "type": "number"
                            },
                            "lon": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "type": "object"
                        },
                        "points": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "method",
                        "converged"
                      ],
                      "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/distance"
                    },
                    "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": {
        "bearing_final": 0,
        "bearing_initial": 0,
        "converged": true,
        "destination": {
          "lat": 0,
          "lon": 0
        },
        "distance": {
          "km": 0,
          "m": 0,
          "mi": 0,
          "nmi": 0
        },
        "legs": 0,
        "method": "string",
        "midpoint": {
          "lat": 0,
          "lon": 0
        },
        "points": 0
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}