com.google.maps.gwt.client
Class DirectionsRequest

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.DirectionsRequest

public class DirectionsRequest
extends JavaScriptObject

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( waypoints)
          Array of intermediate waypoints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectionsRequest

protected DirectionsRequest()
Protected constructor avoids default public constructor.

Method Detail

create

public static final DirectionsRequest create()

setAvoidHighways

public final void setAvoidHighways(boolean avoidHighways)
If true, instructs the Directions service to avoid highways where possible. Optional.


setAvoidTolls

public final void setAvoidTolls(boolean avoidTolls)
If true, instructs the Directions service to avoid toll roads where possible. Optional.


setDestination

public final void setDestination(LatLng destination)
Location of destination. This can be specified as either a string to be geocoded or a LatLng . Required.


setDestination

public final void setDestination(java.lang.String destination)
Location of destination. This can be specified as either a string to be geocoded or a LatLng . Required.


setOptimizeWaypoints

public final 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. If waypoints are optimized, inspect DirectionsRoute.waypoint_order in the response to determine the new ordering.


setOrigin

public final void setOrigin(LatLng origin)
Location of origin. This can be specified as either a string to be geocoded or a LatLng . Required.


setOrigin

public final void setOrigin(java.lang.String origin)
Location of origin. This can be specified as either a string to be geocoded or a LatLng . Required.


setProvideRouteAlternatives

public final void setProvideRouteAlternatives(boolean provideRouteAlternatives)
Whether or not route alternatives should be provided. Optional.


setRegion

public final void setRegion(java.lang.String region)
Region code used as a bias for geocoding requests. Optional.


setTravelMode

public final void setTravelMode(TravelMode travelMode)
Type of routing requested. Required.


setUnitSystem

public final void setUnitSystem(UnitSystem unitSystem)
Preferred unit system to use when displaying distance. Defaults to the unit system used in the country of origin.


setWaypoints

public final void setWaypoints( waypoints)
Array of intermediate waypoints. Directions will be calculated from the origin to the destination by way of each waypoint in this array. Optional.