public class SearchResult
extends java.lang.Object
implements java.io.Serializable
Encapsulates an individual item in a SearchResponse
.
Modifier and Type | Class and Description |
---|---|
static class |
SearchResult.ResultType |
Modifier and Type | Method and Description |
---|---|
static SearchResult |
fromJSONObject(org.json.JSONObject json,
EditorKey appKey)
Constructs a SearchResult from json.
|
MapInfo |
getMap()
Get the map info for this result.
|
Placemark |
getPlacemark()
Get the placemark associated with this result.
|
TagBeacon |
getTag()
Get the asset tag for this result.
|
java.lang.String |
getTagLabel()
Get the tag label for this result.
|
SearchResult.ResultType |
getType()
Get the type of this result.
|
public static SearchResult fromJSONObject(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
Constructs a SearchResult from json.
org.json.JSONException
- if JSON is malformedpublic SearchResult.ResultType getType()
Get the type of this result.
public Placemark getPlacemark()
Get the placemark associated with this result.
public TagBeacon getTag()
Get the asset tag for this result.
public MapInfo getMap()
Get the map info for this result.
public java.lang.String getTagLabel()
Get the tag label for this result.