The distance matrix an external directions provider returns: one row per origin, each with one element
per destination. DirectionsService builds the route from origins and destinations, so both are required.
Properties:
| Name | Type | Description |
|---|---|---|
rows |
Array:.<Object:>
|
One row per origin. |
rows[].elements |
Array:.<?Object:>
|
One element per destination, or |
rows[].elements[].status |
string
|
The element status, such as |
rows[].elements[].distance |
Object
|
The distance in meters. |
rows[].elements[].duration |
Object
|
The travel time in seconds. |
origins |
Array:.<(LatLngLiteral:|string:)>
|
The origins, in row order. |
destinations |
Array:.<(LatLngLiteral:|string:)>
|
The destinations, in element order. |