new ChargingStationSearchRequest(optionsopt)
BeNomad BeMap JavaScript API - ChargingStationSearchRequest (v1.5)
Strongly-typed request builder for `POST service/chargingstation/search/1.0`.
Wire shape cross-checked against the BeMap server contract in
`bemap_idea/.../service/v1_0_0/model/chargingStation/ChargingStationSearchRequest.java`
and verified live on `bemap-beta.benomad.com`.
Required: at least one provider name (`providers`) AND one spatial
selector — `coordinate` + `radius`, `corridor` + `radius`, or `boundingBox`.
Example — circular search around Paris:
var req = new bemap.ChargingStationSearchRequest({
providers: ['ecoMovement'],
coordinate: new bemap.Coordinate(2.35, 48.85),
radius: 2000,
maxPoolResult: 25,
options: [bemap.ChargingStationOption.PATH_POOL_MAP]
});
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Since:
- 1.5.0
- Source:
Methods
toJson() → {Object}
Serialise the request to the JSON shape consumed by the BeMap server.
Null / empty fields are dropped so the payload stays minimal.
Returns:
- Type
- Object