public class TravelTime extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TravelTime.RouteQuality
The route traffic quality.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesRouteHaveClosures()
Gets whether the route has closures at the specific departure time.
|
int |
getAbnormailityMinutes()
Gets the deviation from the uncongested time for this route when started at the departure time.
|
Date |
getArrivalTime()
Gets the arrival time.
|
double |
getAverageSpeed()
Gets the average speed for this route when started at the specified departure time.
|
Date |
getDepartureTime()
Gets the departure time.
|
TravelTime.RouteQuality |
getRouteQuality(int uncongestedMinutes)
Gets the quality of the traffic on the route based on a comparison to uncongested travel time.
|
int |
getTravelTime()
Gets the travel time for this route when started at the departure time.
|
boolean |
isRouteRestricted()
Gets whether the route has restrictions at the specified departure time.
|
public Date getDepartureTime()
null
if the departure time is null
or invalid.public Date getArrivalTime()
null
if the arrival time is null
or invalid.public int getTravelTime()
public int getAbnormailityMinutes()
public double getAverageSpeed()
public boolean doesRouteHaveClosures()
true
if the route would have closures at the specified departure time;
false
if there will not be any route closures.public boolean isRouteRestricted()
true
if the route would have restrictions at the specified departure time;
false
if there will not be any route restrictions.public TravelTime.RouteQuality getRouteQuality(int uncongestedMinutes)
uncongestedMinutes
- The uncongested travel time.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.