public class DistanceMatrixElement
extends java.lang.Object
Be sure to check the status for each element, as a matrix response can have a mix of successful and failed elements depending on the connectivity of the origin and destination.
Modifier and Type | Field and Description |
---|---|
Distance |
distance
distance indicates the total distance covered by this leg. |
Duration |
duration
duration indicates the total duration of this leg |
java.lang.String |
status
status indicates the status of the request for this origin/destination pair. |
Constructor and Description |
---|
DistanceMatrixElement() |
public java.lang.String status
status
indicates the status of the request for this origin/destination pair.
Will be one of DistanceMatrixElementStatus
.public Duration duration
duration
indicates the total duration of this legpublic Distance distance
distance
indicates the total distance covered by this leg.