|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.services.DirectionsLeg
public class DirectionsLeg
A single leg consisting of a set of steps in a DirectionsResult. Some fields in the leg may not be returned for all requests. (This object was formerly known as "DirectionsRoute".) Note that though this result is "JSON-like," it is not strictly JSON, as it directly and indirectly includes LatLng objects.
See DirectionsLeg API Doc
Constructor Summary | |
---|---|
protected |
DirectionsLeg()
use newInstance(); |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DirectionsLeg()
Method Detail |
---|
public static final DirectionsLeg newInstance()
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
- public final JsArray<LatLng> getVia_Waypoints()
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |