com.google.gwt.maps.client.geocode
Class Duration
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.geocode.Duration
public class Duration
- extends com.google.gwt.core.client.JavaScriptObject
An object returned by
DirectionResults.getDuration()
This object contains two fields: a number indicating the numeric value of the
time (in seconds), and a string containing a localized string representation
of the time.
Constructor Summary |
protected |
Duration()
|
Method Summary |
java.lang.String |
inLocalizedUnits()
Returns a string containing a localized string representation of the time. |
int |
inSeconds()
Returns a number indicating the numeric value of the time (in seconds). |
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 |
Duration
protected Duration()
inLocalizedUnits
public final java.lang.String inLocalizedUnits()
- Returns a string containing a localized string representation of the time.
- Returns:
- a string containing a localized string representation of the time.
inSeconds
public final int inSeconds()
- Returns a number indicating the numeric value of the time (in seconds).
- Returns:
- a number indicating the numeric value of the time (in seconds).