public class DirectionsLeg extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
DirectionsLeg()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
Time |
getArrival_Time()
An estimated arrival time for this leg.
|
Time |
getDeparture_Time()
An estimated departure time for this leg.
|
Distance |
getDistance()
The total distance covered by this leg.
|
Duration |
getDuration()
The total duration of this leg.
|
String |
getEnd_Address()
The address of the destination of this leg.
|
LatLng |
getEnd_Location()
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a
road) at the start and end locations.
|
String |
getStart_Address()
The address of the origin of this leg.
|
LatLng |
getStart_Location()
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a
road) at the start and end locations.
|
JsArray<DirectionsStep> |
getSteps()
An array of DirectionsSteps, each of which contains information about the individual steps in this leg.
|
JsArray<LatLng> |
getVia_Waypoints()
An array of waypoints along this leg that were not specified in the original request, either as a result of a user
dragging the polyline or selecting an alternate route.
|
static DirectionsLeg |
newInstance()
A single leg consisting of a set of steps in a DirectionsResult.
|
void |
setArrival_Time(Time arrivalTime)
An estimated arrival time for this leg.
|
void |
setDeparture_Time(Time departureTime)
An estimated departure time for this leg.
|
void |
setDistance(Distance distance)
The total distance covered by this leg.
|
void |
setDuration(Duration duration)
The total duration of this leg.
|
void |
setEnd_Address(String end_address)
The address of the destination of this leg.
|
void |
setEnd_Location(LatLng end_location)
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a
road) at the start and end locations.
|
void |
setStart_Address(String start_address)
The address of the origin of this leg.
|
void |
setStart_Location(LatLng start_location)
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a
road) at the start and end locations.
|
void |
setSteps(JsArray<DirectionsStep> steps)
An array of DirectionsSteps, each of which contains information about the individual steps in this leg.
|
void |
setVia_Waypoints(JsArray<LatLng> via_waypoints)
An array of waypoints along this leg that were not specified in the original request, either as a result of a user
dragging the polyline or selecting an alternate route.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final DirectionsLeg newInstance()
public final void setArrival_Time(Time arrivalTime)
arrivalTime
- public final Time getArrival_Time()
public final void setDeparture_Time(Time departureTime)
arrivalTime
- public final Time getDeparture_Time()
public final void setDistance(Distance distance)
distance
- public final Distance getDistance()
public final void setDuration(Duration duration)
duration
- public final Duration getDuration()
public final void setEnd_Address(String end_address)
end_address
- public final String getEnd_Address()
public final void setEnd_Location(LatLng end_location)
end_location
- public final LatLng getEnd_Location()
public final void setStart_Address(String start_address)
start_address
- public final String getStart_Address()
public final void setStart_Location(LatLng start_location)
start_location
- public final LatLng getStart_Location()
public final void setSteps(JsArray<DirectionsStep> steps)
steps
- public final JsArray<DirectionsStep> getSteps()
public final void setVia_Waypoints(JsArray<LatLng> via_waypoints)
via_waypoints
- Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.