@aws-sdk/client-geo-places 3.830.0 → 3.834.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/README.md +1 -37
- package/dist-cjs/commands/AutocompleteCommand.js +1 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +466 -2
- package/dist-cjs/protocols/Aws_restJson1.js +59 -0
- package/dist-es/commands/AutocompleteCommand.js +2 -2
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +424 -0
- package/dist-es/protocols/Aws_restJson1.js +59 -0
- package/dist-types/GeoPlaces.d.ts +1 -37
- package/dist-types/GeoPlacesClient.d.ts +1 -37
- package/dist-types/commands/AutocompleteCommand.d.ts +7 -2
- package/dist-types/commands/GeocodeCommand.d.ts +155 -3
- package/dist-types/commands/GetPlaceCommand.d.ts +73 -3
- package/dist-types/commands/ReverseGeocodeCommand.d.ts +71 -3
- package/dist-types/commands/SearchNearbyCommand.d.ts +7 -2
- package/dist-types/commands/SearchTextCommand.d.ts +7 -4
- package/dist-types/commands/SuggestCommand.d.ts +7 -4
- package/dist-types/index.d.ts +1 -37
- package/dist-types/models/models_0.d.ts +586 -270
- package/dist-types/ts3.4/models/models_0.d.ts +166 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,43 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript GeoPlaces Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>
|
|
10
|
-
The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include:
|
|
11
|
-
</p>
|
|
12
|
-
<ul>
|
|
13
|
-
<li>
|
|
14
|
-
<p>Forward and reverse geocoding for addresses and coordinates</p>
|
|
15
|
-
</li>
|
|
16
|
-
<li>
|
|
17
|
-
<p>Comprehensive place searches with detailed information, including:</p>
|
|
18
|
-
<ul>
|
|
19
|
-
<li>
|
|
20
|
-
<p>Business names and addresses</p>
|
|
21
|
-
</li>
|
|
22
|
-
<li>
|
|
23
|
-
<p>Contact information</p>
|
|
24
|
-
</li>
|
|
25
|
-
<li>
|
|
26
|
-
<p>Hours of operation</p>
|
|
27
|
-
</li>
|
|
28
|
-
<li>
|
|
29
|
-
<p>POI (Points of Interest) categories</p>
|
|
30
|
-
</li>
|
|
31
|
-
<li>
|
|
32
|
-
<p>Food types for restaurants</p>
|
|
33
|
-
</li>
|
|
34
|
-
<li>
|
|
35
|
-
<p>Chain affiliation for relevant businesses</p>
|
|
36
|
-
</li>
|
|
37
|
-
</ul>
|
|
38
|
-
</li>
|
|
39
|
-
<li>
|
|
40
|
-
<p>Global data coverage with a wide range of POI categories</p>
|
|
41
|
-
</li>
|
|
42
|
-
<li>
|
|
43
|
-
<p>Regular data updates to ensure accuracy and relevance</p>
|
|
44
|
-
</li>
|
|
45
|
-
</ul>
|
|
9
|
+
<p> The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include: </p> <ul> <li> <p>Forward and reverse geocoding for addresses and coordinates</p> </li> <li> <p>Comprehensive place searches with detailed information, including:</p> <ul> <li> <p>Business names and addresses</p> </li> <li> <p>Contact information</p> </li> <li> <p>Hours of operation</p> </li> <li> <p>POI (Points of Interest) categories</p> </li> <li> <p>Food types for restaurants</p> </li> <li> <p>Chain affiliation for relevant businesses</p> </li> </ul> </li> <li> <p>Global data coverage with a wide range of POI categories</p> </li> <li> <p>Regular data updates to ensure accuracy and relevance</p> </li> </ul>
|
|
46
10
|
|
|
47
11
|
## Installing
|
|
48
12
|
|
|
@@ -19,7 +19,7 @@ class AutocompleteCommand extends smithy_client_1.Command
|
|
|
19
19
|
})
|
|
20
20
|
.s("PlacesService", "Autocomplete", {})
|
|
21
21
|
.n("GeoPlacesClient", "AutocompleteCommand")
|
|
22
|
-
.f(models_0_1.AutocompleteRequestFilterSensitiveLog,
|
|
22
|
+
.f(models_0_1.AutocompleteRequestFilterSensitiveLog, models_0_1.AutocompleteResponseFilterSensitiveLog)
|
|
23
23
|
.ser(Aws_restJson1_1.se_AutocompleteCommand)
|
|
24
24
|
.de(Aws_restJson1_1.de_AutocompleteCommand)
|
|
25
25
|
.build() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [
|
|
4
|
+
const y = "required", z = "fn", A = "argv", B = "ref", C = "url", D = "properties", E = "headers";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [y]: true, "default": false, "type": "Boolean" }, i = { [y]: false, "type": "String" }, j = { [B]: "Endpoint" }, k = { [z]: c, [A]: [{ [B]: "UseFIPS" }, true] }, l = { [z]: c, [A]: [{ [B]: "UseDualStack" }, true] }, m = {}, n = { [z]: "stringEquals", [A]: [{ [z]: "getAttr", [A]: [{ [B]: g }, "name"] }, "aws"] }, o = { [z]: c, [A]: [{ [B]: "UseFIPS" }, false] }, p = { [z]: c, [A]: [{ [B]: "UseDualStack" }, false] }, q = { [C]: "https://places.geo.{Region}.{PartitionResult#dnsSuffix}/v2", [D]: {}, [E]: {} }, r = { [C]: "https://places.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", [D]: {}, [E]: {} }, s = { [C]: "https://places.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", [D]: {}, [E]: {} }, t = { [C]: "https://places.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", [D]: {}, [E]: {} }, u = { [z]: "stringEquals", [A]: [{ [z]: "getAttr", [A]: [{ [B]: g }, "name"] }, "aws-us-gov"] }, v = { [z]: "getAttr", [A]: [{ [B]: g }, "supportsFIPS"] }, w = { [z]: c, [A]: [true, { [z]: "getAttr", [A]: [{ [B]: g }, "supportsDualStack"] }] }, x = [{ [B]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [z]: b, [A]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { [C]: j, [D]: m, [E]: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [z]: b, [A]: x }], rules: [{ conditions: [{ [z]: "aws.partition", [A]: x, assign: g }], rules: [{ conditions: [n, o, p], endpoint: q, type: e }, { conditions: [n, k, l], endpoint: r, type: e }, { conditions: [n, k, p], endpoint: s, type: e }, { conditions: [n, o, l], endpoint: t, type: e }, { conditions: [u, o, p], endpoint: q, type: e }, { conditions: [u, k, l], endpoint: r, type: e }, { conditions: [u, k, p], endpoint: s, type: e }, { conditions: [u, o, l], endpoint: t, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [z]: c, [A]: [a, v] }, w], rules: [{ endpoint: { [C]: "https://geo-places-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, p], rules: [{ conditions: [{ [z]: c, [A]: [v, a] }], rules: [{ endpoint: { [C]: "https://geo-places-fips.{Region}.{PartitionResult#dnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [w], rules: [{ endpoint: { [C]: "https://geo-places.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { [C]: "https://geo-places.{Region}.{PartitionResult#dnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
7
7
|
exports.ruleSet = _data;
|