Class LocalSearchResult
java.lang.Object
com.arubanetworks.meridian.search.LocalSearchResult
- All Implemented Interfaces:
Serializable
Encapsulates an individual item in a
LocalSearchResponse
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalSearchResult
fromJSONObject
(JSONObject json, String locationId) Constructs a LocalSearchResult from json.double
Get the distance of this result from the origin of the search in meters.Get the placemark associated with this result.long
getTime()
Get the estimated travel time for this result.
-
Method Details
-
fromJSONObject
public static LocalSearchResult fromJSONObject(JSONObject json, String locationId) throws JSONException Constructs a LocalSearchResult from json.- Throws:
JSONException
- on JSON parsing error
-
getPlacemark
Get the placemark associated with this result. -
getDistance
public double getDistance()Get the distance of this result from the origin of the search in meters. -
getTime
public long getTime()Get the estimated travel time for this result.
-