@cloudnux/aws-cloud-provider 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -134343,6 +134343,7 @@ function createLocationService(config) {
|
|
|
134343
134343
|
const defaultLanguage = config?.language ?? "en";
|
|
134344
134344
|
const defaultCountries = config?.countries ?? ["SWE"];
|
|
134345
134345
|
const defaultMaxResults = 5;
|
|
134346
|
+
const DEFAULT_CENTER = [15, 58];
|
|
134346
134347
|
return {
|
|
134347
134348
|
/**
|
|
134348
134349
|
* Get autocomplete suggestions for search box
|
|
@@ -134355,15 +134356,16 @@ function createLocationService(config) {
|
|
|
134355
134356
|
QueryText: params.query,
|
|
134356
134357
|
MaxResults: params.maxResults ?? defaultMaxResults,
|
|
134357
134358
|
Language: params.language ?? defaultLanguage,
|
|
134358
|
-
//
|
|
134359
|
+
//BiasPosition for geographic bias
|
|
134359
134360
|
BiasPosition: params.biasPosition ? [
|
|
134360
134361
|
params.biasPosition.lng,
|
|
134361
134362
|
params.biasPosition.lat
|
|
134362
|
-
] :
|
|
134363
|
-
//
|
|
134363
|
+
] : DEFAULT_CENTER,
|
|
134364
|
+
//Filter by countries
|
|
134364
134365
|
Filter: {
|
|
134365
134366
|
IncludeCountries: params.countries ?? defaultCountries
|
|
134366
|
-
}
|
|
134367
|
+
},
|
|
134368
|
+
AdditionalFeatures: ["Core"]
|
|
134367
134369
|
});
|
|
134368
134370
|
const response = await geoPlacesClient.send(command);
|
|
134369
134371
|
let results = response.ResultItems ?? [];
|