|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.DirectionsRequest
public class DirectionsRequest
A directions query to be sent to the
DirectionsService
.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Constructor Summary | |
---|---|
protected |
DirectionsRequest()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
static DirectionsRequest |
create()
|
void |
setAvoidHighways(boolean avoidHighways)
If true, instructs the Directions service to avoid highways where possible. |
void |
setAvoidTolls(boolean avoidTolls)
If true, instructs the Directions service to avoid toll roads where possible. |
void |
setDestination(LatLng destination)
Location of destination. |
void |
setDestination(java.lang.String destination)
Location of destination. |
void |
setOptimizeWaypoints(boolean optimizeWaypoints)
If set to true, the DirectionService
will attempt to re-order the supplied intermediate waypoints to
minimize overall cost of the route. |
void |
setOrigin(LatLng origin)
Location of origin. |
void |
setOrigin(java.lang.String origin)
Location of origin. |
void |
setProvideRouteAlternatives(boolean provideRouteAlternatives)
Whether or not route alternatives should be provided. |
void |
setRegion(java.lang.String region)
Region code used as a bias for geocoding requests. |
void |
setTravelMode(TravelMode travelMode)
Type of routing requested. |
void |
setUnitSystem(UnitSystem unitSystem)
Preferred unit system to use when displaying distance. |
void |
setWaypoints(
Array of intermediate waypoints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DirectionsRequest()
Method Detail |
---|
public static final DirectionsRequest create()
public final void setAvoidHighways(boolean avoidHighways)
public final void setAvoidTolls(boolean avoidTolls)
public final void setDestination(LatLng destination)
LatLng
. Required.
public final void setDestination(java.lang.String destination)
LatLng
. Required.
public final void setOptimizeWaypoints(boolean optimizeWaypoints)
DirectionService
will attempt to re-order the supplied intermediate waypoints to
minimize overall cost of the route. If waypoints are optimized,
inspect
DirectionsRoute.waypoint_order
in the response to determine the new ordering.
public final void setOrigin(LatLng origin)
LatLng
. Required.
public final void setOrigin(java.lang.String origin)
LatLng
. Required.
public final void setProvideRouteAlternatives(boolean provideRouteAlternatives)
public final void setRegion(java.lang.String region)
public final void setTravelMode(TravelMode travelMode)
public final void setUnitSystem(UnitSystem unitSystem)
public final void setWaypoints(waypoints)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |