DynamicRoutingEngineOptions (API Reference)
Class DynamicRoutingEngineOptions
Options defining the behavior of the DynamicRoutingEngine.
Both, minTimeDifference and minTimeDifferencePercentage, will be checked:
When the poll interval is reached, the smaller difference will win and
the DynamicRoutingListener is notified.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe minimum time difference, before notifying theDynamicRoutingListener.The value is in the range of [0, 1] over the remaining (current position to next waypoint) To get notified, the following check must be true: oldEstimatedTimeOfArrival - newEstimatedTimeOfArrival >= newRouteDuration * [min_time_difference_percentage].The poll interval. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
minTimeDifferencePercentage
The value is in the range of [0, 1] over the remaining (current position to next waypoint) To get notified, the following check must be true: oldEstimatedTimeOfArrival - newEstimatedTimeOfArrival >= newRouteDuration * [min_time_difference_percentage]. A value of 0 will be treated as
nullmeaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults tonull. -
minTimeDifference
The minimum time difference, before notifying the
DynamicRoutingListener. To get notified, the following check must be true: oldEstimatedTimeOfArrival - newEstimatedTimeOfArrival >minTimeDifference. A value of 0 will be treated asnullmeaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults tonull. -
pollInterval
The poll interval. Zero duration triggers a route calculation with each position update. Triggered via
DynamicRoutingEngine.updateCurrentLocation(com.here.sdk.navigation.MapMatchedLocation, int)Defaults to 15 minutes.
-
-
Constructor Details
-
DynamicRoutingEngineOptions
public DynamicRoutingEngineOptions()Creates an instance of this class.
-
-
Method Details