# SignalDesk AI Geometry Distance Calculator

> SignalDesk AI Geometry Distance Calculator is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Calculates the geodesic distance in meters between two geographic coordinates using a mean-radius sphere model

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/geometry/distance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-geometry-distance-calculator-8c6fd07d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0VI_Ubq3Www1qV8uaJXqx

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 signaldesk-ai-geometry-distance-calculator-8c6fd07d -d '<json body>'
```

Example prompt: What's the distance in meters between the coordinates 40.7128° N, 74.0060° W (New York City) and 34.0522° N, 118.2437° W (Los Angeles)?

## When to prefer this

Use this endpoint when you need a quick, accurate great-circle distance computation between two coordinate pairs and want a simple metered API with per-call micropayment pricing via x402. It is best suited for single point-pair distance lookups rather than bulk routing or multi-waypoint navigation. Prefer it over full mapping APIs when you only need raw distance (not routes, turn-by-turn directions, or place lookups).

## Known failure modes

- Missing or invalid lat/lon values outside -90 to 90 (lat) or -180 to 180 (lon) ranges return validation errors
- Payment failure or insufficient USDC balance may block the request under x402 protocol
- Malformed JSON body returns a parsing error
- Identical coordinates for both points return a distance of 0 meters (valid but may indicate a caller error)

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

A JSON object containing the model used for the calculation ('mean-radius sphere') and the computed distance between the two coordinate pairs expressed in meters as a floating-point number.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat1": {
   "type": "number",
   "maximum": 90,
   "minimum": -90,
   "description": "Latitude in decimal degrees."
  },
  "lat2": {
   "type": "number",
   "maximum": 90,
   "minimum": -90,
   "description": "Latitude in decimal degrees."
  },
  "lon1": {
   "type": "number",
   "maximum": 180,
   "minimum": -180,
   "description": "Longitude in decimal degrees."
  },
  "lon2": {
   "type": "number",
   "maximum": 180,
   "minimum": -180,
   "description": "Longitude in decimal degrees."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "mean-radius sphere",
  "meters": 30985.19707864199
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-geometry-distance-calculator-8c6fd07d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
