new GeocodingRequest(optionsopt)
BeNomad BeMap JavaScript API - GeocodingRequest
Typed request object for `bemap.Geocoder.geocode(request)`. Carrying a
dedicated class (rather than a free-form `options` object) is the marker
the refreshed Geocoder uses to decide between the Promise-based v1.5 path
and the legacy callback-based path — see `bemap-geocoder-v2.js`.
The class is intentionally tolerant: every field is optional and the
server validates the combination. Fluent setters return `this` so the
request can be built in one expression.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Since:
- 1.5.0
- Source:
Methods
toJson() → {Object}
Serialise the request to the JSON shape posted to the BeMap geocoding
endpoint. `null` fields are stripped.
Returns:
- Type
- Object