Class DynamicRoutingEngineOptions

java.lang.Object
com.here.sdk.trafficawarenavigation.DynamicRoutingEngineOptions

public final class DynamicRoutingEngineOptions extends Object

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 Details

    • minTimeDifferencePercentage

      @Nullable public Double 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 null meaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults to null.

    • minTimeDifference

      @Nullable public Duration 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 as null meaning no event will be sent. In order to receive events the difference needs to be greater than 0. Defaults to null.

    • pollInterval

      @NonNull public Duration 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