• ``` DistanceMatrix ```
• ``` DurationMatrix ```
• ``` httpResponse ```
• ``` destinations ```
• ``` sources ```
• ``` distances ```

Array of arrays that represent the distances matrix in row-major order.

`distances[i][j]` gives the route distance from the `i`‘th `source` to the `j`'th `destination`. The distance between the same coordinate is always `0`. Distance from `i` to `j` is not always the same as from `j` to `i`. If a route cannot be found, the result is `null`.

Seealso

`distance(from:to:)`
• ``` travelTimes ```

Array of arrays that represent the travel times matrix in row-major order.

`travelTimes[i][j]` gives the travel time from the `i`‘th `source` to the `j`'th `destination`. The duration between the same coordinate is always `0`. Travel time from `i` to `j` is not always the same as from `j` to `i`. If a duration cannot be found, the result is `null`.

Seealso

`travelTime(from:to:)`
• ``` distance(from:to:) ```

Returns route distance between specified source and destination.

• ``` travelTime(from:to:) ```

Returns expected travel time between specified source and destination.

• ``` init(httpResponse:distances:travelTimes:destinations:sources:) ```
• ``` init(from:) ```
• ``` encode(to:) ```