Class: ChargingTimeResponse

bemap.ChargingTimeResponse(options)

new ChargingTimeResponse(options)

BeNomad BeMap JavaScript API - ChargingTimeResponse (v1.5) Strongly-typed response from `POST service/chargingTime/1.0`. The server payload is `{chargingTime, optimumBatteryChargeLevel}` — exactly two fields. `chargingTime === -1` is the documented error sentinel (zero battery capacity, zero connector power, or zero max charge power on the vehicle). Mirrors `bemap_idea/.../service/v1_0_0/model/chargingTime/ChargingTimeResponse.java`.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
chargingTime Number Seconds, or -1 on server-side error.
optimumBatteryChargeLevel Number Percent — the "knee" of the curve.
Source:

Methods

getChargingTime() → {Number}

Estimated charging time in seconds. Returns `-1` when the server could not compute (zero battery capacity, zero connector power, etc.). Use `isError()` to test for this case ergonomically.
Source:
Returns:
Type
Number

getOptimumBatteryChargeLevel() → {Number}

Battery level (%) above which the charging power starts to taper — the "knee" of the charging curve. Customers plotting a curve typically draw a steep line from `remainingBatteryLevel` to this value, then a flatter line from here to `chargingBatteryLevel`.
Source:
Returns:
Type
Number

isError() → {Boolean}

`true` when the server returned the documented -1 error sentinel.
Source:
Returns:
Type
Boolean