Interface IsolineTrafficOptions.Builder

  • Method Details

    • flowEventThresholdOverride

      IsolineTrafficOptions.Builder flowEventThresholdOverride(Long flowEventThresholdOverride)

      The duration in seconds that real-time congestion data is considered valid before reverting to historical traffic patterns. This helps balance between using current conditions and more predictable historical data when calculating travel times.

      Unit: seconds

      Parameters:
      flowEventThresholdOverride - The duration in seconds that real-time congestion data is considered valid before reverting to historical traffic patterns. This helps balance between using current conditions and more predictable historical data when calculating travel times.

      Unit: seconds

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

      Controls whether traffic data is used in calculations. UseTrafficData considers both real-time congestion and historical patterns, while IgnoreTrafficData calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.

      Default value: UseTrafficData

      Parameters:
      usage - Controls whether traffic data is used in calculations. UseTrafficData considers both real-time congestion and historical patterns, while IgnoreTrafficData calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.

      Default value: UseTrafficData

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

      Controls whether traffic data is used in calculations. UseTrafficData considers both real-time congestion and historical patterns, while IgnoreTrafficData calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.

      Default value: UseTrafficData

      Parameters:
      usage - Controls whether traffic data is used in calculations. UseTrafficData considers both real-time congestion and historical patterns, while IgnoreTrafficData calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.

      Default value: UseTrafficData

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