Class LocalSearchResult

java.lang.Object
com.arubanetworks.meridian.search.LocalSearchResult
All Implemented Interfaces:
Serializable

public class LocalSearchResult extends Object implements Serializable
Encapsulates an individual item in a LocalSearchResponse.
See Also:
  • 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

      public Placemark 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.