# Class DurationDistanceMatrix (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    DurationDistanceMatrix(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies a duration and distance matrix from visit and
vehicle start locations to visit and vehicle end locations.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `rows` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.ShipmentModel.DurationDistanceMatrix.Row]` Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags. |
| `vehicle_start_tag` | `str` Tag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix. Each vehicle start must match exactly one matrix, i.e. exactly one of their `start_tags` field must match the `vehicle_start_tag` of a matrix (and of that matrix only). All matrices must have a different `vehicle_start_tag`. |

## Classes

### Row

    Row(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies a row of the duration and distance matrix.