# BizIntel Road Distance API

> BizIntel Road Distance API is a paid API for AI agents from bizintel-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Calculates the road driving distance and estimated travel duration between two geographic coordinates

## Facts

- Endpoint: POST https://bizintel-api.hahavoid0.workers.dev/geography/road-distance
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bizintel-road-distance-api-f4dc5de1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n4BNvhTdHI4D9DIB64myO

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 bizintel-road-distance-api-f4dc5de1 -d '<json body>'
```

Example prompt: What's the road driving distance and estimated travel time between San Francisco (37.7749, -122.4194) and Los Angeles (34.0522, -118.2437)?

## When to prefer this

Choose this endpoint when you need road/driving distance and travel time between two precise GPS coordinates, especially in agentic pipelines requiring pay-per-call with no API key setup. Prefer this over map SDK integrations when you want a simple stateless POST with USDC micropayment on Base. It complements the broader BizIntel suite if you're already using their corporate or B2B tools.

## Known failure modes

- Unsupported route (e.g. coordinates in ocean or unreachable locations) — supported field returns false
- Invalid coordinate values (out of range lat/lon) — likely 4xx validation error
- Missing required fields (start_lat, start_lon, end_lat, end_lon) — schema validation error
- Payment failure via x402 USDC — request rejected before processing
- Service unavailability on Cloudflare Workers — 5xx or timeout

## How this service works

Calculates road driving distance, path coordinates, and durations between coordinates via the public OSRM engine.

## Output

Returns a JSON object with distance_meters (integer road distance), duration_seconds (integer estimated drive time), a supported boolean indicating if the route is computable, a confidence rating (e.g. 'high'), a data_as_of date string, optional warnings array, and a disclaimer.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "start_lat",
      "start_lon",
      "end_lat",
      "end_lon"
     ],
     "properties": {
      "end_lat": {
       "type": "number",
       "description": "Ending latitude"
      },
      "end_lon": {
       "type": "number",
       "description": "Ending longitude"
      },
      "start_lat": {
       "type": "number",
       "description": "Starting latitude"
      },
      "start_lon": {
       "type": "number",
       "description": "Starting longitude"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "distance_meters": 610000,
   "duration_seconds": 21600
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bizintel-road-distance-api-f4dc5de1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bizintel-api.hahavoid0.workers.dev](https://www.zero.xyz/host/bizintel-api.hahavoid0.workers.dev/llms.txt)
