Class ChargingStop

  • java.lang.Object
    • com.here.sdk.routing.ChargingStop

  • public final class ChargingStop
    extends java.lang.Object

    The options to specify a user-planned charging stop. Note: In order to specify this ChargingStop, it is also required to set [sdk.routing.BatterySpecifications.total_capacity_in_kilowatt_hours], [sdk.routing.BatterySpecifications.initial_charge_in_kilowatt_hours], and [sdk.routing.BatterySpecifications.charging_curve]. Without all of them, the route calculation will fail as an invalid parameter error.

    • Field Detail

      • powerInKilowatts

        public double powerInKilowatts

        The value of rated power of the connector (in kW).

      • currentInAmperes

        public double currentInAmperes

        The value of rated current of the connector (in A).

      • voltageInVolts

        public double voltageInVolts

        The value of rated voltage of the connector (in V).

      • supplyType

        @Nullable
        public ChargingSupplyType supplyType

        Supply type of the suggested connector.

      • minDuration

        @Nullable
        public Duration minDuration

        The minimum duration the user expects to charge at the station, including BatterySpecifications.chargingSetupDuration. Note: At least one of min_duration and max_duration is required for a user-planned charging stop. For most use cases, providing at least min_duration is recommended.

      • maxDuration

        @Nullable
        public Duration maxDuration

        The maximum duration the user plans to charge at the station, including BatterySpecifications.chargingSetupDuration. Note: At least one of min_duration and max_duration is required for a user-planned charging stop. For most use cases, providing at least min_duration is recommended.

    • Constructor Detail

      • ChargingStop

        public ChargingStop()

        Creates a new instance.

      • ChargingStop

        public ChargingStop​(double powerInKilowatts,
                            double currentInAmperes,
                            double voltageInVolts,
                            @Nullable
                            ChargingSupplyType supplyType,
                            @Nullable
                            Duration minDuration,
                            @Nullable
                            Duration maxDuration)

        Creates a new instance.

        Parameters:
        powerInKilowatts -

        The value of rated power of the connector (in kW).

        currentInAmperes -

        The value of rated current of the connector (in A).

        voltageInVolts -

        The value of rated voltage of the connector (in V).

        supplyType -

        Supply type of the suggested connector.

        minDuration -

        The minimum duration the user expects to charge at the station, including BatterySpecifications.chargingSetupDuration. Note: At least one of min_duration and max_duration is required for a user-planned charging stop. For most use cases, providing at least min_duration is recommended.

        maxDuration -

        The maximum duration the user plans to charge at the station, including BatterySpecifications.chargingSetupDuration. Note: At least one of min_duration and max_duration is required for a user-planned charging stop. For most use cases, providing at least min_duration is recommended.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object