@aws-sdk/client-geo-places 3.830.0 → 3.835.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/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/index.d.ts +1 -37
- package/dist-types/models/models_0.d.ts +586 -270
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/ts3.4/models/models_0.d.ts +166 -0
- package/package.json +11 -11
|
@@ -211,6 +211,7 @@ export const de_GetPlaceCommand = async (output, context) => {
|
|
|
211
211
|
Categories: _json,
|
|
212
212
|
Contacts: _json,
|
|
213
213
|
FoodTypes: _json,
|
|
214
|
+
MainAddress: (_) => de_RelatedPlace(_, context),
|
|
214
215
|
MapView: (_) => de_BoundingBox(_, context),
|
|
215
216
|
OpeningHours: _json,
|
|
216
217
|
Phonemes: _json,
|
|
@@ -219,6 +220,7 @@ export const de_GetPlaceCommand = async (output, context) => {
|
|
|
219
220
|
PoliticalView: __expectString,
|
|
220
221
|
Position: (_) => de_Position(_, context),
|
|
221
222
|
PostalCodeDetails: _json,
|
|
223
|
+
SecondaryAddresses: (_) => de_RelatedPlaceList(_, context),
|
|
222
224
|
TimeZone: _json,
|
|
223
225
|
Title: __expectString,
|
|
224
226
|
});
|
|
@@ -449,6 +451,7 @@ const de_AddressComponentMatchScores = (output, context) => {
|
|
|
449
451
|
Locality: __limitedParseDouble,
|
|
450
452
|
PostalCode: __limitedParseDouble,
|
|
451
453
|
Region: __limitedParseDouble,
|
|
454
|
+
SecondaryAddressComponents: (_) => de_SecondaryAddressComponentMatchScoreList(_, context),
|
|
452
455
|
SubBlock: __limitedParseDouble,
|
|
453
456
|
SubDistrict: __limitedParseDouble,
|
|
454
457
|
SubRegion: __limitedParseDouble,
|
|
@@ -476,13 +479,17 @@ const de_GeocodeResultItem = (output, context) => {
|
|
|
476
479
|
Categories: _json,
|
|
477
480
|
Distance: __expectLong,
|
|
478
481
|
FoodTypes: _json,
|
|
482
|
+
Intersections: (_) => de_IntersectionList(_, context),
|
|
483
|
+
MainAddress: (_) => de_RelatedPlace(_, context),
|
|
479
484
|
MapView: (_) => de_BoundingBox(_, context),
|
|
480
485
|
MatchScores: (_) => de_MatchScoreDetails(_, context),
|
|
486
|
+
ParsedQuery: _json,
|
|
481
487
|
PlaceId: __expectString,
|
|
482
488
|
PlaceType: __expectString,
|
|
483
489
|
PoliticalView: __expectString,
|
|
484
490
|
Position: (_) => de_Position(_, context),
|
|
485
491
|
PostalCodeDetails: _json,
|
|
492
|
+
SecondaryAddresses: (_) => de_RelatedPlaceList(_, context),
|
|
486
493
|
TimeZone: _json,
|
|
487
494
|
Title: __expectString,
|
|
488
495
|
});
|
|
@@ -495,6 +502,26 @@ const de_GeocodeResultItemList = (output, context) => {
|
|
|
495
502
|
});
|
|
496
503
|
return retVal;
|
|
497
504
|
};
|
|
505
|
+
const de_Intersection = (output, context) => {
|
|
506
|
+
return take(output, {
|
|
507
|
+
AccessPoints: (_) => de_AccessPointList(_, context),
|
|
508
|
+
Address: _json,
|
|
509
|
+
Distance: __expectLong,
|
|
510
|
+
MapView: (_) => de_BoundingBox(_, context),
|
|
511
|
+
PlaceId: __expectString,
|
|
512
|
+
Position: (_) => de_Position(_, context),
|
|
513
|
+
RouteDistance: __expectLong,
|
|
514
|
+
Title: __expectString,
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
const de_IntersectionList = (output, context) => {
|
|
518
|
+
const retVal = (output || [])
|
|
519
|
+
.filter((e) => e != null)
|
|
520
|
+
.map((entry) => {
|
|
521
|
+
return de_Intersection(entry, context);
|
|
522
|
+
});
|
|
523
|
+
return retVal;
|
|
524
|
+
};
|
|
498
525
|
const de_MatchScoreDetails = (output, context) => {
|
|
499
526
|
return take(output, {
|
|
500
527
|
Components: (_) => de_ComponentMatchScores(_, context),
|
|
@@ -517,6 +544,24 @@ const de_Position = (output, context) => {
|
|
|
517
544
|
});
|
|
518
545
|
return retVal;
|
|
519
546
|
};
|
|
547
|
+
const de_RelatedPlace = (output, context) => {
|
|
548
|
+
return take(output, {
|
|
549
|
+
AccessPoints: (_) => de_AccessPointList(_, context),
|
|
550
|
+
Address: _json,
|
|
551
|
+
PlaceId: __expectString,
|
|
552
|
+
PlaceType: __expectString,
|
|
553
|
+
Position: (_) => de_Position(_, context),
|
|
554
|
+
Title: __expectString,
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
const de_RelatedPlaceList = (output, context) => {
|
|
558
|
+
const retVal = (output || [])
|
|
559
|
+
.filter((e) => e != null)
|
|
560
|
+
.map((entry) => {
|
|
561
|
+
return de_RelatedPlace(entry, context);
|
|
562
|
+
});
|
|
563
|
+
return retVal;
|
|
564
|
+
};
|
|
520
565
|
const de_ReverseGeocodeResultItem = (output, context) => {
|
|
521
566
|
return take(output, {
|
|
522
567
|
AccessPoints: (_) => de_AccessPointList(_, context),
|
|
@@ -525,6 +570,7 @@ const de_ReverseGeocodeResultItem = (output, context) => {
|
|
|
525
570
|
Categories: _json,
|
|
526
571
|
Distance: __expectLong,
|
|
527
572
|
FoodTypes: _json,
|
|
573
|
+
Intersections: (_) => de_IntersectionList(_, context),
|
|
528
574
|
MapView: (_) => de_BoundingBox(_, context),
|
|
529
575
|
PlaceId: __expectString,
|
|
530
576
|
PlaceType: __expectString,
|
|
@@ -603,6 +649,19 @@ const de_SearchTextResultItemList = (output, context) => {
|
|
|
603
649
|
});
|
|
604
650
|
return retVal;
|
|
605
651
|
};
|
|
652
|
+
const de_SecondaryAddressComponentMatchScore = (output, context) => {
|
|
653
|
+
return take(output, {
|
|
654
|
+
Number: __limitedParseDouble,
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
const de_SecondaryAddressComponentMatchScoreList = (output, context) => {
|
|
658
|
+
const retVal = (output || [])
|
|
659
|
+
.filter((e) => e != null)
|
|
660
|
+
.map((entry) => {
|
|
661
|
+
return de_SecondaryAddressComponentMatchScore(entry, context);
|
|
662
|
+
});
|
|
663
|
+
return retVal;
|
|
664
|
+
};
|
|
606
665
|
const de_SuggestPlaceResult = (output, context) => {
|
|
607
666
|
return take(output, {
|
|
608
667
|
AccessPoints: (_) => de_AccessPointList(_, context),
|
|
@@ -54,43 +54,7 @@ export interface GeoPlaces {
|
|
|
54
54
|
suggest(args: SuggestCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SuggestCommandOutput) => void): void;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* <p>
|
|
58
|
-
* The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include:
|
|
59
|
-
* </p>
|
|
60
|
-
* <ul>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Forward and reverse geocoding for addresses and coordinates</p>
|
|
63
|
-
* </li>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>Comprehensive place searches with detailed information, including:</p>
|
|
66
|
-
* <ul>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>Business names and addresses</p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>Contact information</p>
|
|
72
|
-
* </li>
|
|
73
|
-
* <li>
|
|
74
|
-
* <p>Hours of operation</p>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>POI (Points of Interest) categories</p>
|
|
78
|
-
* </li>
|
|
79
|
-
* <li>
|
|
80
|
-
* <p>Food types for restaurants</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* <li>
|
|
83
|
-
* <p>Chain affiliation for relevant businesses</p>
|
|
84
|
-
* </li>
|
|
85
|
-
* </ul>
|
|
86
|
-
* </li>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>Global data coverage with a wide range of POI categories</p>
|
|
89
|
-
* </li>
|
|
90
|
-
* <li>
|
|
91
|
-
* <p>Regular data updates to ensure accuracy and relevance</p>
|
|
92
|
-
* </li>
|
|
93
|
-
* </ul>
|
|
57
|
+
* <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>
|
|
94
58
|
* @public
|
|
95
59
|
*/
|
|
96
60
|
export declare class GeoPlaces extends GeoPlacesClient implements GeoPlaces {
|
|
@@ -176,43 +176,7 @@ export type GeoPlacesClientResolvedConfigType = __SmithyResolvedConfiguration<__
|
|
|
176
176
|
export interface GeoPlacesClientResolvedConfig extends GeoPlacesClientResolvedConfigType {
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* <p>
|
|
180
|
-
* The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include:
|
|
181
|
-
* </p>
|
|
182
|
-
* <ul>
|
|
183
|
-
* <li>
|
|
184
|
-
* <p>Forward and reverse geocoding for addresses and coordinates</p>
|
|
185
|
-
* </li>
|
|
186
|
-
* <li>
|
|
187
|
-
* <p>Comprehensive place searches with detailed information, including:</p>
|
|
188
|
-
* <ul>
|
|
189
|
-
* <li>
|
|
190
|
-
* <p>Business names and addresses</p>
|
|
191
|
-
* </li>
|
|
192
|
-
* <li>
|
|
193
|
-
* <p>Contact information</p>
|
|
194
|
-
* </li>
|
|
195
|
-
* <li>
|
|
196
|
-
* <p>Hours of operation</p>
|
|
197
|
-
* </li>
|
|
198
|
-
* <li>
|
|
199
|
-
* <p>POI (Points of Interest) categories</p>
|
|
200
|
-
* </li>
|
|
201
|
-
* <li>
|
|
202
|
-
* <p>Food types for restaurants</p>
|
|
203
|
-
* </li>
|
|
204
|
-
* <li>
|
|
205
|
-
* <p>Chain affiliation for relevant businesses</p>
|
|
206
|
-
* </li>
|
|
207
|
-
* </ul>
|
|
208
|
-
* </li>
|
|
209
|
-
* <li>
|
|
210
|
-
* <p>Global data coverage with a wide range of POI categories</p>
|
|
211
|
-
* </li>
|
|
212
|
-
* <li>
|
|
213
|
-
* <p>Regular data updates to ensure accuracy and relevance</p>
|
|
214
|
-
* </li>
|
|
215
|
-
* </ul>
|
|
179
|
+
* <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>
|
|
216
180
|
* @public
|
|
217
181
|
*/
|
|
218
182
|
export declare class GeoPlacesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, GeoPlacesClientResolvedConfig> {
|
|
@@ -27,7 +27,7 @@ declare const AutocompleteCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p> <code>Autocomplete</code> completes potential places and addresses as the user types, based on the partial input. The API enhances the efficiency and accuracy of address by completing query based on a few entered keystrokes. It helps you by completing partial queries with valid address completion. Also, the API supports the filtering of results based on geographic location, country, or specific place types, and can be tailored using optional parameters like language and political views.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -96,7 +96,7 @@ declare const AutocompleteCommand_base: {
|
|
|
96
96
|
* // PostalCode: "STRING_VALUE",
|
|
97
97
|
* // Block: "STRING_VALUE",
|
|
98
98
|
* // SubBlock: "STRING_VALUE",
|
|
99
|
-
* // Intersection: [ //
|
|
99
|
+
* // Intersection: [ // IntersectionStreetList
|
|
100
100
|
* // "STRING_VALUE",
|
|
101
101
|
* // ],
|
|
102
102
|
* // Street: "STRING_VALUE",
|
|
@@ -114,6 +114,11 @@ declare const AutocompleteCommand_base: {
|
|
|
114
114
|
* // ],
|
|
115
115
|
* // AddressNumber: "STRING_VALUE",
|
|
116
116
|
* // Building: "STRING_VALUE",
|
|
117
|
+
* // SecondaryAddressComponents: [ // SecondaryAddressComponentList
|
|
118
|
+
* // { // SecondaryAddressComponent
|
|
119
|
+
* // Number: "STRING_VALUE", // required
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
117
122
|
* // },
|
|
118
123
|
* // Distance: Number("long"),
|
|
119
124
|
* // Language: "STRING_VALUE",
|
|
@@ -27,8 +27,7 @@ declare const GeocodeCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* information about places.</p>
|
|
30
|
+
* <p> <code>Geocode</code> converts a textual address or place into geographic coordinates. You can obtain geographic coordinates, address component, and other related information. It supports flexible queries, including free-form text or structured queries with components like street names, postal codes, and regions. The Geocode API can also provide additional features such as time zone information and the inclusion of political views.</p>
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -97,7 +96,7 @@ declare const GeocodeCommand_base: {
|
|
|
97
96
|
* // PostalCode: "STRING_VALUE",
|
|
98
97
|
* // Block: "STRING_VALUE",
|
|
99
98
|
* // SubBlock: "STRING_VALUE",
|
|
100
|
-
* // Intersection: [ //
|
|
99
|
+
* // Intersection: [ // IntersectionStreetList
|
|
101
100
|
* // "STRING_VALUE",
|
|
102
101
|
* // ],
|
|
103
102
|
* // Street: "STRING_VALUE",
|
|
@@ -115,6 +114,11 @@ declare const GeocodeCommand_base: {
|
|
|
115
114
|
* // ],
|
|
116
115
|
* // AddressNumber: "STRING_VALUE",
|
|
117
116
|
* // Building: "STRING_VALUE",
|
|
117
|
+
* // SecondaryAddressComponents: [ // SecondaryAddressComponentList
|
|
118
|
+
* // { // SecondaryAddressComponent
|
|
119
|
+
* // Number: "STRING_VALUE", // required
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
118
122
|
* // },
|
|
119
123
|
* // AddressNumberCorrected: true || false,
|
|
120
124
|
* // PostalCodeDetails: [ // PostalCodeDetailsList
|
|
@@ -184,9 +188,157 @@ declare const GeocodeCommand_base: {
|
|
|
184
188
|
* // ],
|
|
185
189
|
* // AddressNumber: Number("double"),
|
|
186
190
|
* // Building: Number("double"),
|
|
191
|
+
* // SecondaryAddressComponents: [ // SecondaryAddressComponentMatchScoreList
|
|
192
|
+
* // { // SecondaryAddressComponentMatchScore
|
|
193
|
+
* // Number: Number("double"),
|
|
194
|
+
* // },
|
|
195
|
+
* // ],
|
|
187
196
|
* // },
|
|
188
197
|
* // },
|
|
189
198
|
* // },
|
|
199
|
+
* // ParsedQuery: { // GeocodeParsedQuery
|
|
200
|
+
* // Title: [ // ParsedQueryComponentList
|
|
201
|
+
* // { // ParsedQueryComponent
|
|
202
|
+
* // StartIndex: Number("int"),
|
|
203
|
+
* // EndIndex: Number("int"),
|
|
204
|
+
* // Value: "STRING_VALUE",
|
|
205
|
+
* // QueryComponent: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // ],
|
|
208
|
+
* // Address: { // GeocodeParsedQueryAddressComponents
|
|
209
|
+
* // Country: [
|
|
210
|
+
* // {
|
|
211
|
+
* // StartIndex: Number("int"),
|
|
212
|
+
* // EndIndex: Number("int"),
|
|
213
|
+
* // Value: "STRING_VALUE",
|
|
214
|
+
* // QueryComponent: "STRING_VALUE",
|
|
215
|
+
* // },
|
|
216
|
+
* // ],
|
|
217
|
+
* // Region: [
|
|
218
|
+
* // {
|
|
219
|
+
* // StartIndex: Number("int"),
|
|
220
|
+
* // EndIndex: Number("int"),
|
|
221
|
+
* // Value: "STRING_VALUE",
|
|
222
|
+
* // QueryComponent: "STRING_VALUE",
|
|
223
|
+
* // },
|
|
224
|
+
* // ],
|
|
225
|
+
* // SubRegion: [
|
|
226
|
+
* // {
|
|
227
|
+
* // StartIndex: Number("int"),
|
|
228
|
+
* // EndIndex: Number("int"),
|
|
229
|
+
* // Value: "STRING_VALUE",
|
|
230
|
+
* // QueryComponent: "STRING_VALUE",
|
|
231
|
+
* // },
|
|
232
|
+
* // ],
|
|
233
|
+
* // Locality: [
|
|
234
|
+
* // {
|
|
235
|
+
* // StartIndex: Number("int"),
|
|
236
|
+
* // EndIndex: Number("int"),
|
|
237
|
+
* // Value: "STRING_VALUE",
|
|
238
|
+
* // QueryComponent: "STRING_VALUE",
|
|
239
|
+
* // },
|
|
240
|
+
* // ],
|
|
241
|
+
* // District: "<ParsedQueryComponentList>",
|
|
242
|
+
* // SubDistrict: "<ParsedQueryComponentList>",
|
|
243
|
+
* // PostalCode: "<ParsedQueryComponentList>",
|
|
244
|
+
* // Block: "<ParsedQueryComponentList>",
|
|
245
|
+
* // SubBlock: "<ParsedQueryComponentList>",
|
|
246
|
+
* // Street: "<ParsedQueryComponentList>",
|
|
247
|
+
* // AddressNumber: "<ParsedQueryComponentList>",
|
|
248
|
+
* // Building: "<ParsedQueryComponentList>",
|
|
249
|
+
* // SecondaryAddressComponents: [ // ParsedQuerySecondaryAddressComponentList
|
|
250
|
+
* // { // ParsedQuerySecondaryAddressComponent
|
|
251
|
+
* // StartIndex: Number("int"), // required
|
|
252
|
+
* // EndIndex: Number("int"), // required
|
|
253
|
+
* // Value: "STRING_VALUE", // required
|
|
254
|
+
* // Number: "STRING_VALUE", // required
|
|
255
|
+
* // Designator: "STRING_VALUE", // required
|
|
256
|
+
* // },
|
|
257
|
+
* // ],
|
|
258
|
+
* // },
|
|
259
|
+
* // },
|
|
260
|
+
* // Intersections: [ // IntersectionList
|
|
261
|
+
* // { // Intersection
|
|
262
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
263
|
+
* // Title: "STRING_VALUE", // required
|
|
264
|
+
* // Address: {
|
|
265
|
+
* // Label: "STRING_VALUE",
|
|
266
|
+
* // Country: {
|
|
267
|
+
* // Code2: "STRING_VALUE",
|
|
268
|
+
* // Code3: "STRING_VALUE",
|
|
269
|
+
* // Name: "STRING_VALUE",
|
|
270
|
+
* // },
|
|
271
|
+
* // Region: {
|
|
272
|
+
* // Code: "STRING_VALUE",
|
|
273
|
+
* // Name: "STRING_VALUE",
|
|
274
|
+
* // },
|
|
275
|
+
* // SubRegion: {
|
|
276
|
+
* // Code: "STRING_VALUE",
|
|
277
|
+
* // Name: "STRING_VALUE",
|
|
278
|
+
* // },
|
|
279
|
+
* // Locality: "STRING_VALUE",
|
|
280
|
+
* // District: "STRING_VALUE",
|
|
281
|
+
* // SubDistrict: "STRING_VALUE",
|
|
282
|
+
* // PostalCode: "STRING_VALUE",
|
|
283
|
+
* // Block: "STRING_VALUE",
|
|
284
|
+
* // SubBlock: "STRING_VALUE",
|
|
285
|
+
* // Intersection: [
|
|
286
|
+
* // "STRING_VALUE",
|
|
287
|
+
* // ],
|
|
288
|
+
* // Street: "STRING_VALUE",
|
|
289
|
+
* // StreetComponents: [
|
|
290
|
+
* // {
|
|
291
|
+
* // BaseName: "STRING_VALUE",
|
|
292
|
+
* // Type: "STRING_VALUE",
|
|
293
|
+
* // TypePlacement: "STRING_VALUE",
|
|
294
|
+
* // TypeSeparator: "STRING_VALUE",
|
|
295
|
+
* // Prefix: "STRING_VALUE",
|
|
296
|
+
* // Suffix: "STRING_VALUE",
|
|
297
|
+
* // Direction: "STRING_VALUE",
|
|
298
|
+
* // Language: "STRING_VALUE",
|
|
299
|
+
* // },
|
|
300
|
+
* // ],
|
|
301
|
+
* // AddressNumber: "STRING_VALUE",
|
|
302
|
+
* // Building: "STRING_VALUE",
|
|
303
|
+
* // SecondaryAddressComponents: [
|
|
304
|
+
* // {
|
|
305
|
+
* // Number: "STRING_VALUE", // required
|
|
306
|
+
* // },
|
|
307
|
+
* // ],
|
|
308
|
+
* // },
|
|
309
|
+
* // Position: [
|
|
310
|
+
* // Number("double"),
|
|
311
|
+
* // ],
|
|
312
|
+
* // Distance: Number("long"),
|
|
313
|
+
* // RouteDistance: Number("long"),
|
|
314
|
+
* // MapView: [
|
|
315
|
+
* // Number("double"),
|
|
316
|
+
* // ],
|
|
317
|
+
* // AccessPoints: [
|
|
318
|
+
* // {
|
|
319
|
+
* // Position: "<Position>",
|
|
320
|
+
* // },
|
|
321
|
+
* // ],
|
|
322
|
+
* // },
|
|
323
|
+
* // ],
|
|
324
|
+
* // MainAddress: { // RelatedPlace
|
|
325
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
326
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
327
|
+
* // Title: "STRING_VALUE", // required
|
|
328
|
+
* // Address: "<Address>",
|
|
329
|
+
* // Position: "<Position>",
|
|
330
|
+
* // AccessPoints: "<AccessPointList>",
|
|
331
|
+
* // },
|
|
332
|
+
* // SecondaryAddresses: [ // RelatedPlaceList
|
|
333
|
+
* // {
|
|
334
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
335
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
336
|
+
* // Title: "STRING_VALUE", // required
|
|
337
|
+
* // Address: "<Address>",
|
|
338
|
+
* // Position: "<Position>",
|
|
339
|
+
* // AccessPoints: "<AccessPointList>",
|
|
340
|
+
* // },
|
|
341
|
+
* // ],
|
|
190
342
|
* // },
|
|
191
343
|
* // ],
|
|
192
344
|
* // };
|
|
@@ -27,8 +27,7 @@ declare const GetPlaceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* operations.</p>
|
|
30
|
+
* <p> <code>GetPlace</code> finds a place by its unique ID. A <code>PlaceId</code> is returned by other place operations.</p>
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -73,7 +72,7 @@ declare const GetPlaceCommand_base: {
|
|
|
73
72
|
* // PostalCode: "STRING_VALUE",
|
|
74
73
|
* // Block: "STRING_VALUE",
|
|
75
74
|
* // SubBlock: "STRING_VALUE",
|
|
76
|
-
* // Intersection: [ //
|
|
75
|
+
* // Intersection: [ // IntersectionStreetList
|
|
77
76
|
* // "STRING_VALUE",
|
|
78
77
|
* // ],
|
|
79
78
|
* // Street: "STRING_VALUE",
|
|
@@ -91,6 +90,11 @@ declare const GetPlaceCommand_base: {
|
|
|
91
90
|
* // ],
|
|
92
91
|
* // AddressNumber: "STRING_VALUE",
|
|
93
92
|
* // Building: "STRING_VALUE",
|
|
93
|
+
* // SecondaryAddressComponents: [ // SecondaryAddressComponentList
|
|
94
|
+
* // { // SecondaryAddressComponent
|
|
95
|
+
* // Number: "STRING_VALUE", // required
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
94
98
|
* // },
|
|
95
99
|
* // AddressNumberCorrected: true || false,
|
|
96
100
|
* // PostalCodeDetails: [ // PostalCodeDetailsList
|
|
@@ -270,6 +274,72 @@ declare const GetPlaceCommand_base: {
|
|
|
270
274
|
* // Street: "<PhonemeTranscriptionList>",
|
|
271
275
|
* // },
|
|
272
276
|
* // },
|
|
277
|
+
* // MainAddress: { // RelatedPlace
|
|
278
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
279
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
280
|
+
* // Title: "STRING_VALUE", // required
|
|
281
|
+
* // Address: {
|
|
282
|
+
* // Label: "STRING_VALUE",
|
|
283
|
+
* // Country: {
|
|
284
|
+
* // Code2: "STRING_VALUE",
|
|
285
|
+
* // Code3: "STRING_VALUE",
|
|
286
|
+
* // Name: "STRING_VALUE",
|
|
287
|
+
* // },
|
|
288
|
+
* // Region: {
|
|
289
|
+
* // Code: "STRING_VALUE",
|
|
290
|
+
* // Name: "STRING_VALUE",
|
|
291
|
+
* // },
|
|
292
|
+
* // SubRegion: {
|
|
293
|
+
* // Code: "STRING_VALUE",
|
|
294
|
+
* // Name: "STRING_VALUE",
|
|
295
|
+
* // },
|
|
296
|
+
* // Locality: "STRING_VALUE",
|
|
297
|
+
* // District: "STRING_VALUE",
|
|
298
|
+
* // SubDistrict: "STRING_VALUE",
|
|
299
|
+
* // PostalCode: "STRING_VALUE",
|
|
300
|
+
* // Block: "STRING_VALUE",
|
|
301
|
+
* // SubBlock: "STRING_VALUE",
|
|
302
|
+
* // Intersection: [
|
|
303
|
+
* // "STRING_VALUE",
|
|
304
|
+
* // ],
|
|
305
|
+
* // Street: "STRING_VALUE",
|
|
306
|
+
* // StreetComponents: [
|
|
307
|
+
* // {
|
|
308
|
+
* // BaseName: "STRING_VALUE",
|
|
309
|
+
* // Type: "STRING_VALUE",
|
|
310
|
+
* // TypePlacement: "STRING_VALUE",
|
|
311
|
+
* // TypeSeparator: "STRING_VALUE",
|
|
312
|
+
* // Prefix: "STRING_VALUE",
|
|
313
|
+
* // Suffix: "STRING_VALUE",
|
|
314
|
+
* // Direction: "STRING_VALUE",
|
|
315
|
+
* // Language: "STRING_VALUE",
|
|
316
|
+
* // },
|
|
317
|
+
* // ],
|
|
318
|
+
* // AddressNumber: "STRING_VALUE",
|
|
319
|
+
* // Building: "STRING_VALUE",
|
|
320
|
+
* // SecondaryAddressComponents: [
|
|
321
|
+
* // {
|
|
322
|
+
* // Number: "STRING_VALUE", // required
|
|
323
|
+
* // },
|
|
324
|
+
* // ],
|
|
325
|
+
* // },
|
|
326
|
+
* // Position: "<Position>",
|
|
327
|
+
* // AccessPoints: [
|
|
328
|
+
* // {
|
|
329
|
+
* // Position: "<Position>",
|
|
330
|
+
* // },
|
|
331
|
+
* // ],
|
|
332
|
+
* // },
|
|
333
|
+
* // SecondaryAddresses: [ // RelatedPlaceList
|
|
334
|
+
* // {
|
|
335
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
336
|
+
* // PlaceType: "STRING_VALUE", // required
|
|
337
|
+
* // Title: "STRING_VALUE", // required
|
|
338
|
+
* // Address: "<Address>",
|
|
339
|
+
* // Position: "<Position>",
|
|
340
|
+
* // AccessPoints: "<AccessPointList>",
|
|
341
|
+
* // },
|
|
342
|
+
* // ],
|
|
273
343
|
* // };
|
|
274
344
|
*
|
|
275
345
|
* ```
|
|
@@ -27,8 +27,7 @@ declare const ReverseGeocodeCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* information from coordinates.</p>
|
|
30
|
+
* <p> <code>ReverseGeocode</code> converts geographic coordinates into a human-readable address or place. You can obtain address component, and other related information such as place type, category, street information. The Reverse Geocode API supports filtering to on place type so that you can refine result based on your need. Also, The Reverse Geocode API can also provide additional features such as time zone information and the inclusion of political views.</p>
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -84,7 +83,7 @@ declare const ReverseGeocodeCommand_base: {
|
|
|
84
83
|
* // PostalCode: "STRING_VALUE",
|
|
85
84
|
* // Block: "STRING_VALUE",
|
|
86
85
|
* // SubBlock: "STRING_VALUE",
|
|
87
|
-
* // Intersection: [ //
|
|
86
|
+
* // Intersection: [ // IntersectionStreetList
|
|
88
87
|
* // "STRING_VALUE",
|
|
89
88
|
* // ],
|
|
90
89
|
* // Street: "STRING_VALUE",
|
|
@@ -102,6 +101,11 @@ declare const ReverseGeocodeCommand_base: {
|
|
|
102
101
|
* // ],
|
|
103
102
|
* // AddressNumber: "STRING_VALUE",
|
|
104
103
|
* // Building: "STRING_VALUE",
|
|
104
|
+
* // SecondaryAddressComponents: [ // SecondaryAddressComponentList
|
|
105
|
+
* // { // SecondaryAddressComponent
|
|
106
|
+
* // Number: "STRING_VALUE", // required
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
105
109
|
* // },
|
|
106
110
|
* // AddressNumberCorrected: true || false,
|
|
107
111
|
* // PostalCodeDetails: [ // PostalCodeDetailsList
|
|
@@ -152,6 +156,70 @@ declare const ReverseGeocodeCommand_base: {
|
|
|
152
156
|
* // OffsetSeconds: Number("long"),
|
|
153
157
|
* // },
|
|
154
158
|
* // PoliticalView: "STRING_VALUE",
|
|
159
|
+
* // Intersections: [ // IntersectionList
|
|
160
|
+
* // { // Intersection
|
|
161
|
+
* // PlaceId: "STRING_VALUE", // required
|
|
162
|
+
* // Title: "STRING_VALUE", // required
|
|
163
|
+
* // Address: {
|
|
164
|
+
* // Label: "STRING_VALUE",
|
|
165
|
+
* // Country: {
|
|
166
|
+
* // Code2: "STRING_VALUE",
|
|
167
|
+
* // Code3: "STRING_VALUE",
|
|
168
|
+
* // Name: "STRING_VALUE",
|
|
169
|
+
* // },
|
|
170
|
+
* // Region: {
|
|
171
|
+
* // Code: "STRING_VALUE",
|
|
172
|
+
* // Name: "STRING_VALUE",
|
|
173
|
+
* // },
|
|
174
|
+
* // SubRegion: {
|
|
175
|
+
* // Code: "STRING_VALUE",
|
|
176
|
+
* // Name: "STRING_VALUE",
|
|
177
|
+
* // },
|
|
178
|
+
* // Locality: "STRING_VALUE",
|
|
179
|
+
* // District: "STRING_VALUE",
|
|
180
|
+
* // SubDistrict: "STRING_VALUE",
|
|
181
|
+
* // PostalCode: "STRING_VALUE",
|
|
182
|
+
* // Block: "STRING_VALUE",
|
|
183
|
+
* // SubBlock: "STRING_VALUE",
|
|
184
|
+
* // Intersection: [
|
|
185
|
+
* // "STRING_VALUE",
|
|
186
|
+
* // ],
|
|
187
|
+
* // Street: "STRING_VALUE",
|
|
188
|
+
* // StreetComponents: [
|
|
189
|
+
* // {
|
|
190
|
+
* // BaseName: "STRING_VALUE",
|
|
191
|
+
* // Type: "STRING_VALUE",
|
|
192
|
+
* // TypePlacement: "STRING_VALUE",
|
|
193
|
+
* // TypeSeparator: "STRING_VALUE",
|
|
194
|
+
* // Prefix: "STRING_VALUE",
|
|
195
|
+
* // Suffix: "STRING_VALUE",
|
|
196
|
+
* // Direction: "STRING_VALUE",
|
|
197
|
+
* // Language: "STRING_VALUE",
|
|
198
|
+
* // },
|
|
199
|
+
* // ],
|
|
200
|
+
* // AddressNumber: "STRING_VALUE",
|
|
201
|
+
* // Building: "STRING_VALUE",
|
|
202
|
+
* // SecondaryAddressComponents: [
|
|
203
|
+
* // {
|
|
204
|
+
* // Number: "STRING_VALUE", // required
|
|
205
|
+
* // },
|
|
206
|
+
* // ],
|
|
207
|
+
* // },
|
|
208
|
+
* // Position: [
|
|
209
|
+
* // Number("double"),
|
|
210
|
+
* // ],
|
|
211
|
+
* // Distance: Number("long"),
|
|
212
|
+
* // RouteDistance: Number("long"),
|
|
213
|
+
* // MapView: [
|
|
214
|
+
* // Number("double"),
|
|
215
|
+
* // ],
|
|
216
|
+
* // AccessPoints: [
|
|
217
|
+
* // {
|
|
218
|
+
* // Position: "<Position>",
|
|
219
|
+
* // },
|
|
220
|
+
* // ],
|
|
221
|
+
* // },
|
|
222
|
+
* // ],
|
|
155
223
|
* // },
|
|
156
224
|
* // ],
|
|
157
225
|
* // };
|