Class DirectionsStartSearchResult

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

public class DirectionsStartSearchResult extends Object implements Serializable
Encapsulates an individual item in a DirectionsStartSearchRequest.
See Also:
  • Method Details

    • fromJSONObject

      public static DirectionsStartSearchResult fromJSONObject(JSONObject json, String locationId) throws JSONException
      Constructs a DirectionsStartSearchResult from json.
      Throws:
      JSONException - if error occurs parsing JSON
    • 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.