@aws/amazon-location-client 1.1.0 → 1.2.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 +5 -5
- package/dist/amazonLocationClient.js +5971 -568
- package/dist/cjs/amazonLocationClient.cjs +12 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ This example uses the Amazon Location Client to make a request that authenticate
|
|
|
31
31
|
|
|
32
32
|
```javascript
|
|
33
33
|
// Create an authentication helper instance using an API key and region
|
|
34
|
-
const authHelper =
|
|
34
|
+
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");
|
|
35
35
|
|
|
36
36
|
const client = new amazonLocationClient.GeoRoutesClient(authHelper.getClientConfig());
|
|
37
37
|
const input = { ... };
|
|
@@ -63,7 +63,7 @@ The standalone Maps SDK commands are grouped into a `maps` namespace. For exampl
|
|
|
63
63
|
|
|
64
64
|
```javascript
|
|
65
65
|
// Create an authentication helper instance using an API key and region
|
|
66
|
-
const authHelper =
|
|
66
|
+
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");
|
|
67
67
|
|
|
68
68
|
const client = new amazonLocationClient.GeoMapsClient(authHelper.getClientConfig());
|
|
69
69
|
const input = { ... };
|
|
@@ -77,7 +77,7 @@ The standalone Places SDK commands are grouped into a `places` namespace. For ex
|
|
|
77
77
|
|
|
78
78
|
```javascript
|
|
79
79
|
// Create an authentication helper instance using an API key and region
|
|
80
|
-
const authHelper =
|
|
80
|
+
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");
|
|
81
81
|
|
|
82
82
|
const client = new amazonLocationClient.GeoPlacesClient(authHelper.getClientConfig());
|
|
83
83
|
const input = { ... };
|
|
@@ -91,7 +91,7 @@ The standalone Routes SDK commands are grouped into a `routes` namespace. For ex
|
|
|
91
91
|
|
|
92
92
|
```javascript
|
|
93
93
|
// Create an authentication helper instance using an API key and region
|
|
94
|
-
const authHelper =
|
|
94
|
+
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");
|
|
95
95
|
|
|
96
96
|
const client = new amazonLocationClient.GeoRoutesClient(authHelper.getClientConfig());
|
|
97
97
|
const input = { ... };
|
|
@@ -105,7 +105,7 @@ The Location SDK commands are under the top-level namespace. For example:
|
|
|
105
105
|
|
|
106
106
|
```javascript
|
|
107
107
|
// Create an authentication helper instance using an API key and region
|
|
108
|
-
const authHelper =
|
|
108
|
+
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");
|
|
109
109
|
|
|
110
110
|
const client = new amazonLocationClient.LocationClient(authHelper.getClientConfig());
|
|
111
111
|
const input = { ... };
|