com.google.gwt.maps.client.geocode
Class Distance

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.geocode.Distance

public class Distance
extends com.google.gwt.core.client.JavaScriptObject

The object contains two fields: a number called indicating the numeric value of the distance (in meters), and a string containing a localized string representation of the distance in the units that are predominant in the starting country of this set of directions.


Constructor Summary
protected Distance()
           
 
Method Summary
 java.lang.String inLocalizedUnits()
          Returns the distance in the units that are predominant in the starting country of this set of directions.
 double inMeters()
          Returns the distance measured in meters.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Distance

protected Distance()
Method Detail

inLocalizedUnits

public final java.lang.String inLocalizedUnits()
Returns the distance in the units that are predominant in the starting country of this set of directions.

Returns:
the distance in the units that are predominant in the starting country of this set of directions.

inMeters

public final double inMeters()
Returns the distance measured in meters.

Returns:
the distance measured in meters.