Class DirectionsStartSearchResult
java.lang.Object
com.arubanetworks.meridian.search.DirectionsStartSearchResult
- All Implemented Interfaces:
Serializable
Encapsulates an individual item in a
DirectionsStartSearchRequest.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DirectionsStartSearchResultfromJSONObject(org.json.JSONObject json, String locationId) Constructs a DirectionsStartSearchResult from json.doubleGet the distance of this result from the origin of the search in meters.Get the placemark associated with this result.longgetTime()Get the estimated travel time for this result.
-
Method Details
-
fromJSONObject
public static DirectionsStartSearchResult fromJSONObject(org.json.JSONObject json, String locationId) throws org.json.JSONException Constructs a DirectionsStartSearchResult from json.- Throws:
org.json.JSONException- if error occurs parsing JSON
-
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.
-