# Saylor Innovations Route Distance Calculator

> Saylor Innovations Route Distance Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Calculates total and per-leg distances of a multi-stop route from ordered waypoints, returning km, miles, nautical miles, great-circle bearings, detour ratio, and estimated travel time

## Facts

- Endpoint: GET https://saylorinnovations.com/api/geo/route-distance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-route-distance-calculator-8e6277ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vcljoEEARF1vOOptXnl_k

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-route-distance-calculator-8e6277ad
```

Example prompt: Calculate the total route distance and estimated travel time for a trip through these four stops — 48.8566,2.3522; 51.5074,-0.1278; 52.3676,4.9041; 48.1351,11.5820 — assuming an average speed of 80 km/h, and give me the distance in km, miles, and nautical miles with the bearing for each leg.

## When to prefer this

Choose this endpoint when you need precise great-circle route calculations across multiple stops with per-leg breakdown, including bearings and detour ratios — particularly for navigation, logistics, sailing, or aviation contexts where nautical miles and bearing accuracy matter. Prefer this over simple point-to-point distance APIs when you have 2–50 ordered waypoints and want travel time estimates alongside multi-unit distance output.

## Known failure modes

- Missing or malformed waypoints parameter returns an error (fewer than 2 points or invalid lat/lon format)
- More than 50 waypoints may be rejected or cause unexpected behavior
- Invalid speed_kmh value (non-numeric) may cause travel time to be omitted
- Network timeout or server error returns a 5xx response
- Antipodal or polar coordinates may produce unexpected bearing values

## How this service works

Total distance of a multi-stop route from waypoints in km, miles and nautical miles, with each great-circle leg, bearing, detour ratio and travel time

## Output

A JSON object containing total route distance in km, miles, and nautical miles; a straight-line distance in km; a detour ratio; optional estimated travel time in hours; and an array of legs each with from/to labels, distance in km and miles, and initial bearing in degrees. Also includes waypoint count, data source attribution, and a contextual note.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "waypoints"
     ],
     "properties": {
      "speed_kmh": {
       "type": "string",
       "description": "optional average speed to estimate travel time"
      },
      "waypoints": {
       "type": "string",
       "description": "Stops in order, written lat,lon;lat,lon;... (2-50)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "total_km",
      "legs"
     ],
     "properties": {
      "legs": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "km": {
          "type": [
           "number",
           "null"
          ],
          "description": "Leg length in kilometres"
         },
         "to": {
          "description": "End of the range"
         },
         "from": {
          "description": "Start of the range"
         },
         "miles": {
          "type": [
           "number",
           "null"
          ],
          "description": "Leg length in miles"
         },
         "initial_bearing_deg": {
          "description": "Initial bearing, in degrees"
         }
        }
       },
       "description": "Each leg with from, to, distance in km and miles and initial bearing"
      },
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "total_km": {
       "type": "number",
       "description": "Total km"
      },
      "waypoints": {
       "type": "number",
       "description": "Number of waypoints"
      },
      "total_miles": {
       "type": "number",
       "description": "Total miles"
      },
      "detour_ratio": {
       "type": [
        "number",
        "null"
       ],
       "description": "Detour ratio"
      },
      "straight_
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-route-distance-calculator-8e6277ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
