Follow us on GitHub

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

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

public class DistanceMatrixResponse
extends JavaScriptObject

The response to a DistanceMatrixService request, consisting of the formatted origin and destination addresses, and a sequence of DistanceMatrixResponseRows, one for each corresponding origin address.

See DistanceMatrixResponse API Doc


Constructor Summary
protected DistanceMatrixResponse()
          this is generated from callback use newInstance();
 
Method Summary
 JsArrayString getDestinationAddresses()
          The formatted destination addresses.
 JsArrayString getOriginAddresses()
          The formatted origin addresses.
 JsArray<DistanceMatrixResponseRow> getRows()
          The rows of the matrix, corresponding to the origin addresses.
static DistanceMatrixResponse newInstance()
          The response to a DistanceMatrixService request, consisting of the formatted origin and destination addresses, and a sequence of DistanceMatrixResponseRows, one for each corresponding origin address.
 void setDestinationAddresses(JsArrayString destinationAddresses)
          The formatted destination addresses.
 void setOriginAddresses(JsArrayString originAddresses)
          The formatted origin addresses.
 void setRows(JsArray<DistanceMatrixResponseRow> rows)
          The rows of the matrix, corresponding to the origin addresses.
 
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

DistanceMatrixResponse

protected DistanceMatrixResponse()
this is generated from callback use newInstance();

Method Detail

newInstance

public static final DistanceMatrixResponse newInstance()
The response to a DistanceMatrixService request, consisting of the formatted origin and destination addresses, and a sequence of DistanceMatrixResponseRows, one for each corresponding origin address.


setDestinationAddresses

public final void setDestinationAddresses(JsArrayString destinationAddresses)
The formatted destination addresses.

Parameters:
destinationAddresses -

getDestinationAddresses

public final JsArrayString getDestinationAddresses()
The formatted destination addresses.


setOriginAddresses

public final void setOriginAddresses(JsArrayString originAddresses)
The formatted origin addresses.

Parameters:
originAddresses -

getOriginAddresses

public final JsArrayString getOriginAddresses()
The formatted origin addresses.


setRows

public final void setRows(JsArray<DistanceMatrixResponseRow> rows)
The rows of the matrix, corresponding to the origin addresses.

Parameters:
rows -

getRows

public final JsArray<DistanceMatrixResponseRow> getRows()
The rows of the matrix, corresponding to the origin addresses.



Follow us on GitHub

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