{
  "id": "coordinates-distance-api",
  "slug": "coordinates-distance-api",
  "name": "Coordinates & Distance API",
  "provider": {
    "slug": "apistead-labs",
    "name": "APIStead Labs",
    "verified": true
  },
  "category": "Weather & Geospatial",
  "tagline": "Distance, midpoint and bearing between coordinates.",
  "description": "Great-circle distance, midpoint and initial bearing for any two WGS84 coordinates. Deterministic JSON, no external dependency.",
  "agent_summary": "Calculate great-circle distance, midpoint and bearing between two coordinate pairs.",
  "scope": "Straight-line geometry only. Does not route, account for roads, traffic, elevation or travel time.",
  "intent_phrases": [
    "calculate distance between coordinates",
    "find the midpoint between two points",
    "get bearing between two locations",
    "measure a straight-line distance"
  ],
  "faqs": [],
  "code_examples": [],
  "price": {
    "min_usdc": 0.001,
    "max_usdc": 0.001,
    "unit": "per_call"
  },
  "payment": {
    "protocol": "x402",
    "protocol_version": 2,
    "network": "eip155:8453",
    "network_name": "Base",
    "asset": "USDC",
    "price_min_usdc": 0.001,
    "price_max_usdc": 0.001,
    "unit": "per_call",
    "pay_to": "0x2E9804240E493DD8daeBa4F341a5086b92cde235",
    "authoritative_source": "402_challenge"
  },
  "networks": [
    "base"
  ],
  "primary_network": "base",
  "verification": "verified",
  "verification_detail": {
    "state": "verified",
    "verified_routes": 1,
    "total_routes": 1,
    "last_verified_at": "2026-11-13T13:52:15.489Z",
    "receipt_url": "https://basescan.org/tx/0x890aa1ed1cc3531c8e2d69a6f1d74acc3473a2db6dadc1665027c78037ea7164"
  },
  "verified_routes": 1,
  "total_routes": 1,
  "reliability": {
    "score": 87,
    "band": "caution",
    "uptime30d": 86.87,
    "lastCheckedAt": "2026-11-14T03:35:09.912Z"
  },
  "last_verified_at": "2026-11-13T13:52:15.489Z",
  "receipt_url": "https://basescan.org/tx/0x890aa1ed1cc3531c8e2d69a6f1d74acc3473a2db6dadc1665027c78037ea7164",
  "base_url": "https://apistead.qd.je/api/v1",
  "mcp_endpoint": "https://apistead.qd.je/mcp",
  "docs_url": "https://apistead.qd.je/api",
  "tags": [
    "coordinates",
    "distance",
    "bearing",
    "geospatial",
    "math"
  ],
  "use_cases": [
    "Calculate the distance between two coordinates",
    "Find a midpoint for a meeting or delivery",
    "Get an initial bearing for a route"
  ],
  "links": {
    "docs": "https://apistead.qd.je/api",
    "json": "https://x402.apistead.qd.je/api/apis/coordinates-distance-api",
    "markdown": "https://x402.apistead.qd.je/api/apis/coordinates-distance-api/md",
    "routes": "https://x402.apistead.qd.je/agent/routes?id=coordinates-distance-api",
    "receipts": "https://x402.apistead.qd.je/agent/receipts?id=coordinates-distance-api",
    "api_reference": "https://x402.apistead.qd.je/api",
    "mcp_guide": "https://x402.apistead.qd.je/mcp-docs",
    "skill": "https://x402.apistead.qd.je/skill",
    "openapi": "https://x402.apistead.qd.je/openapi.json"
  },
  "demo": true,
  "long_description": "Agents often need a straightforward geometric answer without a full mapping stack: how far apart are two points, what is the midpoint, what bearing should a route start on?\n\nThis API returns all three in one call, with kilometres, miles and nautical miles. It is pure math, so it is fast, cache-friendly and inexpensive to verify.",
  "provider_detail": {
    "slug": "apistead-labs",
    "name": "APIStead Labs",
    "description": "First-party data APIs built and verified by APIStead. US ZIP codes, IP intelligence, geocoding, weather, email and public records, all priced per call.",
    "website": "https://apistead.qd.je",
    "verified": true,
    "firstParty": true
  },
  "routes": [
    {
      "method": "GET",
      "path": "/distance?from={lat},{lon}&to={lat},{lon}",
      "url": "https://apistead.qd.je/api/v1/distance?from={lat},{lon}&to={lat},{lon}",
      "price_usdc": 0.001,
      "pay_to": "0x2E9804240E493DD8daeBa4F341a5086b92cde235",
      "description": "Great-circle distance, midpoint and initial bearing.",
      "example_request": "GET https://apistead.qd.je/api/v1/distance?from=51.5074,-0.1278&to=40.7128,-74.0060",
      "example_response": {
        "to": {
          "lat": 40.7128,
          "lon": -74.006
        },
        "from": {
          "lat": 51.5074,
          "lon": -0.1278
        },
        "midpoint": {
          "lat": 52,
          "lon": -37
        },
        "distance_km": 5570.2,
        "distance_miles": 3461.2,
        "initial_bearing_deg": 288.4,
        "distance_nautical_miles": 3007.7
      },
      "verified": true,
      "last_checked_at": "2026-11-14T03:35:09.593Z",
      "latency_ms": 4,
      "uptime_30d": 86.87
    }
  ],
  "changelog": [
    {
      "version": "1.0.0",
      "title": "Initial verified release",
      "body": "The route is live and settlement-verified on Base mainnet. Health checks, public receipts and agent-readable records are available.",
      "type": "release",
      "author": "APIStead Labs",
      "published_at": "2026-11-11T16:54:23.738Z"
    }
  ],
  "generated_at": "2026-11-14T03:53:12.051Z"
}