Class RouteMatrixTrafficOptions

    • Method Detail

      • flowEventThresholdOverride

        public final 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.

        Returns:
        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.
      • usage

        public final TrafficUsage usage()

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

        Default Value: UseTrafficData

        If the service returns an enum value that is not available in the current SDK version, usage will return TrafficUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from usageAsString().

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

        Default Value: UseTrafficData

        See Also:
        TrafficUsage
      • usageAsString

        public final String usageAsString()

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

        Default Value: UseTrafficData

        If the service returns an enum value that is not available in the current SDK version, usage will return TrafficUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from usageAsString().

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

        Default Value: UseTrafficData

        See Also:
        TrafficUsage
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)