Class: AWS.Location
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Location
- Identifier:
- location
- API Version:
- 2020-11-19
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"
Sending a Request Using Location
var location = new AWS.Location();
location.associateTrackerConsumer(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Location object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var location = new AWS.Location({apiVersion: '2020-11-19'});
You can also set the API version globally in AWS.config.apiVersions using
the location service identifier:
AWS.config.apiVersions = {
location: '2020-11-19',
// other service API versions
};
var location = new AWS.Location();
Constructor Summary collapse
-
new AWS.Location(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
associateTrackerConsumer(params = {}, callback) ⇒ AWS.Request
Creates an association between a geofence collection and a tracker resource.
-
batchDeleteDevicePositionHistory(params = {}, callback) ⇒ AWS.Request
Deletes the position history of one or more devices from a tracker resource.
.
-
batchDeleteGeofence(params = {}, callback) ⇒ AWS.Request
Deletes a batch of geofences from a geofence collection.
Note: This operation deletes the resource permanently.- batchEvaluateGeofences(params = {}, callback) ⇒ AWS.Request
Evaluates device positions against the geofence geometries from a given geofence collection.
This operation always returns an empty response because geofences are asynchronously evaluated.
- batchGetDevicePosition(params = {}, callback) ⇒ AWS.Request
Lists the latest device positions for requested devices.
.
- batchPutGeofence(params = {}, callback) ⇒ AWS.Request
A batch request for storing geofence geometries into a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.
.
- batchUpdateDevicePosition(params = {}, callback) ⇒ AWS.Request
Uploads position update data for one or more devices to a tracker resource (up to 10 devices per batch).
- calculateRoute(params = {}, callback) ⇒ AWS.Request
Calculates a route given the following required parameters:
DeparturePositionandDestinationPosition.- calculateRouteMatrix(params = {}, callback) ⇒ AWS.Request
Calculates a route matrix given the following required parameters:
DeparturePositionsandDestinationPositions.- createGeofenceCollection(params = {}, callback) ⇒ AWS.Request
Creates a geofence collection, which manages and stores geofences.
.
- createKey(params = {}, callback) ⇒ AWS.Request
Creates an API key resource in your Amazon Web Services account, which lets you grant actions for Amazon Location resources to the API key bearer.
Note: For more information, see Using API keys.- createMap(params = {}, callback) ⇒ AWS.Request
Creates a map resource in your Amazon Web Services account, which provides map tiles of different styles sourced from global location data providers.
Note: If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider.- createPlaceIndex(params = {}, callback) ⇒ AWS.Request
Creates a place index resource in your Amazon Web Services account.
- createRouteCalculator(params = {}, callback) ⇒ AWS.Request
Creates a route calculator resource in your Amazon Web Services account.
You can send requests to a route calculator resource to estimate travel time, distance, and get directions.
- createTracker(params = {}, callback) ⇒ AWS.Request
Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices.
.
- deleteGeofenceCollection(params = {}, callback) ⇒ AWS.Request
Deletes a geofence collection from your Amazon Web Services account.
Note: This operation deletes the resource permanently.- deleteKey(params = {}, callback) ⇒ AWS.Request
Deletes the specified API key.
- deleteMap(params = {}, callback) ⇒ AWS.Request
Deletes a map resource from your Amazon Web Services account.
Note: This operation deletes the resource permanently.- deletePlaceIndex(params = {}, callback) ⇒ AWS.Request
Deletes a place index resource from your Amazon Web Services account.
Note: This operation deletes the resource permanently.- deleteRouteCalculator(params = {}, callback) ⇒ AWS.Request
Deletes a route calculator resource from your Amazon Web Services account.
Note: This operation deletes the resource permanently.- deleteTracker(params = {}, callback) ⇒ AWS.Request
Deletes a tracker resource from your Amazon Web Services account.
Note: This operation deletes the resource permanently.- describeGeofenceCollection(params = {}, callback) ⇒ AWS.Request
Retrieves the geofence collection details.
.
- describeKey(params = {}, callback) ⇒ AWS.Request
Retrieves the API key resource details.
.
- describeMap(params = {}, callback) ⇒ AWS.Request
Retrieves the map resource details.
.
- describePlaceIndex(params = {}, callback) ⇒ AWS.Request
Retrieves the place index resource details.
.
- describeRouteCalculator(params = {}, callback) ⇒ AWS.Request
Retrieves the route calculator resource details.
.
- describeTracker(params = {}, callback) ⇒ AWS.Request
Retrieves the tracker resource details.
.
- disassociateTrackerConsumer(params = {}, callback) ⇒ AWS.Request
Removes the association between a tracker resource and a geofence collection.
Note: Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.- forecastGeofenceEvents(params = {}, callback) ⇒ AWS.Request
Evaluates device positions against geofence geometries from a given geofence collection.
- getDevicePosition(params = {}, callback) ⇒ AWS.Request
Retrieves a device's most recent position according to its sample time.
Note: Device positions are deleted after 30 days.- getDevicePositionHistory(params = {}, callback) ⇒ AWS.Request
Retrieves the device position history from a tracker resource within a specified range of time.
Note: Device positions are deleted after 30 days.- getGeofence(params = {}, callback) ⇒ AWS.Request
Retrieves the geofence details from a geofence collection.
Note: The returned geometry will always match the geometry format used when the geofence was created.- getMapGlyphs(params = {}, callback) ⇒ AWS.Request
Retrieves glyphs used to display labels on a map.
.
- getMapSprites(params = {}, callback) ⇒ AWS.Request
Retrieves the sprite sheet corresponding to a map resource.
- getMapStyleDescriptor(params = {}, callback) ⇒ AWS.Request
Retrieves the map style descriptor from a map resource.
- getMapTile(params = {}, callback) ⇒ AWS.Request
Retrieves a vector data tile from the map resource.
- getPlace(params = {}, callback) ⇒ AWS.Request
Finds a place by its unique ID.
- listDevicePositions(params = {}, callback) ⇒ AWS.Request
A batch request to retrieve all device positions.
.
- listGeofenceCollections(params = {}, callback) ⇒ AWS.Request
Lists geofence collections in your Amazon Web Services account.
.
- listGeofences(params = {}, callback) ⇒ AWS.Request
Lists geofences stored in a given geofence collection.
.
- listKeys(params = {}, callback) ⇒ AWS.Request
Lists API key resources in your Amazon Web Services account.
.
- listMaps(params = {}, callback) ⇒ AWS.Request
Lists map resources in your Amazon Web Services account.
.
- listPlaceIndexes(params = {}, callback) ⇒ AWS.Request
Lists place index resources in your Amazon Web Services account.
.
- listRouteCalculators(params = {}, callback) ⇒ AWS.Request
Lists route calculator resources in your Amazon Web Services account.
.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of tags that are applied to the specified Amazon Location resource.
.
- listTrackerConsumers(params = {}, callback) ⇒ AWS.Request
Lists geofence collections currently associated to the given tracker resource.
.
- listTrackers(params = {}, callback) ⇒ AWS.Request
Lists tracker resources in your Amazon Web Services account.
.
- putGeofence(params = {}, callback) ⇒ AWS.Request
Stores a geofence geometry in a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.
- searchPlaceIndexForPosition(params = {}, callback) ⇒ AWS.Request
Reverse geocodes a given coordinate and returns a legible address.
- searchPlaceIndexForSuggestions(params = {}, callback) ⇒ AWS.Request
Generates suggestions for addresses and points of interest based on partial or misspelled free-form text.
- searchPlaceIndexForText(params = {}, callback) ⇒ AWS.Request
Geocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest.
- tagResource(params = {}, callback) ⇒ AWS.Request
Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.
Tags can help you organize and categorize your resources.
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from the specified Amazon Location resource.
.
- updateGeofenceCollection(params = {}, callback) ⇒ AWS.Request
Updates the specified properties of a given geofence collection.
.
- updateKey(params = {}, callback) ⇒ AWS.Request
Updates the specified properties of a given API key resource.
.
- updateMap(params = {}, callback) ⇒ AWS.Request
Updates the specified properties of a given map resource.
.
- updatePlaceIndex(params = {}, callback) ⇒ AWS.Request
Updates the specified properties of a given place index resource.
.
- updateRouteCalculator(params = {}, callback) ⇒ AWS.Request
Updates the specified properties for a given route calculator resource.
.
- updateTracker(params = {}, callback) ⇒ AWS.Request
Updates the specified properties of a given tracker resource.
.
- verifyDevicePosition(params = {}, callback) ⇒ AWS.Request
Verifies the integrity of the device's position by determining if it was reported behind a proxy, and by comparing it to an inferred position estimated based on the device's state.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Location(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
associateTrackerConsumer(params = {}, callback) ⇒ AWS.Request
Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection.
You can associate up to five geofence collections to each tracker resource.
Note: Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account. - batchEvaluateGeofences(params = {}, callback) ⇒ AWS.Request