Follow us on GitHub

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

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

public class DistanceMatrixResponseElement
extends JavaScriptObject

A single element of a response to a DistanceMatrixService request, which contains the duration and distance from one origin to one destination.

See DistanceMatrixResponseElement API Doc


Constructor Summary
protected DistanceMatrixResponseElement()
          use newInstance();
 
Method Summary
 Distance getDistance()
          The distance for this origin-destination pairing.
 Duration getDuration()
          The duration for this origin-destination pairing.
 DistanceMatrixElementStatus getStatus()
          The status of this particular origin-destination pairing.
static DistanceMatrixResponseElement newInstance()
          A single element of a response to a DistanceMatrixService request, which contains the duration and distance from one origin to one destination.
 void setDistance(Distance distance)
          The distance for this origin-destination pairing.
 void setDuration(Duration duration)
          The duration for this origin-destination pairing.
 void setStatus(DistanceMatrixElementStatus status)
          The status of this particular origin-destination pairing.
 
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

DistanceMatrixResponseElement

protected DistanceMatrixResponseElement()
use newInstance();

Method Detail

newInstance

public static final DistanceMatrixResponseElement newInstance()
A single element of a response to a DistanceMatrixService request, which contains the duration and distance from one origin to one destination.


setDistance

public final void setDistance(Distance distance)
The distance for this origin-destination pairing. This property may be undefined as the distance may be unknown.

Parameters:
distance -

getDistance

public final Distance getDistance()
The distance for this origin-destination pairing. This property may be undefined as the distance may be unknown.


setDuration

public final void setDuration(Duration duration)
The duration for this origin-destination pairing. This property may be undefined as the duration may be unknown.

Parameters:
duration -

getDuration

public final Duration getDuration()
The duration for this origin-destination pairing. This property may be undefined as the duration may be unknown.


setStatus

public final void setStatus(DistanceMatrixElementStatus status)
The status of this particular origin-destination pairing.

Parameters:
status -

getStatus

public final DistanceMatrixElementStatus getStatus()
The status of this particular origin-destination pairing.



Follow us on GitHub

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