A distance matrix is a grid that shows the travel distance or time between multiple points. It is frequently used in logistics, ride-sharing, and delivery services to plan the most efficient routes. The matrix calculates every possible route between selected origins and destinations, saving time and improving operational efficiency