public class DirectionsLeg
extends java.lang.Object
implements java.io.Serializable
See the Legs documentation for more detail.
Modifier and Type | Field and Description |
---|---|
org.joda.time.DateTime |
arrivalTime
The estimated time of arrival for this leg.
|
org.joda.time.DateTime |
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 and Description |
---|
DirectionsLeg() |
public DirectionsStep[] steps
public Distance distance
public Duration duration
public Duration durationInTraffic
public org.joda.time.DateTime arrivalTime
public org.joda.time.DateTime departureTime
public LatLng startLocation
public LatLng endLocation
public java.lang.String startAddress
public java.lang.String endAddress