# endTime on /REST/v1/Routes/DistanceMatrix stops working

Calls to /REST/v1/Routes/DistanceMatrix, query parameter endTime on Bing Maps API stopped working on September 30, 2024.

On September 30, 2024, the query parameter endTime was removed from /REST/v1/Routes/DistanceMatrix calls. Requests using this parameter fail after that day. The change also retired the resolution parameter alongside it.

## What to use instead

Drop endTime and resolution from your calls, and request one matrix per departure time using startTime.

- API: Bing Maps API (dev.virtualearth.net)
- Kind: Parameter removal
- Announced: September 30, 2023
- Takes effect: September 30, 2024
- Calls after that day: fail
- Calls it hits: `/REST/v1/Routes/DistanceMatrix`, `query parameter endTime`
- Source: [Announcement](https://blogs.bing.com/maps/2023/9/Routing-API-Breaking-Change-and-Retirement-Announcements/)
- Verified: November 6, 2026, against Bing Maps API's own pages
- Page: https://www.okapi.bot/providers/bing-maps-api/breaking-changes/endtime-on-rest-v1-routes-distancematrix-stops-working/

## Bing Maps API's words

> As part of this deprecation we will also retire the paramaters endTime and resolution.

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