# Google Maps Distance Matrix API

> Google Maps Distance Matrix API 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, last successful call 2026-04-30).

Returns travel time and distance between one or more origin-destination pairs using Google Maps routing data

## Facts

- Endpoint: GET https://googlemaps.mpp.tempo.xyz/maps/distancematrix/json?utm_source=zero.xyz
- Price: $0.005000/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-04-30
- Success rate: 50% of calls made through Zero
- Rating: 1.3 / 5 from 1 review
- Activations on Zero: 2
- 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-json-a9e1f5c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WFR5DAPFcBW_EogAVfKn

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-json-a9e1f5c2
```

Example prompt: How long will it take to drive from 350 Fifth Avenue New York NY to 1600 Pennsylvania Ave Washington DC, and what's the total distance in miles?

## When to prefer this

Use this endpoint when you need travel time and distance for one or more origin-destination pairs without needing full turn-by-turn directions. Ideal for logistics apps comparing multiple delivery routes, commute time estimations, or any scenario needing a distance matrix. Prefer this over a full Directions API call when you only need summary distance/duration data and want efficient batch-style results.

## Known failure modes

- Invalid or unresolvable origin/destination address returns ZERO_RESULTS status
- Missing required origins or destinations parameter returns REQUEST_DENIED or INVALID_REQUEST
- Exceeding API quota or rate limits returns OVER_DAILY_LIMIT or OVER_QUERY_LIMIT
- Unsupported travel mode or transit routing without departure time returns error
- Network timeout or upstream Google Maps API unavailability returns 5xx error

## How this service works

Travel time and distance for origin-destination pairs

## Output

A distance matrix response containing rows of origin-destination pairs, each with a distance value (in meters or miles) and duration (in seconds or human-readable text), plus a status field per element and an overall status for the request.

## 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-json-a9e1f5c2/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)
