A distance matrix API is a tool that calculates travel times and distances between any given set of origin and destination points. As simple as it may seem, it’s an extraordinarily powerful tool that finds utility across a spectrum of industries and use cases.
Regardless of whether you’re looking to go from one origin to many destinations (like a DoorDash driver dropping off multiple orders from one restaurant), from many origins to a single destination (consider how Uber assigns the nearest driver to pick you up) or from many origins to many destinations (think multiple Amazon delivery drivers covering all deliveries in a region), the distance matrix API helps you find the most efficient route or routes to achieve your goal.
A single call of the API returns a distance and ETA for the optimal path between each and every origin and destination pair. This data, generated in the form of a matrix, can then be passed through various other algorithms as required to generate the output you need to enhance your business operations.