@aws-sdk/client-location 3.142.0 → 3.150.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 +27 -0
- package/README.md +1 -1
- package/dist-cjs/models/models_0.js +10 -4
- package/dist-cjs/protocols/Aws_restJson1.js +14 -0
- package/dist-es/models/models_0.js +2 -1
- package/dist-es/protocols/Aws_restJson1.js +11 -1
- package/dist-types/Location.d.ts +5 -1
- package/dist-types/LocationClient.d.ts +1 -1
- package/dist-types/commands/CalculateRouteCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +60 -9
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-location
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.146.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.145.0...v3.146.0) (2022-08-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-location:** Amazon Location Service now allows circular geofences in BatchPutGeofence, PutGeofence, and GetGeofence APIs. ([c4ac25d](https://github.com/aws/aws-sdk-js-v3/commit/c4ac25d8816e0a6b85901eab400322badbe6dfe7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-location
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
34
|
|
|
8
35
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript Location Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing
|
|
12
|
+
<p>"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"</p>
|
|
13
13
|
|
|
14
14
|
## Installing
|
|
15
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateTrackerResponseFilterSensitiveLog = exports.UpdateTrackerRequestFilterSensitiveLog = exports.UpdateRouteCalculatorResponseFilterSensitiveLog = exports.UpdateRouteCalculatorRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.CalculateRouteMatrixSummaryFilterSensitiveLog = exports.RouteMatrixEntryFilterSensitiveLog = exports.RouteMatrixEntryErrorFilterSensitiveLog = exports.CalculateRouteMatrixRequestFilterSensitiveLog = exports.CalculateRouteResponseFilterSensitiveLog = exports.CalculateRouteSummaryFilterSensitiveLog = exports.LegFilterSensitiveLog = exports.StepFilterSensitiveLog = exports.LegGeometryFilterSensitiveLog = exports.CalculateRouteRequestFilterSensitiveLog = exports.CalculateRouteTruckModeOptionsFilterSensitiveLog = exports.TruckWeightFilterSensitiveLog = exports.TruckDimensionsFilterSensitiveLog = exports.CalculateRouteCarModeOptionsFilterSensitiveLog = exports.BatchUpdateDevicePositionResponseFilterSensitiveLog = exports.BatchUpdateDevicePositionErrorFilterSensitiveLog = exports.BatchUpdateDevicePositionRequestFilterSensitiveLog = exports.BatchPutGeofenceResponseFilterSensitiveLog = exports.BatchPutGeofenceSuccessFilterSensitiveLog = exports.BatchPutGeofenceErrorFilterSensitiveLog = exports.BatchPutGeofenceRequestFilterSensitiveLog = exports.BatchPutGeofenceRequestEntryFilterSensitiveLog = exports.GeofenceGeometryFilterSensitiveLog = exports.CircleFilterSensitiveLog = exports.BatchGetDevicePositionResponseFilterSensitiveLog = exports.BatchGetDevicePositionErrorFilterSensitiveLog = exports.DevicePositionFilterSensitiveLog = exports.BatchGetDevicePositionRequestFilterSensitiveLog = exports.BatchEvaluateGeofencesResponseFilterSensitiveLog = exports.BatchEvaluateGeofencesErrorFilterSensitiveLog = exports.BatchEvaluateGeofencesRequestFilterSensitiveLog = exports.DevicePositionUpdateFilterSensitiveLog = exports.PositionalAccuracyFilterSensitiveLog = exports.BatchDeleteGeofenceResponseFilterSensitiveLog = exports.BatchDeleteGeofenceErrorFilterSensitiveLog = exports.BatchDeleteGeofenceRequestFilterSensitiveLog = exports.BatchDeleteDevicePositionHistoryResponseFilterSensitiveLog = exports.BatchDeleteDevicePositionHistoryErrorFilterSensitiveLog = exports.BatchItemErrorFilterSensitiveLog = exports.BatchDeleteDevicePositionHistoryRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateTrackerConsumerResponseFilterSensitiveLog = exports.AssociateTrackerConsumerRequestFilterSensitiveLog = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.PutGeofenceRequestFilterSensitiveLog = exports.ListGeofencesResponseFilterSensitiveLog = exports.ListGeofenceResponseEntryFilterSensitiveLog = exports.ListGeofencesRequestFilterSensitiveLog = exports.ListGeofenceCollectionsResponseFilterSensitiveLog = exports.ListGeofenceCollectionsResponseEntryFilterSensitiveLog = exports.ListGeofenceCollectionsRequestFilterSensitiveLog = exports.GetGeofenceResponseFilterSensitiveLog = exports.GetGeofenceRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.DisassociateTrackerConsumerResponseFilterSensitiveLog = exports.DisassociateTrackerConsumerRequestFilterSensitiveLog = exports.DescribeTrackerResponseFilterSensitiveLog = exports.DescribeTrackerRequestFilterSensitiveLog = exports.DescribeRouteCalculatorResponseFilterSensitiveLog = exports.DescribeRouteCalculatorRequestFilterSensitiveLog = exports.DescribePlaceIndexResponseFilterSensitiveLog = exports.DescribePlaceIndexRequestFilterSensitiveLog = exports.DescribeMapResponseFilterSensitiveLog = exports.DescribeMapRequestFilterSensitiveLog = exports.DescribeGeofenceCollectionResponseFilterSensitiveLog = exports.DescribeGeofenceCollectionRequestFilterSensitiveLog = exports.DeleteTrackerResponseFilterSensitiveLog = exports.DeleteTrackerRequestFilterSensitiveLog = exports.DeleteRouteCalculatorResponseFilterSensitiveLog = exports.DeleteRouteCalculatorRequestFilterSensitiveLog = exports.DeletePlaceIndexResponseFilterSensitiveLog = exports.DeletePlaceIndexRequestFilterSensitiveLog = exports.DeleteMapResponseFilterSensitiveLog = exports.DeleteMapRequestFilterSensitiveLog = exports.DeleteGeofenceCollectionResponseFilterSensitiveLog = exports.DeleteGeofenceCollectionRequestFilterSensitiveLog = exports.CreateTrackerResponseFilterSensitiveLog = exports.CreateTrackerRequestFilterSensitiveLog = exports.CreateRouteCalculatorResponseFilterSensitiveLog = exports.CreateRouteCalculatorRequestFilterSensitiveLog = exports.CreatePlaceIndexResponseFilterSensitiveLog = exports.CreatePlaceIndexRequestFilterSensitiveLog = exports.DataSourceConfigurationFilterSensitiveLog = exports.CreateMapResponseFilterSensitiveLog = exports.CreateMapRequestFilterSensitiveLog = exports.MapConfigurationFilterSensitiveLog = exports.CreateGeofenceCollectionResponseFilterSensitiveLog = exports.CreateGeofenceCollectionRequestFilterSensitiveLog = exports.CalculateRouteMatrixResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdatePlaceIndexRequestFilterSensitiveLog = exports.SearchPlaceIndexForTextResponseFilterSensitiveLog = exports.SearchPlaceIndexForTextSummaryFilterSensitiveLog = exports.SearchForTextResultFilterSensitiveLog = exports.SearchPlaceIndexForTextRequestFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsResponseFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsSummaryFilterSensitiveLog = exports.SearchForSuggestionsResultFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = exports.SearchPlaceIndexForPositionResponseFilterSensitiveLog = exports.SearchPlaceIndexForPositionSummaryFilterSensitiveLog = exports.SearchForPositionResultFilterSensitiveLog = exports.PlaceFilterSensitiveLog = exports.TimeZoneFilterSensitiveLog = exports.PlaceGeometryFilterSensitiveLog = exports.SearchPlaceIndexForPositionRequestFilterSensitiveLog = exports.UpdateMapResponseFilterSensitiveLog = exports.UpdateMapRequestFilterSensitiveLog = exports.ListTrackersResponseFilterSensitiveLog = exports.ListTrackersResponseEntryFilterSensitiveLog = exports.ListTrackersRequestFilterSensitiveLog = exports.ListTrackerConsumersResponseFilterSensitiveLog = exports.ListTrackerConsumersRequestFilterSensitiveLog = exports.ListRouteCalculatorsResponseFilterSensitiveLog = exports.ListRouteCalculatorsResponseEntryFilterSensitiveLog = exports.ListRouteCalculatorsRequestFilterSensitiveLog = exports.ListPlaceIndexesResponseFilterSensitiveLog = exports.ListPlaceIndexesResponseEntryFilterSensitiveLog = exports.ListPlaceIndexesRequestFilterSensitiveLog = exports.ListMapsResponseFilterSensitiveLog = exports.ListMapsResponseEntryFilterSensitiveLog = exports.ListMapsRequestFilterSensitiveLog = exports.ListDevicePositionsResponseFilterSensitiveLog = exports.ListDevicePositionsResponseEntryFilterSensitiveLog = exports.ListDevicePositionsRequestFilterSensitiveLog = exports.GetMapTileResponseFilterSensitiveLog = exports.GetMapTileRequestFilterSensitiveLog = exports.GetMapStyleDescriptorResponseFilterSensitiveLog = exports.GetMapStyleDescriptorRequestFilterSensitiveLog = exports.GetMapSpritesResponseFilterSensitiveLog = exports.GetMapSpritesRequestFilterSensitiveLog = exports.GetMapGlyphsResponseFilterSensitiveLog = exports.GetMapGlyphsRequestFilterSensitiveLog = exports.GetDevicePositionHistoryResponseFilterSensitiveLog = exports.GetDevicePositionHistoryRequestFilterSensitiveLog = exports.GetDevicePositionResponseFilterSensitiveLog = exports.GetDevicePositionRequestFilterSensitiveLog = exports.UpdateGeofenceCollectionResponseFilterSensitiveLog = exports.UpdateGeofenceCollectionRequestFilterSensitiveLog = exports.PutGeofenceResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateTrackerResponseFilterSensitiveLog = exports.UpdateTrackerRequestFilterSensitiveLog = exports.UpdateRouteCalculatorResponseFilterSensitiveLog = exports.UpdateRouteCalculatorRequestFilterSensitiveLog = exports.UpdatePlaceIndexResponseFilterSensitiveLog = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const LocationServiceException_1 = require("./LocationServiceException");
|
|
9
9
|
class AccessDeniedException extends LocationServiceException_1.LocationServiceException {
|
|
@@ -194,9 +194,15 @@ const BatchGetDevicePositionResponseFilterSensitiveLog = (obj) => ({
|
|
|
194
194
|
}),
|
|
195
195
|
});
|
|
196
196
|
exports.BatchGetDevicePositionResponseFilterSensitiveLog = BatchGetDevicePositionResponseFilterSensitiveLog;
|
|
197
|
+
const CircleFilterSensitiveLog = (obj) => ({
|
|
198
|
+
...obj,
|
|
199
|
+
...(obj.Center && { Center: smithy_client_1.SENSITIVE_STRING }),
|
|
200
|
+
});
|
|
201
|
+
exports.CircleFilterSensitiveLog = CircleFilterSensitiveLog;
|
|
197
202
|
const GeofenceGeometryFilterSensitiveLog = (obj) => ({
|
|
198
203
|
...obj,
|
|
199
204
|
...(obj.Polygon && { Polygon: obj.Polygon.map((item) => smithy_client_1.SENSITIVE_STRING) }),
|
|
205
|
+
...(obj.Circle && { Circle: smithy_client_1.SENSITIVE_STRING }),
|
|
200
206
|
});
|
|
201
207
|
exports.GeofenceGeometryFilterSensitiveLog = GeofenceGeometryFilterSensitiveLog;
|
|
202
208
|
const BatchPutGeofenceRequestEntryFilterSensitiveLog = (obj) => ({
|
|
@@ -4302,6 +4302,12 @@ const serializeAws_restJson1CalculateRouteTruckModeOptions = (input, context) =>
|
|
|
4302
4302
|
...(input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
|
|
4303
4303
|
};
|
|
4304
4304
|
};
|
|
4305
|
+
const serializeAws_restJson1Circle = (input, context) => {
|
|
4306
|
+
return {
|
|
4307
|
+
...(input.Center != null && { Center: serializeAws_restJson1Position(input.Center, context) }),
|
|
4308
|
+
...(input.Radius != null && { Radius: (0, smithy_client_1.serializeFloat)(input.Radius) }),
|
|
4309
|
+
};
|
|
4310
|
+
};
|
|
4305
4311
|
const serializeAws_restJson1CountryCodeList = (input, context) => {
|
|
4306
4312
|
return input
|
|
4307
4313
|
.filter((e) => e != null)
|
|
@@ -4341,6 +4347,7 @@ const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
|
|
|
4341
4347
|
};
|
|
4342
4348
|
const serializeAws_restJson1GeofenceGeometry = (input, context) => {
|
|
4343
4349
|
return {
|
|
4350
|
+
...(input.Circle != null && { Circle: serializeAws_restJson1Circle(input.Circle, context) }),
|
|
4344
4351
|
...(input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
|
|
4345
4352
|
};
|
|
4346
4353
|
};
|
|
@@ -4599,6 +4606,12 @@ const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
|
4599
4606
|
RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
|
|
4600
4607
|
};
|
|
4601
4608
|
};
|
|
4609
|
+
const deserializeAws_restJson1Circle = (output, context) => {
|
|
4610
|
+
return {
|
|
4611
|
+
Center: output.Center != null ? deserializeAws_restJson1Position(output.Center, context) : undefined,
|
|
4612
|
+
Radius: (0, smithy_client_1.limitedParseDouble)(output.Radius),
|
|
4613
|
+
};
|
|
4614
|
+
};
|
|
4602
4615
|
const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
4603
4616
|
const retVal = (output || [])
|
|
4604
4617
|
.filter((e) => e != null)
|
|
@@ -4640,6 +4653,7 @@ const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
|
4640
4653
|
};
|
|
4641
4654
|
const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
4642
4655
|
return {
|
|
4656
|
+
Circle: output.Circle != null ? deserializeAws_restJson1Circle(output.Circle, context) : undefined,
|
|
4643
4657
|
Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
|
|
4644
4658
|
};
|
|
4645
4659
|
};
|
|
@@ -119,7 +119,8 @@ export var BatchGetDevicePositionErrorFilterSensitiveLog = function (obj) { retu
|
|
|
119
119
|
export var BatchGetDevicePositionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DevicePositions && {
|
|
120
120
|
DevicePositions: obj.DevicePositions.map(function (item) { return DevicePositionFilterSensitiveLog(item); }),
|
|
121
121
|
}))); };
|
|
122
|
-
export var
|
|
122
|
+
export var CircleFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Center && { Center: SENSITIVE_STRING }))); };
|
|
123
|
+
export var GeofenceGeometryFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Polygon && { Polygon: obj.Polygon.map(function (item) { return SENSITIVE_STRING; }) })), (obj.Circle && { Circle: SENSITIVE_STRING }))); };
|
|
123
124
|
export var BatchPutGeofenceRequestEntryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Geometry && { Geometry: GeofenceGeometryFilterSensitiveLog(obj.Geometry) }))); };
|
|
124
125
|
export var BatchPutGeofenceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Entries && { Entries: obj.Entries.map(function (item) { return BatchPutGeofenceRequestEntryFilterSensitiveLog(item); }) }))); };
|
|
125
126
|
export var BatchPutGeofenceErrorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -5836,6 +5836,9 @@ var serializeAws_restJson1CalculateRouteCarModeOptions = function (input, contex
|
|
|
5836
5836
|
var serializeAws_restJson1CalculateRouteTruckModeOptions = function (input, context) {
|
|
5837
5837
|
return __assign(__assign(__assign(__assign({}, (input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries })), (input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls })), (input.Dimensions != null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) })), (input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }));
|
|
5838
5838
|
};
|
|
5839
|
+
var serializeAws_restJson1Circle = function (input, context) {
|
|
5840
|
+
return __assign(__assign({}, (input.Center != null && { Center: serializeAws_restJson1Position(input.Center, context) })), (input.Radius != null && { Radius: __serializeFloat(input.Radius) }));
|
|
5841
|
+
};
|
|
5839
5842
|
var serializeAws_restJson1CountryCodeList = function (input, context) {
|
|
5840
5843
|
return input
|
|
5841
5844
|
.filter(function (e) { return e != null; })
|
|
@@ -5866,7 +5869,7 @@ var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
|
|
|
5866
5869
|
});
|
|
5867
5870
|
};
|
|
5868
5871
|
var serializeAws_restJson1GeofenceGeometry = function (input, context) {
|
|
5869
|
-
return __assign({}, (input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }));
|
|
5872
|
+
return __assign(__assign({}, (input.Circle != null && { Circle: serializeAws_restJson1Circle(input.Circle, context) })), (input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }));
|
|
5870
5873
|
};
|
|
5871
5874
|
var serializeAws_restJson1IdList = function (input, context) {
|
|
5872
5875
|
return input
|
|
@@ -6109,6 +6112,12 @@ var deserializeAws_restJson1CalculateRouteSummary = function (output, context) {
|
|
|
6109
6112
|
RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
|
|
6110
6113
|
};
|
|
6111
6114
|
};
|
|
6115
|
+
var deserializeAws_restJson1Circle = function (output, context) {
|
|
6116
|
+
return {
|
|
6117
|
+
Center: output.Center != null ? deserializeAws_restJson1Position(output.Center, context) : undefined,
|
|
6118
|
+
Radius: __limitedParseDouble(output.Radius),
|
|
6119
|
+
};
|
|
6120
|
+
};
|
|
6112
6121
|
var deserializeAws_restJson1CountryCodeList = function (output, context) {
|
|
6113
6122
|
var retVal = (output || [])
|
|
6114
6123
|
.filter(function (e) { return e != null; })
|
|
@@ -6150,6 +6159,7 @@ var deserializeAws_restJson1DevicePositionList = function (output, context) {
|
|
|
6150
6159
|
};
|
|
6151
6160
|
var deserializeAws_restJson1GeofenceGeometry = function (output, context) {
|
|
6152
6161
|
return {
|
|
6162
|
+
Circle: output.Circle != null ? deserializeAws_restJson1Circle(output.Circle, context) : undefined,
|
|
6153
6163
|
Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
|
|
6154
6164
|
};
|
|
6155
6165
|
};
|
package/dist-types/Location.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ import { UpdateRouteCalculatorCommandInput, UpdateRouteCalculatorCommandOutput }
|
|
|
53
53
|
import { UpdateTrackerCommandInput, UpdateTrackerCommandOutput } from "./commands/UpdateTrackerCommand";
|
|
54
54
|
import { LocationClient } from "./LocationClient";
|
|
55
55
|
/**
|
|
56
|
-
* Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing
|
|
56
|
+
* <p>"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"</p>
|
|
57
57
|
*/
|
|
58
58
|
export declare class Location extends LocationClient {
|
|
59
59
|
/**
|
|
@@ -183,6 +183,10 @@ export declare class Location extends LocationClient {
|
|
|
183
183
|
* the routes. This also lets you specify additional route preferences in
|
|
184
184
|
* <code>CarModeOptions</code> if traveling by <code>Car</code>, or
|
|
185
185
|
* <code>TruckModeOptions</code> if traveling by <code>Truck</code>.</p>
|
|
186
|
+
* <note>
|
|
187
|
+
* <p>If you specify <code>walking</code> for the travel mode and your data
|
|
188
|
+
* provider is Esri, the start and destination must be within 40km.</p>
|
|
189
|
+
* </note>
|
|
186
190
|
* </li>
|
|
187
191
|
* </ul>
|
|
188
192
|
*/
|
|
@@ -178,7 +178,7 @@ declare type LocationClientResolvedConfigType = __SmithyResolvedConfiguration<__
|
|
|
178
178
|
export interface LocationClientResolvedConfig extends LocationClientResolvedConfigType {
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
|
-
* Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing
|
|
181
|
+
* <p>"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"</p>
|
|
182
182
|
*/
|
|
183
183
|
export declare class LocationClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LocationClientResolvedConfig> {
|
|
184
184
|
/**
|
|
@@ -35,6 +35,10 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
|
|
|
35
35
|
* the routes. This also lets you specify additional route preferences in
|
|
36
36
|
* <code>CarModeOptions</code> if traveling by <code>Car</code>, or
|
|
37
37
|
* <code>TruckModeOptions</code> if traveling by <code>Truck</code>.</p>
|
|
38
|
+
* <note>
|
|
39
|
+
* <p>If you specify <code>walking</code> for the travel mode and your data
|
|
40
|
+
* provider is Esri, the start and destination must be within 40km.</p>
|
|
41
|
+
* </note>
|
|
38
42
|
* </li>
|
|
39
43
|
* </ul>
|
|
40
44
|
* @example
|
|
@@ -368,8 +368,25 @@ export interface BatchGetDevicePositionResponse {
|
|
|
368
368
|
*/
|
|
369
369
|
DevicePositions: DevicePosition[] | undefined;
|
|
370
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* <p>A circle on the earth, as defined by a center point and a radius.</p>
|
|
373
|
+
*/
|
|
374
|
+
export interface Circle {
|
|
375
|
+
/**
|
|
376
|
+
* <p>A single point geometry, specifying the center of the circle, using <a href="https://gisgeography.com/wgs84-world-geodetic-system/">WGS 84</a>
|
|
377
|
+
* coordinates, in the form <code>[longitude, latitude]</code>.</p>
|
|
378
|
+
*/
|
|
379
|
+
Center: number[] | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* <p>The radius of the circle in meters. Must be greater than zero and no
|
|
382
|
+
* larger than 100,000 (100 kilometers).</p>
|
|
383
|
+
*/
|
|
384
|
+
Radius: number | undefined;
|
|
385
|
+
}
|
|
371
386
|
/**
|
|
372
387
|
* <p>Contains the geofence geometry details.</p>
|
|
388
|
+
* <p>A geofence geometry is made up of either a polygon or a circle. Can be either a
|
|
389
|
+
* polygon or a circle. Including both will return a validation error.</p>
|
|
373
390
|
* <note>
|
|
374
391
|
* <p>Amazon Location doesn't currently support polygons with holes, multipolygons, polygons
|
|
375
392
|
* that are wound clockwise, or that cross the antimeridian. </p>
|
|
@@ -385,8 +402,13 @@ export interface GeofenceGeometry {
|
|
|
385
402
|
* list their vertices in counter-clockwise order around the ring's center, where the left
|
|
386
403
|
* side is the polygon's exterior. Inner rings must list their vertices in clockwise order,
|
|
387
404
|
* where the left side is the polygon's interior.</p>
|
|
405
|
+
* <p>A geofence polygon can consist of between 4 and 1,000 vertices.</p>
|
|
388
406
|
*/
|
|
389
407
|
Polygon?: number[][][];
|
|
408
|
+
/**
|
|
409
|
+
* <p>A circle on the earth, as defined by a center point and a radius.</p>
|
|
410
|
+
*/
|
|
411
|
+
Circle?: Circle;
|
|
390
412
|
}
|
|
391
413
|
/**
|
|
392
414
|
* <p>Contains geofence geometry details. </p>
|
|
@@ -397,9 +419,11 @@ export interface BatchPutGeofenceRequestEntry {
|
|
|
397
419
|
*/
|
|
398
420
|
GeofenceId: string | undefined;
|
|
399
421
|
/**
|
|
400
|
-
* <p>Contains the
|
|
422
|
+
* <p>Contains the details of the position of the geofence. Can be either a
|
|
423
|
+
* polygon or a circle. Including both will return a validation error.</p>
|
|
401
424
|
* <note>
|
|
402
|
-
* <p>Each <a href="https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html">
|
|
425
|
+
* <p>Each <a href="https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html">
|
|
426
|
+
* geofence polygon</a> can have a maximum of 1,000 vertices.</p>
|
|
403
427
|
* </note>
|
|
404
428
|
*/
|
|
405
429
|
Geometry: GeofenceGeometry | undefined;
|
|
@@ -534,6 +558,11 @@ export interface TruckDimensions {
|
|
|
534
558
|
* <p>For example, <code>15.5</code>.</p>
|
|
535
559
|
* </li>
|
|
536
560
|
* </ul>
|
|
561
|
+
* <note>
|
|
562
|
+
* <p>
|
|
563
|
+
* For routes calculated with a HERE resource, this value must be between 0 and 300 meters.
|
|
564
|
+
* </p>
|
|
565
|
+
* </note>
|
|
537
566
|
*/
|
|
538
567
|
Length?: number;
|
|
539
568
|
/**
|
|
@@ -543,6 +572,11 @@ export interface TruckDimensions {
|
|
|
543
572
|
* <p>For example, <code>4.5</code>.</p>
|
|
544
573
|
* </li>
|
|
545
574
|
* </ul>
|
|
575
|
+
* <note>
|
|
576
|
+
* <p>
|
|
577
|
+
* For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
|
|
578
|
+
* </p>
|
|
579
|
+
* </note>
|
|
546
580
|
*/
|
|
547
581
|
Height?: number;
|
|
548
582
|
/**
|
|
@@ -552,6 +586,11 @@ export interface TruckDimensions {
|
|
|
552
586
|
* <p>For example, <code>4.5</code>.</p>
|
|
553
587
|
* </li>
|
|
554
588
|
* </ul>
|
|
589
|
+
* <note>
|
|
590
|
+
* <p>
|
|
591
|
+
* For routes calculated with a HERE resource, this value must be between 0 and 50 meters.
|
|
592
|
+
* </p>
|
|
593
|
+
* </note>
|
|
555
594
|
*/
|
|
556
595
|
Width?: number;
|
|
557
596
|
/**
|
|
@@ -687,7 +726,8 @@ export interface CalculateRouteRequest {
|
|
|
687
726
|
WaypointPositions?: number[][];
|
|
688
727
|
/**
|
|
689
728
|
* <p>Specifies the mode of transport when calculating a route. Used in estimating the speed
|
|
690
|
-
* of travel and road compatibility
|
|
729
|
+
* of travel and road compatibility. You can choose <code>Car</code>, <code>Truck</code>,
|
|
730
|
+
* or <code>Walking</code> as options for the <code>TravelMode</code>.</p>
|
|
691
731
|
* <p>The <code>TravelMode</code> you specify also determines how you specify route
|
|
692
732
|
* preferences: </p>
|
|
693
733
|
* <ul>
|
|
@@ -1414,7 +1454,7 @@ export interface MapConfiguration {
|
|
|
1414
1454
|
* <ul>
|
|
1415
1455
|
* <li>
|
|
1416
1456
|
* <p>
|
|
1417
|
-
* <code>
|
|
1457
|
+
* <code>VectorHereContrast</code> – The HERE Contrast (Berlin) map style is a high contrast
|
|
1418
1458
|
* detailed base map of the world that blends 3D and 2D rendering.</p>
|
|
1419
1459
|
* </li>
|
|
1420
1460
|
* <li>
|
|
@@ -1431,6 +1471,11 @@ export interface MapConfiguration {
|
|
|
1431
1471
|
* within transport and logistics.</p>
|
|
1432
1472
|
* </li>
|
|
1433
1473
|
* </ul>
|
|
1474
|
+
* <note>
|
|
1475
|
+
* <p>The <code>VectorHereContrast</code> style has been renamed from <code>VectorHereBerlin</code>.
|
|
1476
|
+
* <code>VectorHereBerlin</code> has been deprecated, but will continue to work in
|
|
1477
|
+
* applications that use it.</p>
|
|
1478
|
+
* </note>
|
|
1434
1479
|
*/
|
|
1435
1480
|
Style: string | undefined;
|
|
1436
1481
|
}
|
|
@@ -2408,7 +2453,7 @@ export interface GetGeofenceResponse {
|
|
|
2408
2453
|
*/
|
|
2409
2454
|
GeofenceId: string | undefined;
|
|
2410
2455
|
/**
|
|
2411
|
-
* <p>Contains the geofence geometry details describing a polygon.</p>
|
|
2456
|
+
* <p>Contains the geofence geometry details describing a polygon or a circle.</p>
|
|
2412
2457
|
*/
|
|
2413
2458
|
Geometry: GeofenceGeometry | undefined;
|
|
2414
2459
|
/**
|
|
@@ -2544,7 +2589,7 @@ export interface ListGeofenceResponseEntry {
|
|
|
2544
2589
|
*/
|
|
2545
2590
|
GeofenceId: string | undefined;
|
|
2546
2591
|
/**
|
|
2547
|
-
* <p>Contains the geofence geometry details describing a polygon.</p>
|
|
2592
|
+
* <p>Contains the geofence geometry details describing a polygon or a circle.</p>
|
|
2548
2593
|
*/
|
|
2549
2594
|
Geometry: GeofenceGeometry | undefined;
|
|
2550
2595
|
/**
|
|
@@ -2610,9 +2655,11 @@ export interface PutGeofenceRequest {
|
|
|
2610
2655
|
*/
|
|
2611
2656
|
GeofenceId: string | undefined;
|
|
2612
2657
|
/**
|
|
2613
|
-
* <p>Contains the
|
|
2658
|
+
* <p>Contains the details to specify the position of the geofence. Can be either a
|
|
2659
|
+
* polygon or a circle. Including both will return a validation error.</p>
|
|
2614
2660
|
* <note>
|
|
2615
|
-
* <p>Each <a href="https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html">
|
|
2661
|
+
* <p>Each <a href="https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html">
|
|
2662
|
+
* geofence polygon</a> can have a maximum of 1,000 vertices.</p>
|
|
2616
2663
|
* </note>
|
|
2617
2664
|
*/
|
|
2618
2665
|
Geometry: GeofenceGeometry | undefined;
|
|
@@ -2821,7 +2868,7 @@ export interface GetMapGlyphsRequest {
|
|
|
2821
2868
|
* <p>Valid font stacks for <a href="https://docs.aws.amazon.com/location/latest/developerguide/HERE.html">HERE Technologies</a> styles: </p>
|
|
2822
2869
|
* <ul>
|
|
2823
2870
|
* <li>
|
|
2824
|
-
* <p>
|
|
2871
|
+
* <p>VectorHereContrast – <code>Fira
|
|
2825
2872
|
* GO Regular</code> | <code>Fira GO Bold</code>
|
|
2826
2873
|
* </p>
|
|
2827
2874
|
* </li>
|
|
@@ -4134,6 +4181,10 @@ export declare const BatchGetDevicePositionErrorFilterSensitiveLog: (obj: BatchG
|
|
|
4134
4181
|
* @internal
|
|
4135
4182
|
*/
|
|
4136
4183
|
export declare const BatchGetDevicePositionResponseFilterSensitiveLog: (obj: BatchGetDevicePositionResponse) => any;
|
|
4184
|
+
/**
|
|
4185
|
+
* @internal
|
|
4186
|
+
*/
|
|
4187
|
+
export declare const CircleFilterSensitiveLog: (obj: Circle) => any;
|
|
4137
4188
|
/**
|
|
4138
4189
|
* @internal
|
|
4139
4190
|
*/
|
|
@@ -193,9 +193,18 @@ export interface BatchGetDevicePositionResponse {
|
|
|
193
193
|
DevicePositions: DevicePosition[] | undefined;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
export interface Circle {
|
|
197
|
+
|
|
198
|
+
Center: number[] | undefined;
|
|
199
|
+
|
|
200
|
+
Radius: number | undefined;
|
|
201
|
+
}
|
|
202
|
+
|
|
196
203
|
export interface GeofenceGeometry {
|
|
197
204
|
|
|
198
205
|
Polygon?: number[][][];
|
|
206
|
+
|
|
207
|
+
Circle?: Circle;
|
|
199
208
|
}
|
|
200
209
|
|
|
201
210
|
export interface BatchPutGeofenceRequestEntry {
|
|
@@ -1353,6 +1362,8 @@ export declare const BatchGetDevicePositionErrorFilterSensitiveLog: (obj: BatchG
|
|
|
1353
1362
|
|
|
1354
1363
|
export declare const BatchGetDevicePositionResponseFilterSensitiveLog: (obj: BatchGetDevicePositionResponse) => any;
|
|
1355
1364
|
|
|
1365
|
+
export declare const CircleFilterSensitiveLog: (obj: Circle) => any;
|
|
1366
|
+
|
|
1356
1367
|
export declare const GeofenceGeometryFilterSensitiveLog: (obj: GeofenceGeometry) => any;
|
|
1357
1368
|
|
|
1358
1369
|
export declare const BatchPutGeofenceRequestEntryFilterSensitiveLog: (obj: BatchPutGeofenceRequestEntry) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-location",
|
|
3
3
|
"description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.150.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|