Interface RouteTrafficOptions.Builder

    • Method Detail

      • flowEventThresholdOverride

        RouteTrafficOptions.Builder flowEventThresholdOverride​(Long flowEventThresholdOverride)

        Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data.

        Parameters:
        flowEventThresholdOverride - Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • usage

        RouteTrafficOptions.Builder usage​(String usage)

        Determines if traffic should be used or ignored while calculating the route.

        Default Value: UseTrafficData

        Parameters:
        usage - Determines if traffic should be used or ignored while calculating the route.

        Default Value: UseTrafficData

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TrafficUsage, TrafficUsage
      • usage

        RouteTrafficOptions.Builder usage​(TrafficUsage usage)

        Determines if traffic should be used or ignored while calculating the route.

        Default Value: UseTrafficData

        Parameters:
        usage - Determines if traffic should be used or ignored while calculating the route.

        Default Value: UseTrafficData

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TrafficUsage, TrafficUsage