java.io.Serializable
public class DirectionsLeg
extends java.lang.Object
implements java.io.Serializable
See the Legs documentation for more detail.
Modifier and Type | Field | Description |
---|---|---|
java.time.ZonedDateTime |
arrivalTime |
The estimated time of arrival for this leg.
|
java.time.ZonedDateTime |
departureTime |
The estimated time of departure for this leg.
|
Distance |
distance |
The total distance covered by this leg.
|
Duration |
duration |
The total duration of this leg.
|
Duration |
durationInTraffic |
The total duration of this leg, taking into account current traffic conditions.
|
java.lang.String |
endAddress |
The human-readable address (typically a street address) reflecting the end location of this
leg.
|
LatLng |
endLocation |
The latitude/longitude coordinates of the given destination of this leg.
|
java.lang.String |
startAddress |
The human-readable address (typically a street address) reflecting the start location of this
leg.
|
LatLng |
startLocation |
The latitude/longitude coordinates of the origin of this leg.
|
DirectionsStep[] |
steps |
Contains an array of steps denoting information about each separate step of this leg of the
journey.
|
Constructor | Description |
---|---|
DirectionsLeg() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
toString() |
public DirectionsStep[] steps
public Distance distance
public Duration duration
public Duration durationInTraffic
public java.time.ZonedDateTime arrivalTime
public java.time.ZonedDateTime departureTime
public LatLng startLocation
public LatLng endLocation
public java.lang.String startAddress
public java.lang.String endAddress