# The Distance Matrix API (Legacy) is deprecated

Google Maps Platform deprecated GET /maps/api/distancematrix/* without giving a shutdown date yet.

## What to use instead

Migrate to the Routes API (computeRouteMatrix on routes.googleapis.com).

The Routes API is a separate API to enable on the Cloud project, with its own SKUs and pricing, and needs the X-Goog-FieldMask header, so the team decides when and how to move.

- API: Google Maps Platform (maps.googleapis.com)
- Kind: Removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `GET /maps/api/distancematrix/*`
- Source: [Announcement](https://developers.google.com/maps/documentation/distance-matrix/overview)
- Verified: November 6, 2026, against Google Maps Platform's own pages
- Page: https://www.okapi.bot/providers/google-maps-platform/breaking-changes/the-distance-matrix-api-legacy-is-deprecated/

## Google Maps Platform's words

> As of October 2026, Distance Matrix API (Legacy) can no longer be enabled for new Google Cloud projects. Existing projects remain fully supported.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
