Members
config
Properties| Name | Type | Description |
|---|---|---|
config | object | Configuration object |
Methods
(async) buildBboxQuery(params) → {object}
Builds a bounding box query for a given model.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params | object | Parameters for building the query. Properties
|
Returns:
- The modified query object with bounding box conditions.
- Type:
- object
(async) getCountryBbox(item) → {Promise.<(string|undefined)>}
Gets the bounding box for a given country ID. Requires the bajoCommonDb and dobo plugins to be available. Otherwise, it will return undefined.
Parameters:
| Name | Type | Description |
|---|---|---|
item | string | Country ID. |
Returns:
- The bounding box string or undefined if not found.
- Type:
- Promise.<(string|undefined)>
(async) parseBbox(input) → {Promise.<(Array.<number>|undefined)>}
Parses a bounding box input.
Parameters:
| Name | Type | Description |
|---|---|---|
input | string | The bounding box input, either a country ID or coordinates. |
Returns:
- The parsed bounding box coordinates or undefined if not found.
- Type:
- Promise.<(Array.<number>|undefined)>