public class DirectionsStartSearchResult
extends java.lang.Object
implements java.io.Serializable
Encapsulates an individual item in a DirectionsStartSearchRequest
.
Modifier and Type | Method and Description |
---|---|
static DirectionsStartSearchResult |
fromJSONObject(org.json.JSONObject json,
java.lang.String locationId)
Constructs a DirectionsStartSearchResult from json.
|
double |
getDistance()
Get the distance of this result from the origin of the search in meters.
|
Placemark |
getPlacemark()
Get the placemark associated with this result.
|
long |
getTime()
Get the estimated travel time for this result.
|
public static DirectionsStartSearchResult fromJSONObject(org.json.JSONObject json, java.lang.String locationId) throws org.json.JSONException
Constructs a DirectionsStartSearchResult from json.
org.json.JSONException
- if error occurs parsing JSONpublic Placemark getPlacemark()
Get the placemark associated with this result.
public double getDistance()
Get the distance of this result from the origin of the search in meters.
public long getTime()
Get the estimated travel time for this result.