Package ai.nextbillion.maps.model
Class Duration
java.lang.Object
ai.nextbillion.maps.model.Duration
- All Implemented Interfaces:
java.io.Serializable
public class Duration
extends java.lang.Object
implements java.io.Serializable
The duration component for Directions API results.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringhumanReadableThe human-friendly duration.longinSecondsThe numeric duration, in seconds. -
Constructor Summary
Constructors Constructor Description Duration() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
inSeconds
public long inSecondsThe numeric duration, in seconds. This is intended to be used only in algorithmic situations, e.g. sorting results by some user specified metric. -
humanReadable
public java.lang.String humanReadableThe human-friendly duration. Use this for display purposes.
-
-
Constructor Details
-
Duration
public Duration()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-