# Matrix

Matrix calculates the travel time and distances between an array of start and end locations. You can use Matrix to find the shortest or fastest paths between a number of start points and a number of end points, and determine the total time and distance of the individual routes (the route costs). For example, if you input two start points (S1 and S2) and two end points (E1 and E2), a total of four routes will be returned as illustrated in the following diagram: