new EvReachableAreaRequest(optionsopt)
BeNomad BeMap JavaScript API - EvReachableAreaRequest (v1.5)
Strongly-typed request builder for `POST service/evreachablearea/1.0`.
Returns a polygon describing the area an EV can reach from a start
coordinate given its battery and ambient conditions.
Wire shape cross-checked against
`bemap_idea/.../service/v1_0_0/model/evReachableArea/EvReachableAreaRequest.java`.
Required:
- `start` — `bemap.Coordinate` or `{lon, lat}`.
- `vehicle` — UUID key.
- `temperature` — int °C (server marks this `required = true`).
Example:
var req = new bemap.EvReachableAreaRequest({
start: new bemap.Coordinate(2.35, 48.85),
vehicle: 'a204c816-...',
temperature: 18,
initBatteryLevel: 80,
payload: 75,
criterias: [bemap.EvCriterion.AVOID_TOLLS]
});
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Since:
- 1.5.0
- Source:
Methods
toJson() → {Object}
Serialise to the wire body. Suppresses defaults.
Returns:
- Type
- Object