@aws-sdk/client-geo-places 3.683.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/LICENSE +201 -0
- package/README.md +297 -0
- package/dist-cjs/GeoPlaces.js +25 -0
- package/dist-cjs/GeoPlacesClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AutocompleteCommand.js +27 -0
- package/dist-cjs/commands/GeocodeCommand.js +27 -0
- package/dist-cjs/commands/GetPlaceCommand.js +27 -0
- package/dist-cjs/commands/ReverseGeocodeCommand.js +27 -0
- package/dist-cjs/commands/SearchNearbyCommand.js +27 -0
- package/dist-cjs/commands/SearchTextCommand.js +27 -0
- package/dist-cjs/commands/SuggestCommand.js +27 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/GeoPlacesServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +379 -0
- package/dist-cjs/protocols/Aws_restJson1.js +690 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/GeoPlaces.js +21 -0
- package/dist-es/GeoPlacesClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AutocompleteCommand.js +23 -0
- package/dist-es/commands/GeocodeCommand.js +23 -0
- package/dist-es/commands/GetPlaceCommand.js +23 -0
- package/dist-es/commands/ReverseGeocodeCommand.js +23 -0
- package/dist-es/commands/SearchNearbyCommand.js +23 -0
- package/dist-es/commands/SearchTextCommand.js +23 -0
- package/dist-es/commands/SuggestCommand.js +23 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/GeoPlacesServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +345 -0
- package/dist-es/protocols/Aws_restJson1.js +673 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/GeoPlaces.d.ts +97 -0
- package/dist-types/GeoPlacesClient.d.ts +212 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AutocompleteCommand.d.ts +204 -0
- package/dist-types/commands/GeocodeCommand.d.ts +231 -0
- package/dist-types/commands/GetPlaceCommand.d.ts +312 -0
- package/dist-types/commands/ReverseGeocodeCommand.d.ts +196 -0
- package/dist-types/commands/SearchNearbyCommand.d.ts +335 -0
- package/dist-types/commands/SearchTextCommand.d.ts +326 -0
- package/dist-types/commands/SuggestCommand.d.ts +289 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +49 -0
- package/dist-types/models/GeoPlacesServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2871 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +65 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/GeoPlaces.d.ts +126 -0
- package/dist-types/ts3.4/GeoPlacesClient.d.ts +160 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AutocompleteCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GeocodeCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/GetPlaceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ReverseGeocodeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/SearchNearbyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/SearchTextCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/SuggestCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +8 -0
- package/dist-types/ts3.4/models/GeoPlacesServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +786 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GeoPlacesClient";
|
|
4
|
+
import { AutocompleteRequest, AutocompleteResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AutocompleteCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AutocompleteCommandInput extends AutocompleteRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AutocompleteCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AutocompleteCommandOutput extends AutocompleteResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AutocompleteCommand_base: {
|
|
25
|
+
new (input: AutocompleteCommandInput): import("@smithy/smithy-client").CommandImpl<AutocompleteCommandInput, AutocompleteCommandOutput, GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AutocompleteCommandInput): import("@smithy/smithy-client").CommandImpl<AutocompleteCommandInput, AutocompleteCommandOutput, GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>The autocomplete operation speeds up and increases the accuracy of entering addresses by providing a list of address candidates matching a partially entered address. Results are sorted from most to least matching. Filtering and biasing can be used to increase the relevance of the results if additional search context is known</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { GeoPlacesClient, AutocompleteCommand } from "@aws-sdk/client-geo-places"; // ES Modules import
|
|
35
|
+
* // const { GeoPlacesClient, AutocompleteCommand } = require("@aws-sdk/client-geo-places"); // CommonJS import
|
|
36
|
+
* const client = new GeoPlacesClient(config);
|
|
37
|
+
* const input = { // AutocompleteRequest
|
|
38
|
+
* QueryText: "STRING_VALUE", // required
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* BiasPosition: [ // Position
|
|
41
|
+
* Number("double"),
|
|
42
|
+
* ],
|
|
43
|
+
* Filter: { // AutocompleteFilter
|
|
44
|
+
* BoundingBox: [ // BoundingBox
|
|
45
|
+
* Number("double"),
|
|
46
|
+
* ],
|
|
47
|
+
* Circle: { // FilterCircle
|
|
48
|
+
* Center: [ // required
|
|
49
|
+
* Number("double"),
|
|
50
|
+
* ],
|
|
51
|
+
* Radius: Number("long"), // required
|
|
52
|
+
* },
|
|
53
|
+
* IncludeCountries: [ // CountryCodeList
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* IncludePlaceTypes: [ // AutocompleteFilterPlaceTypeList
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* PostalCodeMode: "STRING_VALUE",
|
|
61
|
+
* AdditionalFeatures: [ // AutocompleteAdditionalFeatureList
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* Language: "STRING_VALUE",
|
|
65
|
+
* PoliticalView: "STRING_VALUE",
|
|
66
|
+
* IntendedUse: "STRING_VALUE",
|
|
67
|
+
* Key: "STRING_VALUE",
|
|
68
|
+
* };
|
|
69
|
+
* const command = new AutocompleteCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* // { // AutocompleteResponse
|
|
72
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
73
|
+
* // ResultItems: [ // AutocompleteResultItemList
|
|
74
|
+
* // { // AutocompleteResultItem
|
|
75
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
76
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
77
|
+
* // Title: "STRING_VALUE", // required
|
|
78
|
+
* // Address: { // Address
|
|
79
|
+
* // Label: "STRING_VALUE",
|
|
80
|
+
* // Country: { // Country
|
|
81
|
+
* // Code2: "STRING_VALUE",
|
|
82
|
+
* // Code3: "STRING_VALUE",
|
|
83
|
+
* // Name: "STRING_VALUE",
|
|
84
|
+
* // },
|
|
85
|
+
* // Region: { // Region
|
|
86
|
+
* // Code: "STRING_VALUE",
|
|
87
|
+
* // Name: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // SubRegion: { // SubRegion
|
|
90
|
+
* // Code: "STRING_VALUE",
|
|
91
|
+
* // Name: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // Locality: "STRING_VALUE",
|
|
94
|
+
* // District: "STRING_VALUE",
|
|
95
|
+
* // SubDistrict: "STRING_VALUE",
|
|
96
|
+
* // PostalCode: "STRING_VALUE",
|
|
97
|
+
* // Block: "STRING_VALUE",
|
|
98
|
+
* // SubBlock: "STRING_VALUE",
|
|
99
|
+
* // Intersection: [ // IntersectionList
|
|
100
|
+
* // "STRING_VALUE",
|
|
101
|
+
* // ],
|
|
102
|
+
* // Street: "STRING_VALUE",
|
|
103
|
+
* // StreetComponents: [ // StreetComponentsList
|
|
104
|
+
* // { // StreetComponents
|
|
105
|
+
* // BaseName: "STRING_VALUE",
|
|
106
|
+
* // Type: "STRING_VALUE",
|
|
107
|
+
* // TypePlacement: "STRING_VALUE",
|
|
108
|
+
* // TypeSeparator: "STRING_VALUE",
|
|
109
|
+
* // Prefix: "STRING_VALUE",
|
|
110
|
+
* // Suffix: "STRING_VALUE",
|
|
111
|
+
* // Direction: "STRING_VALUE",
|
|
112
|
+
* // Language: "STRING_VALUE",
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
115
|
+
* // AddressNumber: "STRING_VALUE",
|
|
116
|
+
* // Building: "STRING_VALUE",
|
|
117
|
+
* // },
|
|
118
|
+
* // Distance: Number("long"),
|
|
119
|
+
* // Language: "STRING_VALUE",
|
|
120
|
+
* // PoliticalView: "STRING_VALUE",
|
|
121
|
+
* // Highlights: { // AutocompleteHighlights
|
|
122
|
+
* // Title: [ // HighlightList
|
|
123
|
+
* // { // Highlight
|
|
124
|
+
* // StartIndex: Number("int"),
|
|
125
|
+
* // EndIndex: Number("int"),
|
|
126
|
+
* // Value: "STRING_VALUE",
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // Address: { // AutocompleteAddressHighlights
|
|
130
|
+
* // Label: [
|
|
131
|
+
* // {
|
|
132
|
+
* // StartIndex: Number("int"),
|
|
133
|
+
* // EndIndex: Number("int"),
|
|
134
|
+
* // Value: "STRING_VALUE",
|
|
135
|
+
* // },
|
|
136
|
+
* // ],
|
|
137
|
+
* // Country: { // CountryHighlights
|
|
138
|
+
* // Code: "<HighlightList>",
|
|
139
|
+
* // Name: "<HighlightList>",
|
|
140
|
+
* // },
|
|
141
|
+
* // Region: { // RegionHighlights
|
|
142
|
+
* // Code: "<HighlightList>",
|
|
143
|
+
* // Name: "<HighlightList>",
|
|
144
|
+
* // },
|
|
145
|
+
* // SubRegion: { // SubRegionHighlights
|
|
146
|
+
* // Code: "<HighlightList>",
|
|
147
|
+
* // Name: "<HighlightList>",
|
|
148
|
+
* // },
|
|
149
|
+
* // Locality: "<HighlightList>",
|
|
150
|
+
* // District: "<HighlightList>",
|
|
151
|
+
* // SubDistrict: "<HighlightList>",
|
|
152
|
+
* // Street: "<HighlightList>",
|
|
153
|
+
* // Block: "<HighlightList>",
|
|
154
|
+
* // SubBlock: "<HighlightList>",
|
|
155
|
+
* // Intersection: [ // IntersectionHighlightsList
|
|
156
|
+
* // "<HighlightList>",
|
|
157
|
+
* // ],
|
|
158
|
+
* // PostalCode: "<HighlightList>",
|
|
159
|
+
* // AddressNumber: "<HighlightList>",
|
|
160
|
+
* // Building: "<HighlightList>",
|
|
161
|
+
* // },
|
|
162
|
+
* // },
|
|
163
|
+
* // },
|
|
164
|
+
* // ],
|
|
165
|
+
* // };
|
|
166
|
+
*
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @param AutocompleteCommandInput - {@link AutocompleteCommandInput}
|
|
170
|
+
* @returns {@link AutocompleteCommandOutput}
|
|
171
|
+
* @see {@link AutocompleteCommandInput} for command's `input` shape.
|
|
172
|
+
* @see {@link AutocompleteCommandOutput} for command's `response` shape.
|
|
173
|
+
* @see {@link GeoPlacesClientResolvedConfig | config} for GeoPlacesClient's `config` shape.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
176
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
177
|
+
*
|
|
178
|
+
* @throws {@link InternalServerException} (server fault)
|
|
179
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
180
|
+
*
|
|
181
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
182
|
+
* <p>The request was denied due to request throttling.</p>
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link ValidationException} (client fault)
|
|
185
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link GeoPlacesServiceException}
|
|
188
|
+
* <p>Base exception class for all service exceptions from GeoPlaces service.</p>
|
|
189
|
+
*
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
export declare class AutocompleteCommand extends AutocompleteCommand_base {
|
|
193
|
+
/** @internal type navigation helper, not in runtime. */
|
|
194
|
+
protected static __types: {
|
|
195
|
+
api: {
|
|
196
|
+
input: AutocompleteRequest;
|
|
197
|
+
output: AutocompleteResponse;
|
|
198
|
+
};
|
|
199
|
+
sdk: {
|
|
200
|
+
input: AutocompleteCommandInput;
|
|
201
|
+
output: AutocompleteCommandOutput;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GeoPlacesClient";
|
|
4
|
+
import { GeocodeRequest, GeocodeResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GeocodeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GeocodeCommandInput extends GeocodeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GeocodeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GeocodeCommandOutput extends GeocodeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GeocodeCommand_base: {
|
|
25
|
+
new (input: GeocodeCommandInput): import("@smithy/smithy-client").CommandImpl<GeocodeCommandInput, GeocodeCommandOutput, GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GeocodeCommandInput]): import("@smithy/smithy-client").CommandImpl<GeocodeCommandInput, GeocodeCommandOutput, GeoPlacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>The <code>Geocode</code> action allows you to obtain coordinates, addresses, and other
|
|
31
|
+
* information about places.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { GeoPlacesClient, GeocodeCommand } from "@aws-sdk/client-geo-places"; // ES Modules import
|
|
36
|
+
* // const { GeoPlacesClient, GeocodeCommand } = require("@aws-sdk/client-geo-places"); // CommonJS import
|
|
37
|
+
* const client = new GeoPlacesClient(config);
|
|
38
|
+
* const input = { // GeocodeRequest
|
|
39
|
+
* QueryText: "STRING_VALUE",
|
|
40
|
+
* QueryComponents: { // GeocodeQueryComponents
|
|
41
|
+
* Country: "STRING_VALUE",
|
|
42
|
+
* Region: "STRING_VALUE",
|
|
43
|
+
* SubRegion: "STRING_VALUE",
|
|
44
|
+
* Locality: "STRING_VALUE",
|
|
45
|
+
* District: "STRING_VALUE",
|
|
46
|
+
* Street: "STRING_VALUE",
|
|
47
|
+
* AddressNumber: "STRING_VALUE",
|
|
48
|
+
* PostalCode: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* MaxResults: Number("int"),
|
|
51
|
+
* BiasPosition: [ // Position
|
|
52
|
+
* Number("double"),
|
|
53
|
+
* ],
|
|
54
|
+
* Filter: { // GeocodeFilter
|
|
55
|
+
* IncludeCountries: [ // CountryCodeList
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* IncludePlaceTypes: [ // GeocodeFilterPlaceTypeList
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* AdditionalFeatures: [ // GeocodeAdditionalFeatureList
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* Language: "STRING_VALUE",
|
|
66
|
+
* PoliticalView: "STRING_VALUE",
|
|
67
|
+
* IntendedUse: "STRING_VALUE",
|
|
68
|
+
* Key: "STRING_VALUE",
|
|
69
|
+
* };
|
|
70
|
+
* const command = new GeocodeCommand(input);
|
|
71
|
+
* const response = await client.send(command);
|
|
72
|
+
* // { // GeocodeResponse
|
|
73
|
+
* // PricingBucket: "STRING_VALUE", // required
|
|
74
|
+
* // ResultItems: [ // GeocodeResultItemList
|
|
75
|
+
* // { // GeocodeResultItem
|
|
76
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
77
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
78
|
+
* // Title: "STRING_VALUE", // required
|
|
79
|
+
* // Address: { // Address
|
|
80
|
+
* // Label: "STRING_VALUE",
|
|
81
|
+
* // Country: { // Country
|
|
82
|
+
* // Code2: "STRING_VALUE",
|
|
83
|
+
* // Code3: "STRING_VALUE",
|
|
84
|
+
* // Name: "STRING_VALUE",
|
|
85
|
+
* // },
|
|
86
|
+
* // Region: { // Region
|
|
87
|
+
* // Code: "STRING_VALUE",
|
|
88
|
+
* // Name: "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // SubRegion: { // SubRegion
|
|
91
|
+
* // Code: "STRING_VALUE",
|
|
92
|
+
* // Name: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // Locality: "STRING_VALUE",
|
|
95
|
+
* // District: "STRING_VALUE",
|
|
96
|
+
* // SubDistrict: "STRING_VALUE",
|
|
97
|
+
* // PostalCode: "STRING_VALUE",
|
|
98
|
+
* // Block: "STRING_VALUE",
|
|
99
|
+
* // SubBlock: "STRING_VALUE",
|
|
100
|
+
* // Intersection: [ // IntersectionList
|
|
101
|
+
* // "STRING_VALUE",
|
|
102
|
+
* // ],
|
|
103
|
+
* // Street: "STRING_VALUE",
|
|
104
|
+
* // StreetComponents: [ // StreetComponentsList
|
|
105
|
+
* // { // StreetComponents
|
|
106
|
+
* // BaseName: "STRING_VALUE",
|
|
107
|
+
* // Type: "STRING_VALUE",
|
|
108
|
+
* // TypePlacement: "STRING_VALUE",
|
|
109
|
+
* // TypeSeparator: "STRING_VALUE",
|
|
110
|
+
* // Prefix: "STRING_VALUE",
|
|
111
|
+
* // Suffix: "STRING_VALUE",
|
|
112
|
+
* // Direction: "STRING_VALUE",
|
|
113
|
+
* // Language: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // AddressNumber: "STRING_VALUE",
|
|
117
|
+
* // Building: "STRING_VALUE",
|
|
118
|
+
* // },
|
|
119
|
+
* // AddressNumberCorrected: true || false,
|
|
120
|
+
* // PostalCodeDetails: [ // PostalCodeDetailsList
|
|
121
|
+
* // { // PostalCodeDetails
|
|
122
|
+
* // PostalCode: "STRING_VALUE",
|
|
123
|
+
* // PostalAuthority: "STRING_VALUE",
|
|
124
|
+
* // PostalCodeType: "STRING_VALUE",
|
|
125
|
+
* // UspsZip: { // UspsZip
|
|
126
|
+
* // ZipClassificationCode: "STRING_VALUE",
|
|
127
|
+
* // },
|
|
128
|
+
* // UspsZipPlus4: { // UspsZipPlus4
|
|
129
|
+
* // RecordTypeCode: "STRING_VALUE",
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // ],
|
|
133
|
+
* // Position: [ // Position
|
|
134
|
+
* // Number("double"),
|
|
135
|
+
* // ],
|
|
136
|
+
* // Distance: Number("long"),
|
|
137
|
+
* // MapView: [ // BoundingBox
|
|
138
|
+
* // Number("double"),
|
|
139
|
+
* // ],
|
|
140
|
+
* // Categories: [ // CategoryList
|
|
141
|
+
* // { // Category
|
|
142
|
+
* // Id: "STRING_VALUE", // required
|
|
143
|
+
* // Name: "STRING_VALUE", // required
|
|
144
|
+
* // LocalizedName: "STRING_VALUE",
|
|
145
|
+
* // Primary: true || false,
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // FoodTypes: [ // FoodTypeList
|
|
149
|
+
* // { // FoodType
|
|
150
|
+
* // LocalizedName: "STRING_VALUE", // required
|
|
151
|
+
* // Id: "STRING_VALUE",
|
|
152
|
+
* // Primary: true || false,
|
|
153
|
+
* // },
|
|
154
|
+
* // ],
|
|
155
|
+
* // AccessPoints: [ // AccessPointList
|
|
156
|
+
* // { // AccessPoint
|
|
157
|
+
* // Position: [
|
|
158
|
+
* // Number("double"),
|
|
159
|
+
* // ],
|
|
160
|
+
* // },
|
|
161
|
+
* // ],
|
|
162
|
+
* // TimeZone: { // TimeZone
|
|
163
|
+
* // Name: "STRING_VALUE", // required
|
|
164
|
+
* // Offset: "STRING_VALUE",
|
|
165
|
+
* // OffsetSeconds: Number("long"),
|
|
166
|
+
* // },
|
|
167
|
+
* // PoliticalView: "STRING_VALUE",
|
|
168
|
+
* // MatchScores: { // MatchScoreDetails
|
|
169
|
+
* // Overall: Number("double"),
|
|
170
|
+
* // Components: { // ComponentMatchScores
|
|
171
|
+
* // Title: Number("double"),
|
|
172
|
+
* // Address: { // AddressComponentMatchScores
|
|
173
|
+
* // Country: Number("double"),
|
|
174
|
+
* // Region: Number("double"),
|
|
175
|
+
* // SubRegion: Number("double"),
|
|
176
|
+
* // Locality: Number("double"),
|
|
177
|
+
* // District: Number("double"),
|
|
178
|
+
* // SubDistrict: Number("double"),
|
|
179
|
+
* // PostalCode: Number("double"),
|
|
180
|
+
* // Block: Number("double"),
|
|
181
|
+
* // SubBlock: Number("double"),
|
|
182
|
+
* // Intersection: [ // MatchScoreList
|
|
183
|
+
* // Number("double"),
|
|
184
|
+
* // ],
|
|
185
|
+
* // AddressNumber: Number("double"),
|
|
186
|
+
* // Building: Number("double"),
|
|
187
|
+
* // },
|
|
188
|
+
* // },
|
|
189
|
+
* // },
|
|
190
|
+
* // },
|
|
191
|
+
* // ],
|
|
192
|
+
* // };
|
|
193
|
+
*
|
|
194
|
+
* ```
|
|
195
|
+
*
|
|
196
|
+
* @param GeocodeCommandInput - {@link GeocodeCommandInput}
|
|
197
|
+
* @returns {@link GeocodeCommandOutput}
|
|
198
|
+
* @see {@link GeocodeCommandInput} for command's `input` shape.
|
|
199
|
+
* @see {@link GeocodeCommandOutput} for command's `response` shape.
|
|
200
|
+
* @see {@link GeoPlacesClientResolvedConfig | config} for GeoPlacesClient's `config` shape.
|
|
201
|
+
*
|
|
202
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
203
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
204
|
+
*
|
|
205
|
+
* @throws {@link InternalServerException} (server fault)
|
|
206
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
207
|
+
*
|
|
208
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
209
|
+
* <p>The request was denied due to request throttling.</p>
|
|
210
|
+
*
|
|
211
|
+
* @throws {@link ValidationException} (client fault)
|
|
212
|
+
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
|
|
213
|
+
*
|
|
214
|
+
* @throws {@link GeoPlacesServiceException}
|
|
215
|
+
* <p>Base exception class for all service exceptions from GeoPlaces service.</p>
|
|
216
|
+
*
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export declare class GeocodeCommand extends GeocodeCommand_base {
|
|
220
|
+
/** @internal type navigation helper, not in runtime. */
|
|
221
|
+
protected static __types: {
|
|
222
|
+
api: {
|
|
223
|
+
input: GeocodeRequest;
|
|
224
|
+
output: GeocodeResponse;
|
|
225
|
+
};
|
|
226
|
+
sdk: {
|
|
227
|
+
input: GeocodeCommandInput;
|
|
228
|
+
output: GeocodeCommandOutput;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}
|