# OmniAPI Geo Distance Calculator

> OmniAPI Geo Distance Calculator is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.077813/call, status unknown (last checked 2026-09-16).

Calculates the geographic distance between two locations via a paid per-call API using USDC via x402

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/geo/distance
- Price: $0.077813/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-geo-distance-calculator-0346074e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W4Cede1-UZpPj899x7jDI

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 omniapi-geo-distance-calculator-0346074e -d '<json body>'
```

Example prompt: What is the geographic distance between Chicago and Miami? I need the result in kilometers.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call geographic distance computation without needing to set up a full mapping SDK or API subscription. It is well-suited for agents that occasionally need distance lookups and prefer micropayment-based access via USDC over recurring API key billing. Prefer alternatives (e.g. Google Maps Distance Matrix, OpenRouteService) if you need driving distance, turn-by-turn routing, or high-volume batch processing.

## Known failure modes

- Missing or malformed 'query' field returns a 400 validation error
- Ambiguous or unrecognizable location names may return no result or an error
- Payment failure via x402 (insufficient USDC balance or facilitator issue) results in 402 Payment Required
- Network timeout on the Vercel deployment may return a 504 or 500 error
- Poorly structured params object may cause unexpected computation results

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a computed geographic distance value between the two specified locations, likely including the distance magnitude and unit (e.g. kilometers or miles), based on the query input provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-geo-distance-calculator-0346074e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
