Class: EvReachableAreaRequest

bemap.EvReachableAreaRequest(optionsopt)

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
Name Type Attributes Default Description
start bemap.Coordinate | Object
vehicle String Vehicle UUID key.
temperature Number Ambient °C.
initBatteryLevel Number <optional>
100
payload Number <optional>
75 kg.
criterias Array.<String> <optional>
`bemap.EvCriterion.*`
weather Boolean <optional>
false
weatherProvider String <optional>
stop bemap.Coordinate | Object <optional>
Optional — when set, the polygon is the area encompassing both start and stop within the battery budget.
polyline Boolean <optional>
true
encodedPolyline Boolean <optional>
false
geoserver String <optional>
Since:
  • 1.5.0
Source:

Methods

toJson() → {Object}

Serialise to the wire body. Suppresses defaults.
Source:
Returns:
Type
Object