# Google Maps ComputeRouteMatrix

> Google Maps ComputeRouteMatrix is a paid API for AI agents from Google Maps at googlemaps.mpp.tempo.xyz, paid per call via MPP, $0.005000/call, status unknown (last checked 2026-10-12).

Computes a matrix of travel distances and durations between multiple origins and destinations using Google Maps routing

## Facts

- Endpoint: POST https://googlemaps.mpp.tempo.xyz/routes/distanceMatrix/v2:computeRouteMatrix?utm_source=zero.xyz
- Price: $0.005000/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: Google Maps
- Docs: https://developers.google.com/maps
- Website: https://developers.google.com/maps
- Tags: maps, google, geocoding, directions, places, routes, tiles, weather, air-quality, solar, roads, pollen, geolocation, aerial, validation, data
- Canonical page: https://www.zero.xyz/c/google-maps-v2-computeroutematrix-197b2816
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Isx7zz8kIxe1q0QUFMEg1

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 google-maps-v2-computeroutematrix-197b2816 -d '<json body>'
```

Example prompt: Can you calculate the driving distances and travel times from our 3 warehouse locations in Chicago, Detroit, and Cleveland to 5 delivery stops in Columbus, Pittsburgh, Indianapolis, Cincinnati, and Louisville — using the fastest routes by road?

## When to prefer this

Use this endpoint when you need to compute travel times or distances between multiple origins and multiple destinations simultaneously — i.e. an N×M distance matrix. It is more efficient than calling the single-route directions endpoint repeatedly. Ideal for logistics optimization, nearest-location finders, delivery routing, and fleet management where batch distance data is needed.

## Known failure modes

- Invalid or unresolvable origin/destination coordinates returns a per-element NOT_FOUND status
- Too many origins or destinations exceeds API limits and returns a 400 error
- Unsupported travel mode or routing preference combination returns a 400 INVALID_ARGUMENT
- Missing required origins or destinations fields returns a 400 error
- Network timeout on large matrices returns a 503 or partial stream
- Billing or quota exceeded returns a 429 RESOURCE_EXHAUSTED error

## How this service works

Compute distance matrix

## Output

Returns a stream of RouteMatrixElement objects, each containing the travel duration, distance in meters, status, and optionally a route token for every origin-destination pair in the matrix. Covers all combinations of the provided origins and destinations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "location",
  "size",
  "heading",
  "pitch"
 ],
 "properties": {
  "size": {
   "type": "string"
  },
  "pitch": {
   "type": "string"
  },
  "heading": {
   "type": "string"
  },
  "location": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-maps-v2-computeroutematrix-197b2816/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from googlemaps.mpp.tempo.xyz](https://www.zero.xyz/host/googlemaps.mpp.tempo.xyz/llms.txt)
