Class EVChargingTariffElementCondition

java.lang.Object
com.here.sdk.search.EVChargingTariffElementCondition

public final class EVChargingTariffElementCondition extends Object

Condition that the charging session needs to meet to apply the tariff element. Tariff elements may include conditions that define when they apply:

  • Time of day (e.g., 22:00–06:00)
  • Day of week (e.g., weekends only)
  • Date range (e.g., seasonal pricing)
  • Charging session duration
  • Battery level thresholds (e.g., overstay fees)

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Field Details

    • date

      @Nullable public DateRange date

      Date range when the tariff element is valid. This is typically used to indicate seasonal tariffs or to announce an update to the tariff in advance. It may also be used to indicate spot prices, together with time period.

    • days

      @NonNull public List<DayOfWeek> days

      Day(s) of the week when the tariff element is valid. An example would be to specify lower prices for weekends

    • time

      @Nullable public TimeOfDayRange time

      Time period when the tariff element is valid, in local time. The time period wraps around to the next day, when end time of the period TimeOfDayRange.to is smaller than the beginning TimeOfDayRange.from.

    • duration

      @Nullable public EVChargingDurationRange duration

      Duration of the charging session when the tariff element is valid, in seconds.

      Often only either one of the values is present, indicating the minimum or maximum duration.

    • overstayBatteryLevel

      @Nullable public Integer overstayBatteryLevel

      Minimum battery level when the tariff element is valid, in percentages. This can be used to set additional fees for charging a full or nearly full battery.

  • Constructor Details

    • EVChargingTariffElementCondition

      public EVChargingTariffElementCondition()

      Creates a new instance.

  • Method Details