|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.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.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Constructor Summary | |
---|---|
protected |
DirectionsLeg()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
Distance |
getDistance()
The total distance covered by this leg. |
Duration |
getDuration()
The total duration of this leg. |
java.lang.String |
getEndAddress()
The address of the destination of this leg. |
LatLng |
getEndLocation()
The DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations. |
java.lang.String |
getStartAddress()
The address of the origin of this leg. |
LatLng |
getStartLocation()
The DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations. |
|
getSteps()
An array of DirectionsStep
s, each of which contains information about the individual steps in this leg. |
|
getViaWaypoints()
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. |
void |
setDistance(Distance distance)
The total distance covered by this leg. |
void |
setDuration(Duration duration)
The total duration of this leg. |
void |
setEndAddress(java.lang.String end_address)
The address of the destination of this leg. |
void |
setEndLocation(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 |
setStartAddress(java.lang.String start_address)
The address of the origin of this leg. |
void |
setStartLocation(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(
An array of DirectionsStep
s, each of which contains information about the individual steps in this leg. |
void |
setViaWaypoints(
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DirectionsLeg()
Method Detail |
---|
public final Distance getDistance()
public final Duration getDuration()
public final java.lang.String getEndAddress()
public final LatLng getEndLocation()
DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations.
end_location
indicates the actual geocoded destination, which may be different than the
end_location
of the last step if, for example, the road is not near the destination of this leg.
public final java.lang.String getStartAddress()
public final LatLng getStartLocation()
DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations.
start_location
indicates the actual geocoded origin, which may be different than the
start_location
of the first step if, for example, the road is not near the origin of this leg.
public finalgetSteps()
DirectionsStep
s, each of which contains information about the individual steps in this leg.
public finalgetViaWaypoints()
public final void setDistance(Distance distance)
public final void setDuration(Duration duration)
public final void setEndAddress(java.lang.String end_address)
public final void setEndLocation(LatLng end_location)
DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations.
end_location
indicates the actual geocoded destination, which may be different than the
end_location
of the last step if, for example, the road is not near the destination of this leg.
public final void setStartAddress(java.lang.String start_address)
public final void setStartLocation(LatLng start_location)
DirectionsService
calculates directions between locations by using the nearest
transportation option (usually a road) at the start and end
locations.
start_location
indicates the actual geocoded origin, which may be different than the
start_location
of the first step if, for example, the road is not near the origin of this leg.
public final void setSteps(steps)
DirectionsStep
s, each of which contains information about the individual steps in this leg.
public final void setViaWaypoints(via_waypoints)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |