public class DistanceMatrixElement
extends java.lang.Object
implements java.io.Serializable
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
The total duration of this leg.
|
Duration |
durationInTraffic
The length of time to travel this route, based on current and historical traffic conditions.
|
Fare |
fare
fare contains information about the fare (that is, the ticket costs) on this route. |
DistanceMatrixElementStatus |
status
The status of the request for this origin/destination pair.
|
Constructor and Description |
---|
DistanceMatrixElement() |
public DistanceMatrixElementStatus status
Will be one of DistanceMatrixElementStatus
.
public Duration duration
public Duration durationInTraffic
public Distance distance
distance
indicates the total distance covered by this leg.public Fare fare
fare
contains information about the fare (that is, the ticket costs) on this route.