|
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.DirectionsRequest
public class DirectionsRequest
A directions query to be sent to the DirectionsService.
See DirectionsRequest API Doc
| Constructor Summary | |
|---|---|
protected |
DirectionsRequest()
use newInstance(); |
| Method Summary | |
|---|---|
boolean |
getAvoidHighways()
If true, instructs the Directions service to avoid highways where possible. |
boolean |
getAvoidTolls()
If true, instructs the Directions service to avoid toll roads where possible. |
LatLng |
getDestination_LatLng()
Location of destination. |
String |
getDestination_String()
Location of destination. |
boolean |
getOptimizeWaypoints()
If set to true, the DirectionService will attempt to re-order the supplied intermediate waypoints to minimize overall cost of the route. |
LatLng |
getOrigin_LatLng()
Location of origin. |
String |
getOrigin_String()
Location of origin. |
boolean |
getProvideRouteAlternatives()
Whether or not route alternatives should be provided. |
String |
getRegion()
Region code used as a bias for geocoding requests. |
TravelMode |
getTravelMode()
Type of routing requested. |
UnitSystem |
getUnitSystem()
Preferred unit system to use when displaying distance. |
JsArray<DirectionsWaypoint> |
getWaypoints()
Array of intermediate waypoints. |
static DirectionsRequest |
newInstance()
A directions query to be sent to the DirectionsService. |
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(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(String origin)
Location of origin. |
void |
setProvideRouteAlternatives(boolean provideRouteAlternatives)
Whether or not route alternatives should be provided. |
void |
setRegion(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(JsArray<DirectionsWaypoint> waypoints)
Array of intermediate waypoints. |
| 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 DirectionsRequest()
| Method Detail |
|---|
public static final DirectionsRequest newInstance()
public final void setAvoidHighways(boolean avoidHighways)
avoidHighways - public final boolean getAvoidHighways()
public final void setAvoidTolls(boolean avoidTolls)
avoidTolls - public final boolean getAvoidTolls()
public final void setDestination(String destination)
destination - public final String getDestination_String()
public final void setDestination(LatLng destination)
destination - public final LatLng getDestination_LatLng()
public final void setOptimizeWaypoints(boolean optimizeWaypoints)
optimizeWaypoints - public final boolean getOptimizeWaypoints()
public final void setOrigin(String origin)
origin - public final String getOrigin_String()
public final void setOrigin(LatLng origin)
origin - public final LatLng getOrigin_LatLng()
public final void setProvideRouteAlternatives(boolean provideRouteAlternatives)
provideRouteAlternatives - public final boolean getProvideRouteAlternatives()
public final void setRegion(String region)
region - public final String getRegion()
public final void setTravelMode(TravelMode travelMode)
travelMode - public final TravelMode getTravelMode()
public final void setUnitSystem(UnitSystem unitSystem)
unitSystem - public final UnitSystem getUnitSystem()
public final void setWaypoints(JsArray<DirectionsWaypoint> waypoints)
waypoints - public final JsArray<DirectionsWaypoint> getWaypoints()
|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||