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