# fittings.sh Geo Distance

> fittings.sh Geo Distance is a paid API for AI agents from fittings.sh, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns the geodesic distance in meters and initial bearing in degrees between two WGS-84 coordinate pairs.

## Facts

- Endpoint: GET https://fittings.sh/v1/geo/distance
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-sh-geo-distance-878d3599
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dOlw3EgcJ3O5IEC-FM68S

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 fittings-sh-geo-distance-878d3599
```

Example prompt: How far apart are the coordinates 40.7128, -74.0060 (New York City) and 51.5074, -0.1278 (London), and what's the initial bearing I'd need to travel from New York to London?

## When to prefer this

Choose this endpoint when you need a quick, low-cost geodesic distance and initial bearing between two coordinate pairs without the overhead of a full routing or mapping API. It is ideal for straight-line (crow-flies) distance calculations using WGS-84 coordinates and does not require map data, road networks, or additional geospatial context. Prefer it over geocoding endpoints (which resolve addresses to coordinates) or routing APIs (which compute road-based distances and turn-by-turn directions).

## Known failure modes

- Missing required query parameters (fromLat, fromLon, toLat, toLon) returns a 400 error
- Coordinates outside valid WGS-84 range (lat ±90, lon ±180) may return an error or unexpected result
- Payment not provided or insufficient USDC causes a 402 Payment Required response
- Network timeout if the service is temporarily unavailable

## How this service works

Distance in meters and initial bearing in degrees between two WGS-84 coordinate pairs.

## Output

Returns the great-circle (geodesic) distance in meters between the two WGS-84 coordinate pairs, along with the initial bearing in degrees (0–360) measured clockwise from north at the origin point toward the destination.

## 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": [
      "fromLat",
      "fromLon",
      "toLat",
      "toLon"
     ],
     "properties": {
      "toLat": {
       "type": "number"
      },
      "toLon": {
       "type": "number"
      },
      "fromLat": {
       "type": "number"
      },
      "fromLon": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-sh-geo-distance-878d3599/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
