# Citiview Route Distance & Time Matrix

> Citiview Route Distance & Time Matrix is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-14).

Computes travel time and distance for up to 50 origin-destination pairs by car, truck, bike, or foot, and returns the closest pair.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/route/matrix?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-route-distance-time-matrix-96ceaa1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_deHNY9PwmOkw29Zi7wtfy

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 citiview-route-distance-time-matrix-96ceaa1c
```

Example prompt: What's the travel time and distance by car from 37.7749,-122.4194 to each of these three drop-off points: 37.3382,-121.8863 | 37.8716,-122.2727 | 37.6879,-122.4702, and tell me which pair is closest?

## When to prefer this

Use this endpoint when you need to compare travel times or distances across multiple origin-destination pairs in a single call — ideal for dispatching the nearest driver, finding the closest store to a customer, or batch-planning deliveries. Prefer it over single-pair routing APIs when you need matrix comparisons or the closest-pair result without assembling multiple individual calls.

## Known failure modes

- Missing required 'origins' or 'destinations' query parameters returns an error
- More than 50 origin-destination pairs exceeds the limit
- Invalid coordinate format or unresolvable place names cause lookup failure
- Unsupported transport mode value returns an error
- Network or upstream routing service unavailability returns a 5xx error

## How this service works

Travel time and distance matrix between up to 50 origin-destination pairs (places or lat,lon) by car, truck, bike or foot, with the closest pair. For dispatching, store finders and delivery planning.

## Output

Returns a matrix of travel times and distances for each origin-destination pair, along with identification of the closest pair. Includes values per transport mode (car, truck, bike, or foot) as requested.

## 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": [
      "origins",
      "destinations"
     ],
     "properties": {
      "mode": {
       "type": "string"
      },
      "origins": {
       "type": "string",
       "description": "| separated"
      },
      "destinations": {
       "type": "string",
       "description": "| separated"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-route-distance-time-matrix-96ceaa1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
