public class UpdatedRouteResults extends Object
RouteManager.getUpdatedRouteInfo(com.inrix.sdk.RouteManager.UpdatedRouteOptions, com.inrix.sdk.RouteManager.IUpdatedRouteListener)
. See BaseRoutesResponse.getRoutes()
for the return order of the requested route information.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<UpdatedRouteResults> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
List<Route> |
getAlternateRoutes()
Get the alternative
Route 's if requested and available. |
List<Route> |
getBetterRoutes()
Get the alternative better
Route 's if requested and available. |
List<Incident> |
getIncidents()
Gets list of all incidents in the response.
|
List<Route> |
getRoutes()
Get the returned routes.
|
Route |
getUpdatedRoute()
Get the updated
Route information that was requested. |
int |
hashCode() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<UpdatedRouteResults> CREATOR
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
@Nullable public Route getUpdatedRoute()
Route
information that was requested.@NonNull public List<Route> getBetterRoutes()
Route
's if requested and available.@NonNull public List<Route> getAlternateRoutes()
Route
's if requested and available.@NonNull public List<Route> getRoutes()
Route
being the first item in the list, which is dependent on the type of request made.
For RouteManager.requestRoutes(com.inrix.sdk.RouteManager.RequestRouteOptions, com.inrix.sdk.RouteManager.IRouteResponseListener)
, the fastest route has the highest
priority.
For RouteManager.getUpdatedRouteInfo(com.inrix.sdk.RouteManager.UpdatedRouteOptions, com.inrix.sdk.RouteManager.IUpdatedRouteListener)
, the original route has the
highest priority, followed the fastest better Route
if requested and available.@NonNull public List<Incident> getIncidents()
public int describeContents()
describeContents
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.