public abstract class Route extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Route.Bucket
A speed bucket indicating the speed for a particular segment of a route.
|
static class |
Route.Road
Represents a road in a route.
|
static class |
Route.Summary
Represents a summary of the roads used in a route.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
abstract int |
getAbnormalityMinutes()
Gets the difference in minutes between the travel time for the route and the normal travel time expected for the time and day.
|
abstract double |
getAverageSpeed()
Gets the average speed on the route.
|
abstract BoundingBox |
getBoundingBox()
Gets the bounding box of the route.
|
abstract List<DangerousSlowdown> |
getDangerousSlowdowns()
Gets the list of dangerous slowdowns on the route.
|
GeoPoint |
getDestination()
Get the destination point for the route.
|
abstract String |
getId()
Gets the route's ID.
|
abstract List<Incident> |
getIncidents()
Gets the list of incidents on the route.
|
GeoPoint |
getOrigin()
Get the origin point for the route.
|
abstract List<GeoPoint> |
getPoints()
Gets the list of points on the route.
|
abstract String |
getPolyline()
Gets the points array of the route as an encoded polyline as
described by the Google poly-line algorithm.
|
abstract int |
getRouteQuality()
Gets the quality of the route, typically scaled from 0 (most congested) to 3 (least congested).
|
abstract List<Route.Bucket> |
getSpeedBuckets()
Get the speed buckets for this
Route . |
abstract int |
getStatusId()
Gets the status ID.
|
abstract Route.Summary |
getSummary()
Gets information about the roads used in the route.
|
abstract double |
getTotalDistance()
Gets the total length of the route.
|
abstract int |
getTravelTimeMinutes()
Gets the currently calculated travel time in minutes.
|
abstract int |
getUncongestedTravelTimeMinutes()
Gets the travel time in minutes when there is no traffic congestion.
|
abstract List<GeoPoint> |
getWaypoints()
Get the waypoints, including origin and destination, if requested using
RouteManager.ROUTE_OUTPUT_FIELD_WAYPOINTS . |
abstract boolean |
hasClosures()
Gets whether there are road closures along the route.
|
abstract boolean |
isTrafficConsidered()
Gets whether traffic is used in calculating the route.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeToParcel
public abstract String getId()
public abstract List<Incident> getIncidents()
public abstract List<DangerousSlowdown> getDangerousSlowdowns()
public abstract List<GeoPoint> getPoints()
public abstract List<GeoPoint> getWaypoints()
RouteManager.ROUTE_OUTPUT_FIELD_WAYPOINTS
.List
if not a requested output.public GeoPoint getOrigin()
GeoPoint
, may be null for a invalid or null route.public GeoPoint getDestination()
GeoPoint
, may be null for a invalid or null route.public abstract List<Route.Bucket> getSpeedBuckets()
Route
.List
of speed buckets.public abstract double getTotalDistance()
UserPreferences
settings.public abstract double getAverageSpeed()
UserPreferences
settings.
If there are any road closures on the route, this value will be zero.public abstract int getAbnormalityMinutes()
public abstract int getTravelTimeMinutes()
public abstract int getUncongestedTravelTimeMinutes()
public abstract int getStatusId()
public abstract int getRouteQuality()
Value | Description | Travel Time |
---|---|---|
0 | Stop and go | Greater than 175% of free flow traffic time. |
1 | Heavy | Between 150% and 175% of free flow traffic time. |
2 | Moderate | Between 125% and 150% of free flow traffic time. |
3 | Free flow | Less than 125% of free flow traffic time. |
255 | Closed | Route is unusable due to a closure or restriction on the route. |
public abstract boolean hasClosures()
public abstract boolean isTrafficConsidered()
public abstract Route.Summary getSummary()
public abstract BoundingBox getBoundingBox()
public abstract String getPolyline()
public int describeContents()
describeContents
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.