public class LocalSearchResponse extends Object
Encapsulates the results of a LocalSearch
.
Modifier and Type | Method and Description |
---|---|
static LocalSearchResponse |
fromJSONObject(JSONObject json,
String locationId)
Constructs a LocalSearchResponse from a json response.
|
List<LocalSearchResult> |
getResults()
Gets the search results.
|
public static LocalSearchResponse fromJSONObject(JSONObject json, String locationId) throws JSONException
Constructs a LocalSearchResponse from a json response.
JSONException
- on JSON errorpublic List<LocalSearchResult> getResults()
Gets the search results.