public class LocalSearchResult
extends java.lang.Object
implements java.io.Serializable
Encapsulates an individual item in a LocalSearchResponse
.
Modifier and Type | Method and Description |
---|---|
static LocalSearchResult |
fromJSONObject(org.json.JSONObject json,
java.lang.String locationId)
Constructs a LocalSearchResult 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 LocalSearchResult fromJSONObject(org.json.JSONObject json, java.lang.String locationId) throws org.json.JSONException
Constructs a LocalSearchResult from json.
org.json.JSONException
- on JSON parsing errorpublic 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.