Follow us on GitHub

com.google.gwt.maps.client.services
Class DirectionsStep

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.DirectionsStep

public class DirectionsStep
extends JavaScriptObject

A single DirectionsStep in a DirectionsResult. Some fields may be undefined. Note that though this object is "JSON-like," it is not strictly JSON, as it directly includes LatLng objects.

See DirectionsStep API Doc


Constructor Summary
protected DirectionsStep()
          use newInstance();
 
Method Summary
 Distance getDistance()
          The distance covered by this step.
 Duration getDuration()
          The typical time required to perform this step in seconds and in text form.
 LatLng getEnd_Location()
          The ending location of this step.
 String getInstructions()
          Instructions for this step.
 JsArray<LatLng> getPath()
          A sequence of LatLngs describing the course of this step.
 LatLng getStart_Location()
          The starting location of this step.
 TravelMode getTravelMode()
          The mode of travel used in this step.
static DirectionsStep newInstance()
          A single DirectionsStep in a DirectionsResult.
 void setDistance(Distance distance)
          The distance covered by this step.
 void setDuration(Duration duration)
          The typical time required to perform this step in seconds and in text form.
 void setEnd_Location(LatLng end_location)
          The ending location of this step.
 void setInstructions(String instructions)
          Instructions for this step.
 void setPath(JsArray<LatLng> path)
          A sequence of LatLngs describing the course of this step.
 void setStart_Location(LatLng start_location)
          The starting location of this step.
 void setTravel_Mode(TravelMode travel_mode)
          The mode of travel used in this step.
 
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

DirectionsStep

protected DirectionsStep()
use newInstance();

Method Detail

newInstance

public static final DirectionsStep newInstance()
A single DirectionsStep in a DirectionsResult. Some fields may be undefined. Note that though this object is "JSON-like," it is not strictly JSON, as it directly includes LatLng objects.


setDistance

public final void setDistance(Distance distance)
The distance covered by this step. This property may be undefined as the distance may be unknown.

Parameters:
distance -

getDistance

public final Distance getDistance()
The distance covered by this step. This property may be undefined as the distance may be unknown.


setDuration

public final void setDuration(Duration duration)
The typical time required to perform this step in seconds and in text form. This property may be undefined as the duration may be unknown.

Parameters:
duration -

getDuration

public final Duration getDuration()
The typical time required to perform this step in seconds and in text form. This property may be undefined as the duration may be unknown.


setEnd_Location

public final void setEnd_Location(LatLng end_location)
The ending location of this step.

Parameters:
end_location -

getEnd_Location

public final LatLng getEnd_Location()
The ending location of this step.


setInstructions

public final void setInstructions(String instructions)
Instructions for this step.

Parameters:
instructions -

getInstructions

public final String getInstructions()
Instructions for this step.


setPath

public final void setPath(JsArray<LatLng> path)
A sequence of LatLngs describing the course of this step.

Parameters:
path -

getPath

public final JsArray<LatLng> getPath()
A sequence of LatLngs describing the course of this step.


setStart_Location

public final void setStart_Location(LatLng start_location)
The starting location of this step.

Parameters:
start_location -

getStart_Location

public final LatLng getStart_Location()
The starting location of this step.


setTravel_Mode

public final void setTravel_Mode(TravelMode travel_mode)
The mode of travel used in this step.

Parameters:
travel_mode -

getTravelMode

public final TravelMode getTravelMode()
The mode of travel used in this step.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.