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 DirectionsStartSearchResult
fromJSONObject
(JSONObject json, String locationId) Constructs a DirectionsStartSearchResult 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 DirectionsStartSearchResult fromJSONObject(JSONObject json, String locationId) throws JSONException Constructs a DirectionsStartSearchResult from json.- Throws:
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.
-