ToolAssay

Distance and direction between WGS-84 coordinates

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.

Answeringour last check, 2026-09-29
1 of 1checks answered this week
20 msmedian answer time
$0.05listed price per call
$0.05price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://api.duoleads.com/v1/geo/distance

CategoryEverything else
Provider hostapi.duoleads.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-29 valid payment request 402$0.05 20 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "lat1": "52.3728",
    "lat2": "40.7128",
    "lon1": "4.8936",
    "lon2": "-74.0060"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$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.",
              "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": {
              "type": "object"
            },
            "meta": {
              "properties": {
                "computed_at": {
                  "type": "string"
                },
                "deterministic": {
                  "type": "boolean"
                },
                "disclaimer": {
                  "type": "string"
                },
                "price_usd": {
                  "type": "string"
                },
                "request_id": {
                  "type": "string"
                },
                "sources": {
                  "type": "array"
                }
              },
              "required": [
                "request_id",
                "computed_at",
                "price_usd",
                "deterministic",
                "disclaimer"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "route": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "ok",
            "route",
            "version",
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON