@aws-sdk/client-location 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Location.js +221 -214
- package/dist-es/LocationClient.js +28 -22
- package/dist-es/commands/AssociateTrackerConsumerCommand.js +28 -21
- package/dist-es/commands/BatchDeleteDevicePositionHistoryCommand.js +28 -21
- package/dist-es/commands/BatchDeleteGeofenceCommand.js +28 -21
- package/dist-es/commands/BatchEvaluateGeofencesCommand.js +28 -21
- package/dist-es/commands/BatchGetDevicePositionCommand.js +28 -21
- package/dist-es/commands/BatchPutGeofenceCommand.js +28 -21
- package/dist-es/commands/BatchUpdateDevicePositionCommand.js +28 -21
- package/dist-es/commands/CalculateRouteCommand.js +28 -21
- package/dist-es/commands/CalculateRouteMatrixCommand.js +28 -21
- package/dist-es/commands/CreateGeofenceCollectionCommand.js +28 -21
- package/dist-es/commands/CreateMapCommand.js +28 -21
- package/dist-es/commands/CreatePlaceIndexCommand.js +28 -21
- package/dist-es/commands/CreateRouteCalculatorCommand.js +28 -21
- package/dist-es/commands/CreateTrackerCommand.js +28 -21
- package/dist-es/commands/DeleteGeofenceCollectionCommand.js +28 -21
- package/dist-es/commands/DeleteMapCommand.js +28 -21
- package/dist-es/commands/DeletePlaceIndexCommand.js +28 -21
- package/dist-es/commands/DeleteRouteCalculatorCommand.js +28 -21
- package/dist-es/commands/DeleteTrackerCommand.js +28 -21
- package/dist-es/commands/DescribeGeofenceCollectionCommand.js +28 -21
- package/dist-es/commands/DescribeMapCommand.js +28 -21
- package/dist-es/commands/DescribePlaceIndexCommand.js +28 -21
- package/dist-es/commands/DescribeRouteCalculatorCommand.js +28 -21
- package/dist-es/commands/DescribeTrackerCommand.js +28 -21
- package/dist-es/commands/DisassociateTrackerConsumerCommand.js +28 -21
- package/dist-es/commands/GetDevicePositionCommand.js +28 -21
- package/dist-es/commands/GetDevicePositionHistoryCommand.js +28 -21
- package/dist-es/commands/GetGeofenceCommand.js +28 -21
- package/dist-es/commands/GetMapGlyphsCommand.js +28 -21
- package/dist-es/commands/GetMapSpritesCommand.js +28 -21
- package/dist-es/commands/GetMapStyleDescriptorCommand.js +28 -21
- package/dist-es/commands/GetMapTileCommand.js +28 -21
- package/dist-es/commands/GetPlaceCommand.js +28 -21
- package/dist-es/commands/ListDevicePositionsCommand.js +28 -21
- package/dist-es/commands/ListGeofenceCollectionsCommand.js +28 -21
- package/dist-es/commands/ListGeofencesCommand.js +28 -21
- package/dist-es/commands/ListMapsCommand.js +28 -21
- package/dist-es/commands/ListPlaceIndexesCommand.js +28 -21
- package/dist-es/commands/ListRouteCalculatorsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTrackerConsumersCommand.js +28 -21
- package/dist-es/commands/ListTrackersCommand.js +28 -21
- package/dist-es/commands/PutGeofenceCommand.js +28 -21
- package/dist-es/commands/SearchPlaceIndexForPositionCommand.js +28 -21
- package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +28 -21
- package/dist-es/commands/SearchPlaceIndexForTextCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateGeofenceCollectionCommand.js +28 -21
- package/dist-es/commands/UpdateMapCommand.js +28 -21
- package/dist-es/commands/UpdatePlaceIndexCommand.js +28 -21
- package/dist-es/commands/UpdateRouteCalculatorCommand.js +28 -21
- package/dist-es/commands/UpdateTrackerCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LocationServiceException.js +10 -5
- package/dist-es/models/models_0.js +245 -608
- package/dist-es/pagination/GetDevicePositionHistoryPaginator.js +68 -25
- package/dist-es/pagination/ListDevicePositionsPaginator.js +68 -25
- package/dist-es/pagination/ListGeofenceCollectionsPaginator.js +68 -25
- package/dist-es/pagination/ListGeofencesPaginator.js +68 -25
- package/dist-es/pagination/ListMapsPaginator.js +68 -25
- package/dist-es/pagination/ListPlaceIndexesPaginator.js +68 -25
- package/dist-es/pagination/ListRouteCalculatorsPaginator.js +68 -25
- package/dist-es/pagination/ListTrackerConsumersPaginator.js +68 -25
- package/dist-es/pagination/ListTrackersPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +6039 -4373
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/dist-es/Location.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { AssociateTrackerConsumerCommand, } from "./commands/AssociateTrackerConsumerCommand";
|
|
2
3
|
import { BatchDeleteDevicePositionHistoryCommand, } from "./commands/BatchDeleteDevicePositionHistoryCommand";
|
|
3
4
|
import { BatchDeleteGeofenceCommand, } from "./commands/BatchDeleteGeofenceCommand";
|
|
@@ -52,747 +53,753 @@ import { UpdatePlaceIndexCommand, } from "./commands/UpdatePlaceIndexCommand";
|
|
|
52
53
|
import { UpdateRouteCalculatorCommand, } from "./commands/UpdateRouteCalculatorCommand";
|
|
53
54
|
import { UpdateTrackerCommand, } from "./commands/UpdateTrackerCommand";
|
|
54
55
|
import { LocationClient } from "./LocationClient";
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
var Location = (function (_super) {
|
|
57
|
+
__extends(Location, _super);
|
|
58
|
+
function Location() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
Location.prototype.associateTrackerConsumer = function (args, optionsOrCb, cb) {
|
|
62
|
+
var command = new AssociateTrackerConsumerCommand(args);
|
|
58
63
|
if (typeof optionsOrCb === "function") {
|
|
59
64
|
this.send(command, optionsOrCb);
|
|
60
65
|
}
|
|
61
66
|
else if (typeof cb === "function") {
|
|
62
67
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(
|
|
68
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
69
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
70
|
}
|
|
66
71
|
else {
|
|
67
72
|
return this.send(command, optionsOrCb);
|
|
68
73
|
}
|
|
69
|
-
}
|
|
70
|
-
batchDeleteDevicePositionHistory(args, optionsOrCb, cb) {
|
|
71
|
-
|
|
74
|
+
};
|
|
75
|
+
Location.prototype.batchDeleteDevicePositionHistory = function (args, optionsOrCb, cb) {
|
|
76
|
+
var command = new BatchDeleteDevicePositionHistoryCommand(args);
|
|
72
77
|
if (typeof optionsOrCb === "function") {
|
|
73
78
|
this.send(command, optionsOrCb);
|
|
74
79
|
}
|
|
75
80
|
else if (typeof cb === "function") {
|
|
76
81
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(
|
|
82
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
83
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
84
|
}
|
|
80
85
|
else {
|
|
81
86
|
return this.send(command, optionsOrCb);
|
|
82
87
|
}
|
|
83
|
-
}
|
|
84
|
-
batchDeleteGeofence(args, optionsOrCb, cb) {
|
|
85
|
-
|
|
88
|
+
};
|
|
89
|
+
Location.prototype.batchDeleteGeofence = function (args, optionsOrCb, cb) {
|
|
90
|
+
var command = new BatchDeleteGeofenceCommand(args);
|
|
86
91
|
if (typeof optionsOrCb === "function") {
|
|
87
92
|
this.send(command, optionsOrCb);
|
|
88
93
|
}
|
|
89
94
|
else if (typeof cb === "function") {
|
|
90
95
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(
|
|
96
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
97
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
98
|
}
|
|
94
99
|
else {
|
|
95
100
|
return this.send(command, optionsOrCb);
|
|
96
101
|
}
|
|
97
|
-
}
|
|
98
|
-
batchEvaluateGeofences(args, optionsOrCb, cb) {
|
|
99
|
-
|
|
102
|
+
};
|
|
103
|
+
Location.prototype.batchEvaluateGeofences = function (args, optionsOrCb, cb) {
|
|
104
|
+
var command = new BatchEvaluateGeofencesCommand(args);
|
|
100
105
|
if (typeof optionsOrCb === "function") {
|
|
101
106
|
this.send(command, optionsOrCb);
|
|
102
107
|
}
|
|
103
108
|
else if (typeof cb === "function") {
|
|
104
109
|
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(
|
|
110
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
106
111
|
this.send(command, optionsOrCb || {}, cb);
|
|
107
112
|
}
|
|
108
113
|
else {
|
|
109
114
|
return this.send(command, optionsOrCb);
|
|
110
115
|
}
|
|
111
|
-
}
|
|
112
|
-
batchGetDevicePosition(args, optionsOrCb, cb) {
|
|
113
|
-
|
|
116
|
+
};
|
|
117
|
+
Location.prototype.batchGetDevicePosition = function (args, optionsOrCb, cb) {
|
|
118
|
+
var command = new BatchGetDevicePositionCommand(args);
|
|
114
119
|
if (typeof optionsOrCb === "function") {
|
|
115
120
|
this.send(command, optionsOrCb);
|
|
116
121
|
}
|
|
117
122
|
else if (typeof cb === "function") {
|
|
118
123
|
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(
|
|
124
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
120
125
|
this.send(command, optionsOrCb || {}, cb);
|
|
121
126
|
}
|
|
122
127
|
else {
|
|
123
128
|
return this.send(command, optionsOrCb);
|
|
124
129
|
}
|
|
125
|
-
}
|
|
126
|
-
batchPutGeofence(args, optionsOrCb, cb) {
|
|
127
|
-
|
|
130
|
+
};
|
|
131
|
+
Location.prototype.batchPutGeofence = function (args, optionsOrCb, cb) {
|
|
132
|
+
var command = new BatchPutGeofenceCommand(args);
|
|
128
133
|
if (typeof optionsOrCb === "function") {
|
|
129
134
|
this.send(command, optionsOrCb);
|
|
130
135
|
}
|
|
131
136
|
else if (typeof cb === "function") {
|
|
132
137
|
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error(
|
|
138
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
134
139
|
this.send(command, optionsOrCb || {}, cb);
|
|
135
140
|
}
|
|
136
141
|
else {
|
|
137
142
|
return this.send(command, optionsOrCb);
|
|
138
143
|
}
|
|
139
|
-
}
|
|
140
|
-
batchUpdateDevicePosition(args, optionsOrCb, cb) {
|
|
141
|
-
|
|
144
|
+
};
|
|
145
|
+
Location.prototype.batchUpdateDevicePosition = function (args, optionsOrCb, cb) {
|
|
146
|
+
var command = new BatchUpdateDevicePositionCommand(args);
|
|
142
147
|
if (typeof optionsOrCb === "function") {
|
|
143
148
|
this.send(command, optionsOrCb);
|
|
144
149
|
}
|
|
145
150
|
else if (typeof cb === "function") {
|
|
146
151
|
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error(
|
|
152
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
148
153
|
this.send(command, optionsOrCb || {}, cb);
|
|
149
154
|
}
|
|
150
155
|
else {
|
|
151
156
|
return this.send(command, optionsOrCb);
|
|
152
157
|
}
|
|
153
|
-
}
|
|
154
|
-
calculateRoute(args, optionsOrCb, cb) {
|
|
155
|
-
|
|
158
|
+
};
|
|
159
|
+
Location.prototype.calculateRoute = function (args, optionsOrCb, cb) {
|
|
160
|
+
var command = new CalculateRouteCommand(args);
|
|
156
161
|
if (typeof optionsOrCb === "function") {
|
|
157
162
|
this.send(command, optionsOrCb);
|
|
158
163
|
}
|
|
159
164
|
else if (typeof cb === "function") {
|
|
160
165
|
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error(
|
|
166
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
162
167
|
this.send(command, optionsOrCb || {}, cb);
|
|
163
168
|
}
|
|
164
169
|
else {
|
|
165
170
|
return this.send(command, optionsOrCb);
|
|
166
171
|
}
|
|
167
|
-
}
|
|
168
|
-
calculateRouteMatrix(args, optionsOrCb, cb) {
|
|
169
|
-
|
|
172
|
+
};
|
|
173
|
+
Location.prototype.calculateRouteMatrix = function (args, optionsOrCb, cb) {
|
|
174
|
+
var command = new CalculateRouteMatrixCommand(args);
|
|
170
175
|
if (typeof optionsOrCb === "function") {
|
|
171
176
|
this.send(command, optionsOrCb);
|
|
172
177
|
}
|
|
173
178
|
else if (typeof cb === "function") {
|
|
174
179
|
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error(
|
|
180
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
176
181
|
this.send(command, optionsOrCb || {}, cb);
|
|
177
182
|
}
|
|
178
183
|
else {
|
|
179
184
|
return this.send(command, optionsOrCb);
|
|
180
185
|
}
|
|
181
|
-
}
|
|
182
|
-
createGeofenceCollection(args, optionsOrCb, cb) {
|
|
183
|
-
|
|
186
|
+
};
|
|
187
|
+
Location.prototype.createGeofenceCollection = function (args, optionsOrCb, cb) {
|
|
188
|
+
var command = new CreateGeofenceCollectionCommand(args);
|
|
184
189
|
if (typeof optionsOrCb === "function") {
|
|
185
190
|
this.send(command, optionsOrCb);
|
|
186
191
|
}
|
|
187
192
|
else if (typeof cb === "function") {
|
|
188
193
|
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error(
|
|
194
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
190
195
|
this.send(command, optionsOrCb || {}, cb);
|
|
191
196
|
}
|
|
192
197
|
else {
|
|
193
198
|
return this.send(command, optionsOrCb);
|
|
194
199
|
}
|
|
195
|
-
}
|
|
196
|
-
createMap(args, optionsOrCb, cb) {
|
|
197
|
-
|
|
200
|
+
};
|
|
201
|
+
Location.prototype.createMap = function (args, optionsOrCb, cb) {
|
|
202
|
+
var command = new CreateMapCommand(args);
|
|
198
203
|
if (typeof optionsOrCb === "function") {
|
|
199
204
|
this.send(command, optionsOrCb);
|
|
200
205
|
}
|
|
201
206
|
else if (typeof cb === "function") {
|
|
202
207
|
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error(
|
|
208
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
204
209
|
this.send(command, optionsOrCb || {}, cb);
|
|
205
210
|
}
|
|
206
211
|
else {
|
|
207
212
|
return this.send(command, optionsOrCb);
|
|
208
213
|
}
|
|
209
|
-
}
|
|
210
|
-
createPlaceIndex(args, optionsOrCb, cb) {
|
|
211
|
-
|
|
214
|
+
};
|
|
215
|
+
Location.prototype.createPlaceIndex = function (args, optionsOrCb, cb) {
|
|
216
|
+
var command = new CreatePlaceIndexCommand(args);
|
|
212
217
|
if (typeof optionsOrCb === "function") {
|
|
213
218
|
this.send(command, optionsOrCb);
|
|
214
219
|
}
|
|
215
220
|
else if (typeof cb === "function") {
|
|
216
221
|
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error(
|
|
222
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
218
223
|
this.send(command, optionsOrCb || {}, cb);
|
|
219
224
|
}
|
|
220
225
|
else {
|
|
221
226
|
return this.send(command, optionsOrCb);
|
|
222
227
|
}
|
|
223
|
-
}
|
|
224
|
-
createRouteCalculator(args, optionsOrCb, cb) {
|
|
225
|
-
|
|
228
|
+
};
|
|
229
|
+
Location.prototype.createRouteCalculator = function (args, optionsOrCb, cb) {
|
|
230
|
+
var command = new CreateRouteCalculatorCommand(args);
|
|
226
231
|
if (typeof optionsOrCb === "function") {
|
|
227
232
|
this.send(command, optionsOrCb);
|
|
228
233
|
}
|
|
229
234
|
else if (typeof cb === "function") {
|
|
230
235
|
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error(
|
|
236
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
232
237
|
this.send(command, optionsOrCb || {}, cb);
|
|
233
238
|
}
|
|
234
239
|
else {
|
|
235
240
|
return this.send(command, optionsOrCb);
|
|
236
241
|
}
|
|
237
|
-
}
|
|
238
|
-
createTracker(args, optionsOrCb, cb) {
|
|
239
|
-
|
|
242
|
+
};
|
|
243
|
+
Location.prototype.createTracker = function (args, optionsOrCb, cb) {
|
|
244
|
+
var command = new CreateTrackerCommand(args);
|
|
240
245
|
if (typeof optionsOrCb === "function") {
|
|
241
246
|
this.send(command, optionsOrCb);
|
|
242
247
|
}
|
|
243
248
|
else if (typeof cb === "function") {
|
|
244
249
|
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error(
|
|
250
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
246
251
|
this.send(command, optionsOrCb || {}, cb);
|
|
247
252
|
}
|
|
248
253
|
else {
|
|
249
254
|
return this.send(command, optionsOrCb);
|
|
250
255
|
}
|
|
251
|
-
}
|
|
252
|
-
deleteGeofenceCollection(args, optionsOrCb, cb) {
|
|
253
|
-
|
|
256
|
+
};
|
|
257
|
+
Location.prototype.deleteGeofenceCollection = function (args, optionsOrCb, cb) {
|
|
258
|
+
var command = new DeleteGeofenceCollectionCommand(args);
|
|
254
259
|
if (typeof optionsOrCb === "function") {
|
|
255
260
|
this.send(command, optionsOrCb);
|
|
256
261
|
}
|
|
257
262
|
else if (typeof cb === "function") {
|
|
258
263
|
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error(
|
|
264
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
260
265
|
this.send(command, optionsOrCb || {}, cb);
|
|
261
266
|
}
|
|
262
267
|
else {
|
|
263
268
|
return this.send(command, optionsOrCb);
|
|
264
269
|
}
|
|
265
|
-
}
|
|
266
|
-
deleteMap(args, optionsOrCb, cb) {
|
|
267
|
-
|
|
270
|
+
};
|
|
271
|
+
Location.prototype.deleteMap = function (args, optionsOrCb, cb) {
|
|
272
|
+
var command = new DeleteMapCommand(args);
|
|
268
273
|
if (typeof optionsOrCb === "function") {
|
|
269
274
|
this.send(command, optionsOrCb);
|
|
270
275
|
}
|
|
271
276
|
else if (typeof cb === "function") {
|
|
272
277
|
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error(
|
|
278
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
274
279
|
this.send(command, optionsOrCb || {}, cb);
|
|
275
280
|
}
|
|
276
281
|
else {
|
|
277
282
|
return this.send(command, optionsOrCb);
|
|
278
283
|
}
|
|
279
|
-
}
|
|
280
|
-
deletePlaceIndex(args, optionsOrCb, cb) {
|
|
281
|
-
|
|
284
|
+
};
|
|
285
|
+
Location.prototype.deletePlaceIndex = function (args, optionsOrCb, cb) {
|
|
286
|
+
var command = new DeletePlaceIndexCommand(args);
|
|
282
287
|
if (typeof optionsOrCb === "function") {
|
|
283
288
|
this.send(command, optionsOrCb);
|
|
284
289
|
}
|
|
285
290
|
else if (typeof cb === "function") {
|
|
286
291
|
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error(
|
|
292
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
288
293
|
this.send(command, optionsOrCb || {}, cb);
|
|
289
294
|
}
|
|
290
295
|
else {
|
|
291
296
|
return this.send(command, optionsOrCb);
|
|
292
297
|
}
|
|
293
|
-
}
|
|
294
|
-
deleteRouteCalculator(args, optionsOrCb, cb) {
|
|
295
|
-
|
|
298
|
+
};
|
|
299
|
+
Location.prototype.deleteRouteCalculator = function (args, optionsOrCb, cb) {
|
|
300
|
+
var command = new DeleteRouteCalculatorCommand(args);
|
|
296
301
|
if (typeof optionsOrCb === "function") {
|
|
297
302
|
this.send(command, optionsOrCb);
|
|
298
303
|
}
|
|
299
304
|
else if (typeof cb === "function") {
|
|
300
305
|
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error(
|
|
306
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
302
307
|
this.send(command, optionsOrCb || {}, cb);
|
|
303
308
|
}
|
|
304
309
|
else {
|
|
305
310
|
return this.send(command, optionsOrCb);
|
|
306
311
|
}
|
|
307
|
-
}
|
|
308
|
-
deleteTracker(args, optionsOrCb, cb) {
|
|
309
|
-
|
|
312
|
+
};
|
|
313
|
+
Location.prototype.deleteTracker = function (args, optionsOrCb, cb) {
|
|
314
|
+
var command = new DeleteTrackerCommand(args);
|
|
310
315
|
if (typeof optionsOrCb === "function") {
|
|
311
316
|
this.send(command, optionsOrCb);
|
|
312
317
|
}
|
|
313
318
|
else if (typeof cb === "function") {
|
|
314
319
|
if (typeof optionsOrCb !== "object")
|
|
315
|
-
throw new Error(
|
|
320
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
316
321
|
this.send(command, optionsOrCb || {}, cb);
|
|
317
322
|
}
|
|
318
323
|
else {
|
|
319
324
|
return this.send(command, optionsOrCb);
|
|
320
325
|
}
|
|
321
|
-
}
|
|
322
|
-
describeGeofenceCollection(args, optionsOrCb, cb) {
|
|
323
|
-
|
|
326
|
+
};
|
|
327
|
+
Location.prototype.describeGeofenceCollection = function (args, optionsOrCb, cb) {
|
|
328
|
+
var command = new DescribeGeofenceCollectionCommand(args);
|
|
324
329
|
if (typeof optionsOrCb === "function") {
|
|
325
330
|
this.send(command, optionsOrCb);
|
|
326
331
|
}
|
|
327
332
|
else if (typeof cb === "function") {
|
|
328
333
|
if (typeof optionsOrCb !== "object")
|
|
329
|
-
throw new Error(
|
|
334
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
330
335
|
this.send(command, optionsOrCb || {}, cb);
|
|
331
336
|
}
|
|
332
337
|
else {
|
|
333
338
|
return this.send(command, optionsOrCb);
|
|
334
339
|
}
|
|
335
|
-
}
|
|
336
|
-
describeMap(args, optionsOrCb, cb) {
|
|
337
|
-
|
|
340
|
+
};
|
|
341
|
+
Location.prototype.describeMap = function (args, optionsOrCb, cb) {
|
|
342
|
+
var command = new DescribeMapCommand(args);
|
|
338
343
|
if (typeof optionsOrCb === "function") {
|
|
339
344
|
this.send(command, optionsOrCb);
|
|
340
345
|
}
|
|
341
346
|
else if (typeof cb === "function") {
|
|
342
347
|
if (typeof optionsOrCb !== "object")
|
|
343
|
-
throw new Error(
|
|
348
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
344
349
|
this.send(command, optionsOrCb || {}, cb);
|
|
345
350
|
}
|
|
346
351
|
else {
|
|
347
352
|
return this.send(command, optionsOrCb);
|
|
348
353
|
}
|
|
349
|
-
}
|
|
350
|
-
describePlaceIndex(args, optionsOrCb, cb) {
|
|
351
|
-
|
|
354
|
+
};
|
|
355
|
+
Location.prototype.describePlaceIndex = function (args, optionsOrCb, cb) {
|
|
356
|
+
var command = new DescribePlaceIndexCommand(args);
|
|
352
357
|
if (typeof optionsOrCb === "function") {
|
|
353
358
|
this.send(command, optionsOrCb);
|
|
354
359
|
}
|
|
355
360
|
else if (typeof cb === "function") {
|
|
356
361
|
if (typeof optionsOrCb !== "object")
|
|
357
|
-
throw new Error(
|
|
362
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
358
363
|
this.send(command, optionsOrCb || {}, cb);
|
|
359
364
|
}
|
|
360
365
|
else {
|
|
361
366
|
return this.send(command, optionsOrCb);
|
|
362
367
|
}
|
|
363
|
-
}
|
|
364
|
-
describeRouteCalculator(args, optionsOrCb, cb) {
|
|
365
|
-
|
|
368
|
+
};
|
|
369
|
+
Location.prototype.describeRouteCalculator = function (args, optionsOrCb, cb) {
|
|
370
|
+
var command = new DescribeRouteCalculatorCommand(args);
|
|
366
371
|
if (typeof optionsOrCb === "function") {
|
|
367
372
|
this.send(command, optionsOrCb);
|
|
368
373
|
}
|
|
369
374
|
else if (typeof cb === "function") {
|
|
370
375
|
if (typeof optionsOrCb !== "object")
|
|
371
|
-
throw new Error(
|
|
376
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
372
377
|
this.send(command, optionsOrCb || {}, cb);
|
|
373
378
|
}
|
|
374
379
|
else {
|
|
375
380
|
return this.send(command, optionsOrCb);
|
|
376
381
|
}
|
|
377
|
-
}
|
|
378
|
-
describeTracker(args, optionsOrCb, cb) {
|
|
379
|
-
|
|
382
|
+
};
|
|
383
|
+
Location.prototype.describeTracker = function (args, optionsOrCb, cb) {
|
|
384
|
+
var command = new DescribeTrackerCommand(args);
|
|
380
385
|
if (typeof optionsOrCb === "function") {
|
|
381
386
|
this.send(command, optionsOrCb);
|
|
382
387
|
}
|
|
383
388
|
else if (typeof cb === "function") {
|
|
384
389
|
if (typeof optionsOrCb !== "object")
|
|
385
|
-
throw new Error(
|
|
390
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
386
391
|
this.send(command, optionsOrCb || {}, cb);
|
|
387
392
|
}
|
|
388
393
|
else {
|
|
389
394
|
return this.send(command, optionsOrCb);
|
|
390
395
|
}
|
|
391
|
-
}
|
|
392
|
-
disassociateTrackerConsumer(args, optionsOrCb, cb) {
|
|
393
|
-
|
|
396
|
+
};
|
|
397
|
+
Location.prototype.disassociateTrackerConsumer = function (args, optionsOrCb, cb) {
|
|
398
|
+
var command = new DisassociateTrackerConsumerCommand(args);
|
|
394
399
|
if (typeof optionsOrCb === "function") {
|
|
395
400
|
this.send(command, optionsOrCb);
|
|
396
401
|
}
|
|
397
402
|
else if (typeof cb === "function") {
|
|
398
403
|
if (typeof optionsOrCb !== "object")
|
|
399
|
-
throw new Error(
|
|
404
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
400
405
|
this.send(command, optionsOrCb || {}, cb);
|
|
401
406
|
}
|
|
402
407
|
else {
|
|
403
408
|
return this.send(command, optionsOrCb);
|
|
404
409
|
}
|
|
405
|
-
}
|
|
406
|
-
getDevicePosition(args, optionsOrCb, cb) {
|
|
407
|
-
|
|
410
|
+
};
|
|
411
|
+
Location.prototype.getDevicePosition = function (args, optionsOrCb, cb) {
|
|
412
|
+
var command = new GetDevicePositionCommand(args);
|
|
408
413
|
if (typeof optionsOrCb === "function") {
|
|
409
414
|
this.send(command, optionsOrCb);
|
|
410
415
|
}
|
|
411
416
|
else if (typeof cb === "function") {
|
|
412
417
|
if (typeof optionsOrCb !== "object")
|
|
413
|
-
throw new Error(
|
|
418
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
414
419
|
this.send(command, optionsOrCb || {}, cb);
|
|
415
420
|
}
|
|
416
421
|
else {
|
|
417
422
|
return this.send(command, optionsOrCb);
|
|
418
423
|
}
|
|
419
|
-
}
|
|
420
|
-
getDevicePositionHistory(args, optionsOrCb, cb) {
|
|
421
|
-
|
|
424
|
+
};
|
|
425
|
+
Location.prototype.getDevicePositionHistory = function (args, optionsOrCb, cb) {
|
|
426
|
+
var command = new GetDevicePositionHistoryCommand(args);
|
|
422
427
|
if (typeof optionsOrCb === "function") {
|
|
423
428
|
this.send(command, optionsOrCb);
|
|
424
429
|
}
|
|
425
430
|
else if (typeof cb === "function") {
|
|
426
431
|
if (typeof optionsOrCb !== "object")
|
|
427
|
-
throw new Error(
|
|
432
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
428
433
|
this.send(command, optionsOrCb || {}, cb);
|
|
429
434
|
}
|
|
430
435
|
else {
|
|
431
436
|
return this.send(command, optionsOrCb);
|
|
432
437
|
}
|
|
433
|
-
}
|
|
434
|
-
getGeofence(args, optionsOrCb, cb) {
|
|
435
|
-
|
|
438
|
+
};
|
|
439
|
+
Location.prototype.getGeofence = function (args, optionsOrCb, cb) {
|
|
440
|
+
var command = new GetGeofenceCommand(args);
|
|
436
441
|
if (typeof optionsOrCb === "function") {
|
|
437
442
|
this.send(command, optionsOrCb);
|
|
438
443
|
}
|
|
439
444
|
else if (typeof cb === "function") {
|
|
440
445
|
if (typeof optionsOrCb !== "object")
|
|
441
|
-
throw new Error(
|
|
446
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
442
447
|
this.send(command, optionsOrCb || {}, cb);
|
|
443
448
|
}
|
|
444
449
|
else {
|
|
445
450
|
return this.send(command, optionsOrCb);
|
|
446
451
|
}
|
|
447
|
-
}
|
|
448
|
-
getMapGlyphs(args, optionsOrCb, cb) {
|
|
449
|
-
|
|
452
|
+
};
|
|
453
|
+
Location.prototype.getMapGlyphs = function (args, optionsOrCb, cb) {
|
|
454
|
+
var command = new GetMapGlyphsCommand(args);
|
|
450
455
|
if (typeof optionsOrCb === "function") {
|
|
451
456
|
this.send(command, optionsOrCb);
|
|
452
457
|
}
|
|
453
458
|
else if (typeof cb === "function") {
|
|
454
459
|
if (typeof optionsOrCb !== "object")
|
|
455
|
-
throw new Error(
|
|
460
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
456
461
|
this.send(command, optionsOrCb || {}, cb);
|
|
457
462
|
}
|
|
458
463
|
else {
|
|
459
464
|
return this.send(command, optionsOrCb);
|
|
460
465
|
}
|
|
461
|
-
}
|
|
462
|
-
getMapSprites(args, optionsOrCb, cb) {
|
|
463
|
-
|
|
466
|
+
};
|
|
467
|
+
Location.prototype.getMapSprites = function (args, optionsOrCb, cb) {
|
|
468
|
+
var command = new GetMapSpritesCommand(args);
|
|
464
469
|
if (typeof optionsOrCb === "function") {
|
|
465
470
|
this.send(command, optionsOrCb);
|
|
466
471
|
}
|
|
467
472
|
else if (typeof cb === "function") {
|
|
468
473
|
if (typeof optionsOrCb !== "object")
|
|
469
|
-
throw new Error(
|
|
474
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
470
475
|
this.send(command, optionsOrCb || {}, cb);
|
|
471
476
|
}
|
|
472
477
|
else {
|
|
473
478
|
return this.send(command, optionsOrCb);
|
|
474
479
|
}
|
|
475
|
-
}
|
|
476
|
-
getMapStyleDescriptor(args, optionsOrCb, cb) {
|
|
477
|
-
|
|
480
|
+
};
|
|
481
|
+
Location.prototype.getMapStyleDescriptor = function (args, optionsOrCb, cb) {
|
|
482
|
+
var command = new GetMapStyleDescriptorCommand(args);
|
|
478
483
|
if (typeof optionsOrCb === "function") {
|
|
479
484
|
this.send(command, optionsOrCb);
|
|
480
485
|
}
|
|
481
486
|
else if (typeof cb === "function") {
|
|
482
487
|
if (typeof optionsOrCb !== "object")
|
|
483
|
-
throw new Error(
|
|
488
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
484
489
|
this.send(command, optionsOrCb || {}, cb);
|
|
485
490
|
}
|
|
486
491
|
else {
|
|
487
492
|
return this.send(command, optionsOrCb);
|
|
488
493
|
}
|
|
489
|
-
}
|
|
490
|
-
getMapTile(args, optionsOrCb, cb) {
|
|
491
|
-
|
|
494
|
+
};
|
|
495
|
+
Location.prototype.getMapTile = function (args, optionsOrCb, cb) {
|
|
496
|
+
var command = new GetMapTileCommand(args);
|
|
492
497
|
if (typeof optionsOrCb === "function") {
|
|
493
498
|
this.send(command, optionsOrCb);
|
|
494
499
|
}
|
|
495
500
|
else if (typeof cb === "function") {
|
|
496
501
|
if (typeof optionsOrCb !== "object")
|
|
497
|
-
throw new Error(
|
|
502
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
498
503
|
this.send(command, optionsOrCb || {}, cb);
|
|
499
504
|
}
|
|
500
505
|
else {
|
|
501
506
|
return this.send(command, optionsOrCb);
|
|
502
507
|
}
|
|
503
|
-
}
|
|
504
|
-
getPlace(args, optionsOrCb, cb) {
|
|
505
|
-
|
|
508
|
+
};
|
|
509
|
+
Location.prototype.getPlace = function (args, optionsOrCb, cb) {
|
|
510
|
+
var command = new GetPlaceCommand(args);
|
|
506
511
|
if (typeof optionsOrCb === "function") {
|
|
507
512
|
this.send(command, optionsOrCb);
|
|
508
513
|
}
|
|
509
514
|
else if (typeof cb === "function") {
|
|
510
515
|
if (typeof optionsOrCb !== "object")
|
|
511
|
-
throw new Error(
|
|
516
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
512
517
|
this.send(command, optionsOrCb || {}, cb);
|
|
513
518
|
}
|
|
514
519
|
else {
|
|
515
520
|
return this.send(command, optionsOrCb);
|
|
516
521
|
}
|
|
517
|
-
}
|
|
518
|
-
listDevicePositions(args, optionsOrCb, cb) {
|
|
519
|
-
|
|
522
|
+
};
|
|
523
|
+
Location.prototype.listDevicePositions = function (args, optionsOrCb, cb) {
|
|
524
|
+
var command = new ListDevicePositionsCommand(args);
|
|
520
525
|
if (typeof optionsOrCb === "function") {
|
|
521
526
|
this.send(command, optionsOrCb);
|
|
522
527
|
}
|
|
523
528
|
else if (typeof cb === "function") {
|
|
524
529
|
if (typeof optionsOrCb !== "object")
|
|
525
|
-
throw new Error(
|
|
530
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
526
531
|
this.send(command, optionsOrCb || {}, cb);
|
|
527
532
|
}
|
|
528
533
|
else {
|
|
529
534
|
return this.send(command, optionsOrCb);
|
|
530
535
|
}
|
|
531
|
-
}
|
|
532
|
-
listGeofenceCollections(args, optionsOrCb, cb) {
|
|
533
|
-
|
|
536
|
+
};
|
|
537
|
+
Location.prototype.listGeofenceCollections = function (args, optionsOrCb, cb) {
|
|
538
|
+
var command = new ListGeofenceCollectionsCommand(args);
|
|
534
539
|
if (typeof optionsOrCb === "function") {
|
|
535
540
|
this.send(command, optionsOrCb);
|
|
536
541
|
}
|
|
537
542
|
else if (typeof cb === "function") {
|
|
538
543
|
if (typeof optionsOrCb !== "object")
|
|
539
|
-
throw new Error(
|
|
544
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
540
545
|
this.send(command, optionsOrCb || {}, cb);
|
|
541
546
|
}
|
|
542
547
|
else {
|
|
543
548
|
return this.send(command, optionsOrCb);
|
|
544
549
|
}
|
|
545
|
-
}
|
|
546
|
-
listGeofences(args, optionsOrCb, cb) {
|
|
547
|
-
|
|
550
|
+
};
|
|
551
|
+
Location.prototype.listGeofences = function (args, optionsOrCb, cb) {
|
|
552
|
+
var command = new ListGeofencesCommand(args);
|
|
548
553
|
if (typeof optionsOrCb === "function") {
|
|
549
554
|
this.send(command, optionsOrCb);
|
|
550
555
|
}
|
|
551
556
|
else if (typeof cb === "function") {
|
|
552
557
|
if (typeof optionsOrCb !== "object")
|
|
553
|
-
throw new Error(
|
|
558
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
554
559
|
this.send(command, optionsOrCb || {}, cb);
|
|
555
560
|
}
|
|
556
561
|
else {
|
|
557
562
|
return this.send(command, optionsOrCb);
|
|
558
563
|
}
|
|
559
|
-
}
|
|
560
|
-
listMaps(args, optionsOrCb, cb) {
|
|
561
|
-
|
|
564
|
+
};
|
|
565
|
+
Location.prototype.listMaps = function (args, optionsOrCb, cb) {
|
|
566
|
+
var command = new ListMapsCommand(args);
|
|
562
567
|
if (typeof optionsOrCb === "function") {
|
|
563
568
|
this.send(command, optionsOrCb);
|
|
564
569
|
}
|
|
565
570
|
else if (typeof cb === "function") {
|
|
566
571
|
if (typeof optionsOrCb !== "object")
|
|
567
|
-
throw new Error(
|
|
572
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
568
573
|
this.send(command, optionsOrCb || {}, cb);
|
|
569
574
|
}
|
|
570
575
|
else {
|
|
571
576
|
return this.send(command, optionsOrCb);
|
|
572
577
|
}
|
|
573
|
-
}
|
|
574
|
-
listPlaceIndexes(args, optionsOrCb, cb) {
|
|
575
|
-
|
|
578
|
+
};
|
|
579
|
+
Location.prototype.listPlaceIndexes = function (args, optionsOrCb, cb) {
|
|
580
|
+
var command = new ListPlaceIndexesCommand(args);
|
|
576
581
|
if (typeof optionsOrCb === "function") {
|
|
577
582
|
this.send(command, optionsOrCb);
|
|
578
583
|
}
|
|
579
584
|
else if (typeof cb === "function") {
|
|
580
585
|
if (typeof optionsOrCb !== "object")
|
|
581
|
-
throw new Error(
|
|
586
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
582
587
|
this.send(command, optionsOrCb || {}, cb);
|
|
583
588
|
}
|
|
584
589
|
else {
|
|
585
590
|
return this.send(command, optionsOrCb);
|
|
586
591
|
}
|
|
587
|
-
}
|
|
588
|
-
listRouteCalculators(args, optionsOrCb, cb) {
|
|
589
|
-
|
|
592
|
+
};
|
|
593
|
+
Location.prototype.listRouteCalculators = function (args, optionsOrCb, cb) {
|
|
594
|
+
var command = new ListRouteCalculatorsCommand(args);
|
|
590
595
|
if (typeof optionsOrCb === "function") {
|
|
591
596
|
this.send(command, optionsOrCb);
|
|
592
597
|
}
|
|
593
598
|
else if (typeof cb === "function") {
|
|
594
599
|
if (typeof optionsOrCb !== "object")
|
|
595
|
-
throw new Error(
|
|
600
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
596
601
|
this.send(command, optionsOrCb || {}, cb);
|
|
597
602
|
}
|
|
598
603
|
else {
|
|
599
604
|
return this.send(command, optionsOrCb);
|
|
600
605
|
}
|
|
601
|
-
}
|
|
602
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
603
|
-
|
|
606
|
+
};
|
|
607
|
+
Location.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
608
|
+
var command = new ListTagsForResourceCommand(args);
|
|
604
609
|
if (typeof optionsOrCb === "function") {
|
|
605
610
|
this.send(command, optionsOrCb);
|
|
606
611
|
}
|
|
607
612
|
else if (typeof cb === "function") {
|
|
608
613
|
if (typeof optionsOrCb !== "object")
|
|
609
|
-
throw new Error(
|
|
614
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
610
615
|
this.send(command, optionsOrCb || {}, cb);
|
|
611
616
|
}
|
|
612
617
|
else {
|
|
613
618
|
return this.send(command, optionsOrCb);
|
|
614
619
|
}
|
|
615
|
-
}
|
|
616
|
-
listTrackerConsumers(args, optionsOrCb, cb) {
|
|
617
|
-
|
|
620
|
+
};
|
|
621
|
+
Location.prototype.listTrackerConsumers = function (args, optionsOrCb, cb) {
|
|
622
|
+
var command = new ListTrackerConsumersCommand(args);
|
|
618
623
|
if (typeof optionsOrCb === "function") {
|
|
619
624
|
this.send(command, optionsOrCb);
|
|
620
625
|
}
|
|
621
626
|
else if (typeof cb === "function") {
|
|
622
627
|
if (typeof optionsOrCb !== "object")
|
|
623
|
-
throw new Error(
|
|
628
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
624
629
|
this.send(command, optionsOrCb || {}, cb);
|
|
625
630
|
}
|
|
626
631
|
else {
|
|
627
632
|
return this.send(command, optionsOrCb);
|
|
628
633
|
}
|
|
629
|
-
}
|
|
630
|
-
listTrackers(args, optionsOrCb, cb) {
|
|
631
|
-
|
|
634
|
+
};
|
|
635
|
+
Location.prototype.listTrackers = function (args, optionsOrCb, cb) {
|
|
636
|
+
var command = new ListTrackersCommand(args);
|
|
632
637
|
if (typeof optionsOrCb === "function") {
|
|
633
638
|
this.send(command, optionsOrCb);
|
|
634
639
|
}
|
|
635
640
|
else if (typeof cb === "function") {
|
|
636
641
|
if (typeof optionsOrCb !== "object")
|
|
637
|
-
throw new Error(
|
|
642
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
638
643
|
this.send(command, optionsOrCb || {}, cb);
|
|
639
644
|
}
|
|
640
645
|
else {
|
|
641
646
|
return this.send(command, optionsOrCb);
|
|
642
647
|
}
|
|
643
|
-
}
|
|
644
|
-
putGeofence(args, optionsOrCb, cb) {
|
|
645
|
-
|
|
648
|
+
};
|
|
649
|
+
Location.prototype.putGeofence = function (args, optionsOrCb, cb) {
|
|
650
|
+
var command = new PutGeofenceCommand(args);
|
|
646
651
|
if (typeof optionsOrCb === "function") {
|
|
647
652
|
this.send(command, optionsOrCb);
|
|
648
653
|
}
|
|
649
654
|
else if (typeof cb === "function") {
|
|
650
655
|
if (typeof optionsOrCb !== "object")
|
|
651
|
-
throw new Error(
|
|
656
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
652
657
|
this.send(command, optionsOrCb || {}, cb);
|
|
653
658
|
}
|
|
654
659
|
else {
|
|
655
660
|
return this.send(command, optionsOrCb);
|
|
656
661
|
}
|
|
657
|
-
}
|
|
658
|
-
searchPlaceIndexForPosition(args, optionsOrCb, cb) {
|
|
659
|
-
|
|
662
|
+
};
|
|
663
|
+
Location.prototype.searchPlaceIndexForPosition = function (args, optionsOrCb, cb) {
|
|
664
|
+
var command = new SearchPlaceIndexForPositionCommand(args);
|
|
660
665
|
if (typeof optionsOrCb === "function") {
|
|
661
666
|
this.send(command, optionsOrCb);
|
|
662
667
|
}
|
|
663
668
|
else if (typeof cb === "function") {
|
|
664
669
|
if (typeof optionsOrCb !== "object")
|
|
665
|
-
throw new Error(
|
|
670
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
666
671
|
this.send(command, optionsOrCb || {}, cb);
|
|
667
672
|
}
|
|
668
673
|
else {
|
|
669
674
|
return this.send(command, optionsOrCb);
|
|
670
675
|
}
|
|
671
|
-
}
|
|
672
|
-
searchPlaceIndexForSuggestions(args, optionsOrCb, cb) {
|
|
673
|
-
|
|
676
|
+
};
|
|
677
|
+
Location.prototype.searchPlaceIndexForSuggestions = function (args, optionsOrCb, cb) {
|
|
678
|
+
var command = new SearchPlaceIndexForSuggestionsCommand(args);
|
|
674
679
|
if (typeof optionsOrCb === "function") {
|
|
675
680
|
this.send(command, optionsOrCb);
|
|
676
681
|
}
|
|
677
682
|
else if (typeof cb === "function") {
|
|
678
683
|
if (typeof optionsOrCb !== "object")
|
|
679
|
-
throw new Error(
|
|
684
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
680
685
|
this.send(command, optionsOrCb || {}, cb);
|
|
681
686
|
}
|
|
682
687
|
else {
|
|
683
688
|
return this.send(command, optionsOrCb);
|
|
684
689
|
}
|
|
685
|
-
}
|
|
686
|
-
searchPlaceIndexForText(args, optionsOrCb, cb) {
|
|
687
|
-
|
|
690
|
+
};
|
|
691
|
+
Location.prototype.searchPlaceIndexForText = function (args, optionsOrCb, cb) {
|
|
692
|
+
var command = new SearchPlaceIndexForTextCommand(args);
|
|
688
693
|
if (typeof optionsOrCb === "function") {
|
|
689
694
|
this.send(command, optionsOrCb);
|
|
690
695
|
}
|
|
691
696
|
else if (typeof cb === "function") {
|
|
692
697
|
if (typeof optionsOrCb !== "object")
|
|
693
|
-
throw new Error(
|
|
698
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
694
699
|
this.send(command, optionsOrCb || {}, cb);
|
|
695
700
|
}
|
|
696
701
|
else {
|
|
697
702
|
return this.send(command, optionsOrCb);
|
|
698
703
|
}
|
|
699
|
-
}
|
|
700
|
-
tagResource(args, optionsOrCb, cb) {
|
|
701
|
-
|
|
704
|
+
};
|
|
705
|
+
Location.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
706
|
+
var command = new TagResourceCommand(args);
|
|
702
707
|
if (typeof optionsOrCb === "function") {
|
|
703
708
|
this.send(command, optionsOrCb);
|
|
704
709
|
}
|
|
705
710
|
else if (typeof cb === "function") {
|
|
706
711
|
if (typeof optionsOrCb !== "object")
|
|
707
|
-
throw new Error(
|
|
712
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
708
713
|
this.send(command, optionsOrCb || {}, cb);
|
|
709
714
|
}
|
|
710
715
|
else {
|
|
711
716
|
return this.send(command, optionsOrCb);
|
|
712
717
|
}
|
|
713
|
-
}
|
|
714
|
-
untagResource(args, optionsOrCb, cb) {
|
|
715
|
-
|
|
718
|
+
};
|
|
719
|
+
Location.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
720
|
+
var command = new UntagResourceCommand(args);
|
|
716
721
|
if (typeof optionsOrCb === "function") {
|
|
717
722
|
this.send(command, optionsOrCb);
|
|
718
723
|
}
|
|
719
724
|
else if (typeof cb === "function") {
|
|
720
725
|
if (typeof optionsOrCb !== "object")
|
|
721
|
-
throw new Error(
|
|
726
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
722
727
|
this.send(command, optionsOrCb || {}, cb);
|
|
723
728
|
}
|
|
724
729
|
else {
|
|
725
730
|
return this.send(command, optionsOrCb);
|
|
726
731
|
}
|
|
727
|
-
}
|
|
728
|
-
updateGeofenceCollection(args, optionsOrCb, cb) {
|
|
729
|
-
|
|
732
|
+
};
|
|
733
|
+
Location.prototype.updateGeofenceCollection = function (args, optionsOrCb, cb) {
|
|
734
|
+
var command = new UpdateGeofenceCollectionCommand(args);
|
|
730
735
|
if (typeof optionsOrCb === "function") {
|
|
731
736
|
this.send(command, optionsOrCb);
|
|
732
737
|
}
|
|
733
738
|
else if (typeof cb === "function") {
|
|
734
739
|
if (typeof optionsOrCb !== "object")
|
|
735
|
-
throw new Error(
|
|
740
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
736
741
|
this.send(command, optionsOrCb || {}, cb);
|
|
737
742
|
}
|
|
738
743
|
else {
|
|
739
744
|
return this.send(command, optionsOrCb);
|
|
740
745
|
}
|
|
741
|
-
}
|
|
742
|
-
updateMap(args, optionsOrCb, cb) {
|
|
743
|
-
|
|
746
|
+
};
|
|
747
|
+
Location.prototype.updateMap = function (args, optionsOrCb, cb) {
|
|
748
|
+
var command = new UpdateMapCommand(args);
|
|
744
749
|
if (typeof optionsOrCb === "function") {
|
|
745
750
|
this.send(command, optionsOrCb);
|
|
746
751
|
}
|
|
747
752
|
else if (typeof cb === "function") {
|
|
748
753
|
if (typeof optionsOrCb !== "object")
|
|
749
|
-
throw new Error(
|
|
754
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
750
755
|
this.send(command, optionsOrCb || {}, cb);
|
|
751
756
|
}
|
|
752
757
|
else {
|
|
753
758
|
return this.send(command, optionsOrCb);
|
|
754
759
|
}
|
|
755
|
-
}
|
|
756
|
-
updatePlaceIndex(args, optionsOrCb, cb) {
|
|
757
|
-
|
|
760
|
+
};
|
|
761
|
+
Location.prototype.updatePlaceIndex = function (args, optionsOrCb, cb) {
|
|
762
|
+
var command = new UpdatePlaceIndexCommand(args);
|
|
758
763
|
if (typeof optionsOrCb === "function") {
|
|
759
764
|
this.send(command, optionsOrCb);
|
|
760
765
|
}
|
|
761
766
|
else if (typeof cb === "function") {
|
|
762
767
|
if (typeof optionsOrCb !== "object")
|
|
763
|
-
throw new Error(
|
|
768
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
764
769
|
this.send(command, optionsOrCb || {}, cb);
|
|
765
770
|
}
|
|
766
771
|
else {
|
|
767
772
|
return this.send(command, optionsOrCb);
|
|
768
773
|
}
|
|
769
|
-
}
|
|
770
|
-
updateRouteCalculator(args, optionsOrCb, cb) {
|
|
771
|
-
|
|
774
|
+
};
|
|
775
|
+
Location.prototype.updateRouteCalculator = function (args, optionsOrCb, cb) {
|
|
776
|
+
var command = new UpdateRouteCalculatorCommand(args);
|
|
772
777
|
if (typeof optionsOrCb === "function") {
|
|
773
778
|
this.send(command, optionsOrCb);
|
|
774
779
|
}
|
|
775
780
|
else if (typeof cb === "function") {
|
|
776
781
|
if (typeof optionsOrCb !== "object")
|
|
777
|
-
throw new Error(
|
|
782
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
778
783
|
this.send(command, optionsOrCb || {}, cb);
|
|
779
784
|
}
|
|
780
785
|
else {
|
|
781
786
|
return this.send(command, optionsOrCb);
|
|
782
787
|
}
|
|
783
|
-
}
|
|
784
|
-
updateTracker(args, optionsOrCb, cb) {
|
|
785
|
-
|
|
788
|
+
};
|
|
789
|
+
Location.prototype.updateTracker = function (args, optionsOrCb, cb) {
|
|
790
|
+
var command = new UpdateTrackerCommand(args);
|
|
786
791
|
if (typeof optionsOrCb === "function") {
|
|
787
792
|
this.send(command, optionsOrCb);
|
|
788
793
|
}
|
|
789
794
|
else if (typeof cb === "function") {
|
|
790
795
|
if (typeof optionsOrCb !== "object")
|
|
791
|
-
throw new Error(
|
|
796
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
792
797
|
this.send(command, optionsOrCb || {}, cb);
|
|
793
798
|
}
|
|
794
799
|
else {
|
|
795
800
|
return this.send(command, optionsOrCb);
|
|
796
801
|
}
|
|
797
|
-
}
|
|
798
|
-
|
|
802
|
+
};
|
|
803
|
+
return Location;
|
|
804
|
+
}(LocationClient));
|
|
805
|
+
export { Location };
|