public static final class RouteManager.TravelTimeOptions extends Object
Constructor and Description |
---|
TravelTimeOptions(Route route,
int travelTimeCount,
long travelTimeIntervalMs)
Initializes a new instance of the
RouteManager.TravelTimeOptions class. |
Modifier and Type | Method and Description |
---|---|
RouteManager.TravelTimeOptions |
setArrivalTime(Date value)
Sets the arrival time.
|
RouteManager.TravelTimeOptions |
setDepartureTime(Date value)
Sets the departure time.
|
RouteManager.TravelTimeOptions |
setRoute(Route route)
Sets the route to request travel times for.
|
RouteManager.TravelTimeOptions |
setTravelTimeCount(int value)
Sets the number of travel times to return.
|
RouteManager.TravelTimeOptions |
setTravelTimeIntervalMs(long value)
Sets the travel times interval, which specifies the amount of time between
starting times for the travel time calculation.
|
String |
toString() |
public TravelTimeOptions(Route route, int travelTimeCount, long travelTimeIntervalMs)
RouteManager.TravelTimeOptions
class.route
- The route, which can be obtained using RouteManager.requestRoutes(RequestRouteOptions, IRouteResponseListener)
.travelTimeCount
- Travel time count, must be between RouteManager.MINIMUM_TRAVEL_TIME_COUNT
and RouteManager.MAXIMUM_TRAVEL_TIME_COUNT
.travelTimeIntervalMs
- Travel time interval (in milliseconds), must be between RouteManager.MINIMUM_TRAVEL_TIME_INTERVAL_MS
and RouteManager.MAXIMUM_TRAVEL_TIME_INTERVAL_MS
.RouteManager.RouteManagerException
- Thrown when
route
is null or invalid. See: RouteManager.TravelTimeOptions.setRoute(Route)
travelTimeCount
is out of range. See: RouteManager.TravelTimeOptions.travelTimeCount
travelTimeIntervalMs
is out of range. See: RouteManager.TravelTimeOptions.setTravelTimeIntervalMs(long)
public RouteManager.TravelTimeOptions setRoute(Route route)
route
- The route.RouteManager.TravelTimeOptions
class.RouteManager.RouteManagerException
- when route
is null
or invalid.public RouteManager.TravelTimeOptions setTravelTimeCount(int value)
value
- Travel time count, must be between RouteManager.MINIMUM_TRAVEL_TIME_COUNT
and RouteManager.MAXIMUM_TRAVEL_TIME_COUNT
.RouteManager.TravelTimeOptions
class.RouteManager.RouteManagerException
- when the number of travel times is out of range.public RouteManager.TravelTimeOptions setTravelTimeIntervalMs(long value)
value
- Travel time interval (in milliseconds), must be between RouteManager.MINIMUM_TRAVEL_TIME_INTERVAL_MS
and RouteManager.MAXIMUM_TRAVEL_TIME_INTERVAL_MS
.RouteManager.TravelTimeOptions
class.RouteManager.RouteManagerException
- when the travel times interval is out of range.public RouteManager.TravelTimeOptions setDepartureTime(Date value)
value
- The time of departure. Defaults to the current time if neither this nor the arrival time is specified.public RouteManager.TravelTimeOptions setArrivalTime(Date value)
value
- The time of arrival. Defaults to the current time if neither this nor the departure time is specified.RouteManager.TravelTimeOptions
class.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.