Class: Aws::LocationService::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LocationService::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-locationservice/client.rb
Overview
An API client for LocationService. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::LocationService::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_tracker_consumer(params = {}) ⇒ Struct
Creates an association between a geofence collection and a tracker resource.
-
#batch_delete_device_position_history(params = {}) ⇒ Types::BatchDeleteDevicePositionHistoryResponse
Deletes the position history of one or more devices from a tracker resource.
-
#batch_delete_geofence(params = {}) ⇒ Types::BatchDeleteGeofenceResponse
Deletes a batch of geofences from a geofence collection.
-
#batch_evaluate_geofences(params = {}) ⇒ Types::BatchEvaluateGeofencesResponse
Evaluates device positions against the geofence geometries from a given geofence collection.
-
#batch_get_device_position(params = {}) ⇒ Types::BatchGetDevicePositionResponse
Lists the latest device positions for requested devices.
-
#batch_put_geofence(params = {}) ⇒ Types::BatchPutGeofenceResponse
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.
-
#batch_update_device_position(params = {}) ⇒ Types::BatchUpdateDevicePositionResponse
Uploads position update data for one or more devices to a tracker resource (up to 10 devices per batch).
-
#calculate_route(params = {}) ⇒ Types::CalculateRouteResponse
This operation is no longer current and may be deprecated in the future.
-
#calculate_route_matrix(params = {}) ⇒ Types::CalculateRouteMatrixResponse
This operation is no longer current and may be deprecated in the future.
-
#cancel_job(params = {}) ⇒ Types::CancelJobResponse
‘CancelJob` cancels a job that is currently running or pending.
-
#create_geofence_collection(params = {}) ⇒ Types::CreateGeofenceCollectionResponse
Creates a geofence collection, which manages and stores geofences.
-
#create_key(params = {}) ⇒ Types::CreateKeyResponse
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.
-
#create_map(params = {}) ⇒ Types::CreateMapResponse
This operation is no longer current and may be deprecated in the future.
-
#create_place_index(params = {}) ⇒ Types::CreatePlaceIndexResponse
This operation is no longer current and may be deprecated in the future.
-
#create_route_calculator(params = {}) ⇒ Types::CreateRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future.
-
#create_tracker(params = {}) ⇒ Types::CreateTrackerResponse
Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices.
-
#delete_geofence_collection(params = {}) ⇒ Struct
Deletes a geofence collection from your Amazon Web Services account.
-
#delete_key(params = {}) ⇒ Struct
Deletes the specified API key.
-
#delete_map(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future.
-
#delete_place_index(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future.
-
#delete_route_calculator(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future.
-
#delete_tracker(params = {}) ⇒ Struct
Deletes a tracker resource from your Amazon Web Services account.
-
#describe_geofence_collection(params = {}) ⇒ Types::DescribeGeofenceCollectionResponse
Retrieves the geofence collection details.
-
#describe_key(params = {}) ⇒ Types::DescribeKeyResponse
Retrieves the API key resource details.
-
#describe_map(params = {}) ⇒ Types::DescribeMapResponse
This operation is no longer current and may be deprecated in the future.
-
#describe_place_index(params = {}) ⇒ Types::DescribePlaceIndexResponse
This operation is no longer current and may be deprecated in the future.
-
#describe_route_calculator(params = {}) ⇒ Types::DescribeRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future.
-
#describe_tracker(params = {}) ⇒ Types::DescribeTrackerResponse
Retrieves the tracker resource details.
-
#disassociate_tracker_consumer(params = {}) ⇒ Struct
Removes the association between a tracker resource and a geofence collection.
-
#forecast_geofence_events(params = {}) ⇒ Types::ForecastGeofenceEventsResponse
This action forecasts future geofence events that are likely to occur within a specified time horizon if a device continues moving at its current speed.
-
#get_device_position(params = {}) ⇒ Types::GetDevicePositionResponse
Retrieves a device’s most recent position according to its sample time.
-
#get_device_position_history(params = {}) ⇒ Types::GetDevicePositionHistoryResponse
Retrieves the device position history from a tracker resource within a specified range of time.
-
#get_geofence(params = {}) ⇒ Types::GetGeofenceResponse
Retrieves the geofence details from a geofence collection.
-
#get_job(params = {}) ⇒ Types::GetJobResponse
‘GetJob` retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed.
-
#get_map_glyphs(params = {}) ⇒ Types::GetMapGlyphsResponse
This operation is no longer current and may be deprecated in the future.
-
#get_map_sprites(params = {}) ⇒ Types::GetMapSpritesResponse
This operation is no longer current and may be deprecated in the future.
-
#get_map_style_descriptor(params = {}) ⇒ Types::GetMapStyleDescriptorResponse
This operation is no longer current and may be deprecated in the future.
-
#get_map_tile(params = {}) ⇒ Types::GetMapTileResponse
This operation is no longer current and may be deprecated in the future.
-
#get_place(params = {}) ⇒ Types::GetPlaceResponse
This operation is no longer current and may be deprecated in the future.
-
#list_device_positions(params = {}) ⇒ Types::ListDevicePositionsResponse
A batch request to retrieve all device positions.
-
#list_geofence_collections(params = {}) ⇒ Types::ListGeofenceCollectionsResponse
Lists geofence collections in your Amazon Web Services account.
-
#list_geofences(params = {}) ⇒ Types::ListGeofencesResponse
Lists geofences stored in a given geofence collection.
-
#list_jobs(params = {}) ⇒ Types::ListJobsResponse
‘ListJobs` retrieves a list of jobs with optional filtering and pagination support.
-
#list_keys(params = {}) ⇒ Types::ListKeysResponse
Lists API key resources in your Amazon Web Services account.
-
#list_maps(params = {}) ⇒ Types::ListMapsResponse
This operation is no longer current and may be deprecated in the future.
-
#list_place_indexes(params = {}) ⇒ Types::ListPlaceIndexesResponse
This operation is no longer current and may be deprecated in the future.
-
#list_route_calculators(params = {}) ⇒ Types::ListRouteCalculatorsResponse
This operation is no longer current and may be deprecated in the future.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags that are applied to the specified Amazon Location resource.
-
#list_tracker_consumers(params = {}) ⇒ Types::ListTrackerConsumersResponse
Lists geofence collections currently associated to the given tracker resource.
-
#list_trackers(params = {}) ⇒ Types::ListTrackersResponse
Lists tracker resources in your Amazon Web Services account.
-
#put_geofence(params = {}) ⇒ Types::PutGeofenceResponse
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.
-
#search_place_index_for_position(params = {}) ⇒ Types::SearchPlaceIndexForPositionResponse
This operation is no longer current and may be deprecated in the future.
-
#search_place_index_for_suggestions(params = {}) ⇒ Types::SearchPlaceIndexForSuggestionsResponse
This operation is no longer current and may be deprecated in the future.
-
#search_place_index_for_text(params = {}) ⇒ Types::SearchPlaceIndexForTextResponse
This operation is no longer current and may be deprecated in the future.
-
#start_job(params = {}) ⇒ Types::StartJobResponse
‘StartJob` starts a new asynchronous bulk processing job.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified Amazon Location resource.
-
#update_geofence_collection(params = {}) ⇒ Types::UpdateGeofenceCollectionResponse
Updates the specified properties of a given geofence collection.
-
#update_key(params = {}) ⇒ Types::UpdateKeyResponse
Updates the specified properties of a given API key resource.
-
#update_map(params = {}) ⇒ Types::UpdateMapResponse
This operation is no longer current and may be deprecated in the future.
-
#update_place_index(params = {}) ⇒ Types::UpdatePlaceIndexResponse
This operation is no longer current and may be deprecated in the future.
-
#update_route_calculator(params = {}) ⇒ Types::UpdateRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future.
-
#update_tracker(params = {}) ⇒ Types::UpdateTrackerResponse
Updates the specified properties of a given tracker resource.
-
#verify_device_position(params = {}) ⇒ Types::VerifyDevicePositionResponse
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'lib/aws-sdk-locationservice/client.rb', line 473 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6090 6091 6092 |
# File 'lib/aws-sdk-locationservice/client.rb', line 6090 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6093 6094 6095 |
# File 'lib/aws-sdk-locationservice/client.rb', line 6093 def errors_module Errors end |
Instance Method Details
#associate_tracker_consumer(params = {}) ⇒ Struct
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 markdown=“1”> Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.
</note>
519 520 521 522 |
# File 'lib/aws-sdk-locationservice/client.rb', line 519 def associate_tracker_consumer(params = {}, = {}) req = build_request(:associate_tracker_consumer, params) req.send_request() end |
#batch_delete_device_position_history(params = {}) ⇒ Types::BatchDeleteDevicePositionHistoryResponse
Deletes the position history of one or more devices from a tracker resource.
560 561 562 563 |
# File 'lib/aws-sdk-locationservice/client.rb', line 560 def batch_delete_device_position_history(params = {}, = {}) req = build_request(:batch_delete_device_position_history, params) req.send_request() end |
#batch_delete_geofence(params = {}) ⇒ Types::BatchDeleteGeofenceResponse
Deletes a batch of geofences from a geofence collection.
<note markdown=“1”> This operation deletes the resource permanently.
</note>
599 600 601 602 |
# File 'lib/aws-sdk-locationservice/client.rb', line 599 def batch_delete_geofence(params = {}, = {}) req = build_request(:batch_delete_geofence, params) req.send_request() end |
#batch_evaluate_geofences(params = {}) ⇒ Types::BatchEvaluateGeofencesResponse
Evaluates device positions against the geofence geometries from a given geofence collection.
This operation always returns an empty response because geofences are asynchronously evaluated. The evaluation determines if the device has entered or exited a geofenced area, and then publishes one of the following events to Amazon EventBridge:
-
‘ENTER` if Amazon Location determines that the tracked device has entered a geofenced area.
-
‘EXIT` if Amazon Location determines that the tracked device has exited a geofenced area.
<note markdown=“1”> The last geofence that a device was observed within is tracked for 30 days after the most recent device position update.
</note>
<note markdown=“1”> Geofence evaluation uses the given device position. It does not account for the optional ‘Accuracy` of a `DevicePositionUpdate`.
</note>
<note markdown=“1”> The ‘DeviceID` is used as a string to represent the device. You do not need to have a `Tracker` associated with the `DeviceID`.
</note>
676 677 678 679 |
# File 'lib/aws-sdk-locationservice/client.rb', line 676 def batch_evaluate_geofences(params = {}, = {}) req = build_request(:batch_evaluate_geofences, params) req.send_request() end |
#batch_get_device_position(params = {}) ⇒ Types::BatchGetDevicePositionResponse
Lists the latest device positions for requested devices.
726 727 728 729 |
# File 'lib/aws-sdk-locationservice/client.rb', line 726 def batch_get_device_position(params = {}, = {}) req = build_request(:batch_get_device_position, params) req.send_request() end |
#batch_put_geofence(params = {}) ⇒ Types::BatchPutGeofenceResponse
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.
794 795 796 797 |
# File 'lib/aws-sdk-locationservice/client.rb', line 794 def batch_put_geofence(params = {}, = {}) req = build_request(:batch_put_geofence, params) req.send_request() end |
#batch_update_device_position(params = {}) ⇒ Types::BatchUpdateDevicePositionResponse
Uploads position update data for one or more devices to a tracker resource (up to 10 devices per batch). Amazon Location uses the data when it reports the last known device position and position history. Amazon Location retains location data for 30 days.
<note markdown=“1”> Position updates are handled based on the ‘PositionFiltering` property of the tracker. When `PositionFiltering` is set to `TimeBased`, updates are evaluated against linked geofence collections, and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than every 30 seconds, only one update per 30 seconds is stored for each unique device ID.
When `PositionFiltering` is set to `DistanceBased` filtering, location
data is stored and evaluated against linked geofence collections only if the device has moved more than 30 m (98.4 ft).
When `PositionFiltering` is set to `AccuracyBased` filtering, location
data is stored and evaluated against linked geofence collections only if the device has moved more than the measured accuracy. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is neither stored or evaluated if the device has moved less than 15 m. If ‘PositionFiltering` is set to `AccuracyBased` filtering, Amazon Location uses the default value `{ “Horizontal”: 0}` when accuracy is not provided on a `DevicePositionUpdate`.
</note>
870 871 872 873 |
# File 'lib/aws-sdk-locationservice/client.rb', line 870 def batch_update_device_position(params = {}, = {}) req = build_request(:batch_update_device_position, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5950 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::LocationService') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-locationservice' context[:gem_version] = '1.85.0' Seahorse::Client::Request.new(handlers, context) end |
#calculate_route(params = {}) ⇒ Types::CalculateRouteResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to [ ‘CalculateRoutes` ](/location/latest/APIReference/API_CalculateRoutes.html) or [ `CalculateIsolines` ](/location/latest/APIReference/API_CalculateIsolines.html) unless you require Grab data.
* `CalculateRoute` is part of a previous Amazon Location Service
Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The version 2 ‘CalculateRoutes` operation gives better results for point-to-point routing, while the version 2 `CalculateIsolines` operation adds support for calculating service areas and travel time envelopes.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
[Calculates a route][1] given the following required parameters:
‘DeparturePosition` and `DestinationPosition`. Requires that you first [create a route calculator resource].
By default, a request that doesn't specify a departure time uses the
best time of day to travel with the best traffic conditions when calculating the route.
Additional options include:
* [Specifying a departure time][3] using either `DepartureTime` or
`DepartNow`. This calculates a route based on predictive traffic
data at the given time.
<note markdown="1"> You can't specify both `DepartureTime` and
‘DepartNow` in a single
request. Specifying both parameters returns a validation error.
</note>
- Specifying a travel mode][4
-
using TravelMode sets the
transportation mode used to calculate the routes. This also lets you specify additional route preferences in ‘CarModeOptions` if traveling by `Car`, or `TruckModeOptions` if traveling by `Truck`.
<note markdown=“1”> If you specify ‘walking` for the travel mode and
your data provider
is Esri, the start and destination must be within 40km.
</note>
[1]: docs.aws.amazon.com/location/previous/developerguide/calculate-route.html [2]: docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html [3]: docs.aws.amazon.com/location/previous/developerguide/departure-time.html [4]: docs.aws.amazon.com/location/previous/developerguide/travel-mode.html
1182 1183 1184 1185 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1182 def calculate_route(params = {}, = {}) req = build_request(:calculate_route, params) req.send_request() end |
#calculate_route_matrix(params = {}) ⇒ Types::CalculateRouteMatrixResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the [V2 ‘CalculateRouteMatrix` ](/location/latest/APIReference/API_CalculateRouteMatrix.html) unless you require Grab data.
* This version of `CalculateRouteMatrix` is part of a previous Amazon
Location Service Routes API (version 1) which has been superseded by
a more intuitive, powerful, and complete API (version 2).
-
The version 2 ‘CalculateRouteMatrix` operation gives better results for matrix routing calculations.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
[ Calculates a route matrix][1] given the following required
parameters: ‘DeparturePositions` and `DestinationPositions`. `CalculateRouteMatrix` calculates routes and returns the travel time and travel distance from each departure position to each destination position in the request. For example, given departure positions A and B, and destination positions X and Y, `CalculateRouteMatrix` will return time and distance for routes from A to X, A to Y, B to X, and B to Y (in that order). The number of results returned (and routes calculated) will be the number of `DeparturePositions` times the number of `DestinationPositions`.
<note markdown="1"> Your account is charged for each route
calculated, not the number of requests.
</note>
Requires that you first [create a route calculator resource][2].
By default, a request that doesn't specify a departure time uses the
best time of day to travel with the best traffic conditions when calculating routes.
Additional options include:
* [ Specifying a departure time][3] using either `DepartureTime` or
`DepartNow`. This calculates routes based on predictive traffic data
at the given time.
<note markdown="1"> You can't specify both `DepartureTime` and
‘DepartNow` in a single
request. Specifying both parameters returns a validation error.
</note>
- Specifying a travel mode][4
-
using TravelMode sets the
transportation mode used to calculate the routes. This also lets you specify additional route preferences in ‘CarModeOptions` if traveling by `Car`, or `TruckModeOptions` if traveling by `Truck`.
[1]: docs.aws.amazon.com/location/previous/developerguide/calculate-route-matrix.html [2]: docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html [3]: docs.aws.amazon.com/location/previous/developerguide/departure-time.html [4]: docs.aws.amazon.com/location/previous/developerguide/travel-mode.html
1461 1462 1463 1464 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1461 def calculate_route_matrix(params = {}, = {}) req = build_request(:calculate_route_matrix, params) req.send_request() end |
#cancel_job(params = {}) ⇒ Types::CancelJobResponse
‘CancelJob` cancels a job that is currently running or pending. If the job is already in a terminal state (`Completed`, `Failed`, or `Cancelled`), the operation returns successfully with the current status.
For more information, see [Job concepts] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/jobs-concepts.html
1503 1504 1505 1506 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1503 def cancel_job(params = {}, = {}) req = build_request(:cancel_job, params) req.send_request() end |
#create_geofence_collection(params = {}) ⇒ Types::CreateGeofenceCollectionResponse
Creates a geofence collection, which manages and stores geofences.
1591 1592 1593 1594 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1591 def create_geofence_collection(params = {}, = {}) req = build_request(:create_geofence_collection, params) req.send_request() end |
#create_key(params = {}) ⇒ Types::CreateKeyResponse
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.
For more information, see [Use API keys to authenticate] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
1706 1707 1708 1709 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1706 def create_key(params = {}, = {}) req = build_request(:create_key, params) req.send_request() end |
#create_map(params = {}) ⇒ Types::CreateMapResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to the Maps API V2 unless you require ‘Grab` data.
* `CreateMap` is part of a previous Amazon Location Service Maps API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The Maps API version 2 has a simplified interface that can be used without creating or managing map resources.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Creates a map resource in your Amazon Web Services account, which
provides map tiles of different styles sourced from global location data providers.
<note markdown="1"> 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. See section 82 of the [Amazon Web Services service terms] for more details.
</note>
[1]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [2]: docs.aws.amazon.com/location/latest/developerguide/maps.html [3]: aws.amazon.com/service-terms
1828 1829 1830 1831 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1828 def create_map(params = {}, = {}) req = build_request(:create_map, params) req.send_request() end |
#create_place_index(params = {}) ⇒ Types::CreatePlaceIndexResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Places API V2 unless you require Grab data.
* `CreatePlaceIndex` is part of a previous Amazon Location Service
Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Places API version 2 has a simplified interface that can be used without creating or managing place index resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Creates a place index resource in your Amazon Web Services account.
Use a place index resource to geocode addresses and other text queries by using the ‘SearchPlaceIndexForText` operation, and reverse geocode coordinates by using the `SearchPlaceIndexForPosition` operation, and enable autosuggestions by using the `SearchPlaceIndexForSuggestions` operation.
<note markdown="1"> 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. See section 82 of the [Amazon Web Services service terms] for more details.
</note>
1994 1995 1996 1997 |
# File 'lib/aws-sdk-locationservice/client.rb', line 1994 def create_place_index(params = {}, = {}) req = build_request(:create_place_index, params) req.send_request() end |
#create_route_calculator(params = {}) ⇒ Types::CreateRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Routes API V2 unless you require Grab data.
* `CreateRouteCalculator` is part of a previous Amazon Location
Service Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Routes API version 2 has a simplified interface that can be used without creating or managing route calculator resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
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. A route calculator sources traffic and road network data from your chosen data provider.
<note markdown="1"> 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. See section 82 of the [Amazon Web Services service terms] for more details.
</note>
2154 2155 2156 2157 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2154 def create_route_calculator(params = {}, = {}) req = build_request(:create_route_calculator, params) req.send_request() end |
#create_tracker(params = {}) ⇒ Types::CreateTrackerResponse
Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices.
2311 2312 2313 2314 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2311 def create_tracker(params = {}, = {}) req = build_request(:create_tracker, params) req.send_request() end |
#delete_geofence_collection(params = {}) ⇒ Struct
Deletes a geofence collection from your Amazon Web Services account.
<note markdown=“1”> This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.
</note>
2339 2340 2341 2342 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2339 def delete_geofence_collection(params = {}, = {}) req = build_request(:delete_geofence_collection, params) req.send_request() end |
#delete_key(params = {}) ⇒ Struct
Deletes the specified API key. The API key must have been deactivated more than 90 days previously.
For more information, see [Use API keys to authenticate] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
2384 2385 2386 2387 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2384 def delete_key(params = {}, = {}) req = build_request(:delete_key, params) req.send_request() end |
#delete_map(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future. We recommend upgrading to the Maps API V2 unless you require ‘Grab` data.
* `DeleteMap` is part of a previous Amazon Location Service Maps API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The Maps API version 2 has a simplified interface that can be used without creating or managing map resources.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Deletes a map resource from your Amazon Web Services account.
<note markdown="1"> This operation deletes the resource permanently.
If the map is being used in an application, the map may not render.
</note>
[1]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [2]: docs.aws.amazon.com/location/latest/developerguide/maps.html
2438 2439 2440 2441 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2438 def delete_map(params = {}, = {}) req = build_request(:delete_map, params) req.send_request() end |
#delete_place_index(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Places API V2 unless you require Grab data.
* `DeletePlaceIndex` is part of a previous Amazon Location Service
Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Places API version 2 has a simplified interface that can be used without creating or managing place index resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Deletes a place index resource from your Amazon Web Services account.
<note markdown="1"> This operation deletes the resource permanently.
</note>
2488 2489 2490 2491 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2488 def delete_place_index(params = {}, = {}) req = build_request(:delete_place_index, params) req.send_request() end |
#delete_route_calculator(params = {}) ⇒ Struct
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Routes API V2 unless you require Grab data.
* `DeleteRouteCalculator` is part of a previous Amazon Location
Service Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Routes API version 2 has a simplified interface that can be used without creating or managing route calculator resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
Deletes a route calculator resource from your Amazon Web Services
account.
<note markdown="1"> This operation deletes the resource permanently.
</note>
2539 2540 2541 2542 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2539 def delete_route_calculator(params = {}, = {}) req = build_request(:delete_route_calculator, params) req.send_request() end |
#delete_tracker(params = {}) ⇒ Struct
Deletes a tracker resource from your Amazon Web Services account.
<note markdown=“1”> This operation deletes the resource permanently. If the tracker resource is in use, you may encounter an error. Make sure that the target resource isn’t a dependency for your applications.
</note>
2567 2568 2569 2570 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2567 def delete_tracker(params = {}, = {}) req = build_request(:delete_tracker, params) req.send_request() end |
#describe_geofence_collection(params = {}) ⇒ Types::DescribeGeofenceCollectionResponse
Retrieves the geofence collection details.
2614 2615 2616 2617 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2614 def describe_geofence_collection(params = {}, = {}) req = build_request(:describe_geofence_collection, params) req.send_request() end |
#describe_key(params = {}) ⇒ Types::DescribeKeyResponse
Retrieves the API key resource details.
For more information, see [Use API keys to authenticate] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
2676 2677 2678 2679 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2676 def describe_key(params = {}, = {}) req = build_request(:describe_key, params) req.send_request() end |
#describe_map(params = {}) ⇒ Types::DescribeMapResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to the Maps API V2 unless you require ‘Grab` data.
* `DescribeMap` is part of a previous Amazon Location Service Maps
API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The Maps API version 2 has a simplified interface that can be used without creating or managing map resources.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Retrieves the map resource details.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [2]: docs.aws.amazon.com/location/latest/developerguide/maps.html
2751 2752 2753 2754 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2751 def describe_map(params = {}, = {}) req = build_request(:describe_map, params) req.send_request() end |
#describe_place_index(params = {}) ⇒ Types::DescribePlaceIndexResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Places API V2 unless you require Grab data.
* `DescribePlaceIndex` is part of a previous Amazon Location Service
Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Places API version 2 has a simplified interface that can be used without creating or managing place index resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Retrieves the place index resource details.
2820 2821 2822 2823 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2820 def describe_place_index(params = {}, = {}) req = build_request(:describe_place_index, params) req.send_request() end |
#describe_route_calculator(params = {}) ⇒ Types::DescribeRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Routes API V2 unless you require Grab data.
* `DescribeRouteCalculator` is part of a previous Amazon Location
Service Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Routes API version 2 has a simplified interface that can be used without creating or managing route calculator resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
Retrieves the route calculator resource details.
2887 2888 2889 2890 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2887 def describe_route_calculator(params = {}, = {}) req = build_request(:describe_route_calculator, params) req.send_request() end |
#describe_tracker(params = {}) ⇒ Types::DescribeTrackerResponse
Retrieves the tracker resource details.
2938 2939 2940 2941 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2938 def describe_tracker(params = {}, = {}) req = build_request(:describe_tracker, params) req.send_request() end |
#disassociate_tracker_consumer(params = {}) ⇒ Struct
Removes the association between a tracker resource and a geofence collection.
<note markdown=“1”> Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.
</note>
2978 2979 2980 2981 |
# File 'lib/aws-sdk-locationservice/client.rb', line 2978 def disassociate_tracker_consumer(params = {}, = {}) req = build_request(:disassociate_tracker_consumer, params) req.send_request() end |
#forecast_geofence_events(params = {}) ⇒ Types::ForecastGeofenceEventsResponse
This action forecasts future geofence events that are likely to occur within a specified time horizon if a device continues moving at its current speed. Each forecasted event is associated with a geofence from a provided geofence collection. A forecast event can have one of the following states:
‘ENTER`: The device position is outside the referenced geofence, but the device may cross into the geofence during the forecasting time horizon if it maintains its current speed.
‘EXIT`: The device position is inside the referenced geofence, but the device may leave the geofence during the forecasted time horizon if the device maintains it’s current speed.
‘IDLE`:The device is inside the geofence, and it will remain inside the geofence through the end of the time horizon if the device maintains it’s current speed.
<note markdown=“1”> Heading direction is not considered in the current version. The API takes a conservative approach and includes events that can occur for any heading.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3095 3096 3097 3098 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3095 def forecast_geofence_events(params = {}, = {}) req = build_request(:forecast_geofence_events, params) req.send_request() end |
#get_device_position(params = {}) ⇒ Types::GetDevicePositionResponse
Retrieves a device’s most recent position according to its sample time.
<note markdown=“1”> Device positions are deleted after 30 days.
</note>
3144 3145 3146 3147 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3144 def get_device_position(params = {}, = {}) req = build_request(:get_device_position, params) req.send_request() end |
#get_device_position_history(params = {}) ⇒ Types::GetDevicePositionHistoryResponse
Retrieves the device position history from a tracker resource within a specified range of time.
<note markdown=“1”> Device positions are deleted after 30 days.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3242 3243 3244 3245 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3242 def get_device_position_history(params = {}, = {}) req = build_request(:get_device_position_history, params) req.send_request() end |
#get_geofence(params = {}) ⇒ Types::GetGeofenceResponse
Retrieves the geofence details from a geofence collection.
<note markdown=“1”> The returned geometry will always match the geometry format used when the geofence was created.
</note>
3302 3303 3304 3305 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3302 def get_geofence(params = {}, = {}) req = build_request(:get_geofence, params) req.send_request() end |
#get_job(params = {}) ⇒ Types::GetJobResponse
‘GetJob` retrieves detailed information about a specific job, including its current status, configuration, and error information if the job failed.
For more information, see [Job concepts] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/jobs-concepts.html
The following waiters are defined for this operation (see #wait_until for detailed usage):
* job_completed
3376 3377 3378 3379 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3376 def get_job(params = {}, = {}) req = build_request(:get_job, params) req.send_request() end |
#get_map_glyphs(params = {}) ⇒ Types::GetMapGlyphsResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to [ ‘GetGlyphs` ][1] unless you require `Grab` data.
* `GetMapGlyphs` is part of a previous Amazon Location Service Maps
API (version 1) which has been superseded by a more intuitive,
powerful, and complete API (version 2).
-
The version 2 ‘GetGlyphs` operation gives a better user experience and is compatible with the remainder of the V2 Maps API.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Retrieves glyphs used to display labels on a map.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_geomaps_GetGlyphs.html [2]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [3]: docs.aws.amazon.com/location/latest/developerguide/maps.html
3521 3522 3523 3524 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3521 def get_map_glyphs(params = {}, = {}, &block) req = build_request(:get_map_glyphs, params) req.send_request(, &block) end |
#get_map_sprites(params = {}) ⇒ Types::GetMapSpritesResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to [ ‘GetSprites` ][1] unless you require `Grab` data.
* `GetMapSprites` is part of a previous Amazon Location Service Maps
API (version 1) which has been superseded by a more intuitive,
powerful, and complete API (version 2).
-
The version 2 ‘GetSprites` operation gives a better user experience and is compatible with the remainder of the V2 Maps API.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Retrieves the sprite sheet corresponding to a map resource. The
sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_geomaps_GetSprites.html [2]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [3]: docs.aws.amazon.com/location/latest/developerguide/maps.html
3607 3608 3609 3610 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3607 def get_map_sprites(params = {}, = {}, &block) req = build_request(:get_map_sprites, params) req.send_request(, &block) end |
#get_map_style_descriptor(params = {}) ⇒ Types::GetMapStyleDescriptorResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to [ ‘GetStyleDescriptor` ][1] unless you require `Grab` data.
* `GetMapStyleDescriptor` is part of a previous Amazon Location
Service Maps API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The version 2 ‘GetStyleDescriptor` operation gives a better user experience and is compatible with the remainder of the V2 Maps API.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Retrieves the map style descriptor from a map resource.
The style descriptor contains specifications on how features render on
a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_geomaps_GetStyleDescriptor.html [2]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [3]: docs.aws.amazon.com/location/latest/developerguide/maps.html
3679 3680 3681 3682 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3679 def get_map_style_descriptor(params = {}, = {}, &block) req = build_request(:get_map_style_descriptor, params) req.send_request(, &block) end |
#get_map_tile(params = {}) ⇒ Types::GetMapTileResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to [ ‘GetTile` ][1] unless you require `Grab` data.
* `GetMapTile` is part of a previous Amazon Location Service Maps API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The version 2 ‘GetTile` operation gives a better user experience and is compatible with the remainder of the V2 Maps API.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Retrieves a vector data tile from the map resource. Map tiles are
used by clients to render a map. they’re addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.
The origin (0, 0) is the top left of the map. Increasing the zoom
level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).
[1]: docs.aws.amazon.com/location/latest/APIReference/API_geomaps_GetTile.html [2]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [3]: docs.aws.amazon.com/location/latest/developerguide/maps.html
3766 3767 3768 3769 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3766 def get_map_tile(params = {}, = {}, &block) req = build_request(:get_map_tile, params) req.send_request(, &block) end |
#get_place(params = {}) ⇒ Types::GetPlaceResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the [V2 ‘GetPlace` ](/location/latest/APIReference/API_geoplaces_GetPlace.html) operation unless you require Grab data.
* This version of `GetPlace` is part of a previous Amazon Location
Service Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
Version 2 of the ‘GetPlace` operation interoperates with the rest of the Places V2 API, while this version does not.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Finds a place by its unique ID. A `PlaceId` is returned by other
search operations.
<note markdown="1"> A PlaceId is valid only if all of the following
are the same in the original search request and the call to ‘GetPlace`.
* Customer Amazon Web Services account
-
Amazon Web Services Region
-
Data provider specified in the place index resource
</note>
<note markdown="1"> If your Place index resource is configured with
Grab as your geolocation provider and Storage as Intended use, the GetPlace operation is unavailable. For more information, see [AWS service terms].
</note>
3902 3903 3904 3905 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3902 def get_place(params = {}, = {}) req = build_request(:get_place, params) req.send_request() end |
#list_device_positions(params = {}) ⇒ Types::ListDevicePositionsResponse
A batch request to retrieve all device positions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3964 3965 3966 3967 |
# File 'lib/aws-sdk-locationservice/client.rb', line 3964 def list_device_positions(params = {}, = {}) req = build_request(:list_device_positions, params) req.send_request() end |
#list_geofence_collections(params = {}) ⇒ Types::ListGeofenceCollectionsResponse
Lists geofence collections in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4012 4013 4014 4015 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4012 def list_geofence_collections(params = {}, = {}) req = build_request(:list_geofence_collections, params) req.send_request() end |
#list_geofences(params = {}) ⇒ Types::ListGeofencesResponse
Lists geofences stored in a given geofence collection.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4077 4078 4079 4080 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4077 def list_geofences(params = {}, = {}) req = build_request(:list_geofences, params) req.send_request() end |
#list_jobs(params = {}) ⇒ Types::ListJobsResponse
‘ListJobs` retrieves a list of jobs with optional filtering and pagination support.
For more information, see [Job concepts] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/jobs-concepts.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4147 4148 4149 4150 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4147 def list_jobs(params = {}, = {}) req = build_request(:list_jobs, params) req.send_request() end |
#list_keys(params = {}) ⇒ Types::ListKeysResponse
Lists API key resources in your Amazon Web Services account.
For more information, see [Use API keys to authenticate] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4218 4219 4220 4221 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4218 def list_keys(params = {}, = {}) req = build_request(:list_keys, params) req.send_request() end |
#list_maps(params = {}) ⇒ Types::ListMapsResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to the Maps API V2 unless you require ‘Grab` data.
* `ListMaps` is part of a previous Amazon Location Service Maps API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The Maps API version 2 has a simplified interface that can be used without creating or managing map resources.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Lists map resources in your Amazon Web Services account.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [2]: docs.aws.amazon.com/location/latest/developerguide/maps.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4292 4293 4294 4295 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4292 def list_maps(params = {}, = {}) req = build_request(:list_maps, params) req.send_request() end |
#list_place_indexes(params = {}) ⇒ Types::ListPlaceIndexesResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Places API V2 unless you require Grab data.
* `ListPlaceIndexes` is part of a previous Amazon Location Service
Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Places API version 2 has a simplified interface that can be used without creating or managing place index resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Lists place index resources in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4364 4365 4366 4367 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4364 def list_place_indexes(params = {}, = {}) req = build_request(:list_place_indexes, params) req.send_request() end |
#list_route_calculators(params = {}) ⇒ Types::ListRouteCalculatorsResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Routes API V2 unless you require Grab data.
* `ListRouteCalculators` is part of a previous Amazon Location
Service
Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Routes API version 2 has a simplified interface that can be used without creating or managing route calculator resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
Lists route calculator resources in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4436 4437 4438 4439 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4436 def list_route_calculators(params = {}, = {}) req = build_request(:list_route_calculators, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags that are applied to the specified Amazon Location resource.
4472 4473 4474 4475 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4472 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_tracker_consumers(params = {}) ⇒ Types::ListTrackerConsumersResponse
Lists geofence collections currently associated to the given tracker resource.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4521 4522 4523 4524 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4521 def list_tracker_consumers(params = {}, = {}) req = build_request(:list_tracker_consumers, params) req.send_request() end |
#list_trackers(params = {}) ⇒ Types::ListTrackersResponse
Lists tracker resources in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4569 4570 4571 4572 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4569 def list_trackers(params = {}, = {}) req = build_request(:list_trackers, params) req.send_request() end |
#put_geofence(params = {}) ⇒ Types::PutGeofenceResponse
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.
4650 4651 4652 4653 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4650 def put_geofence(params = {}, = {}) req = build_request(:put_geofence, params) req.send_request() end |
#search_place_index_for_position(params = {}) ⇒ Types::SearchPlaceIndexForPositionResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to [ ‘ReverseGeocode` ](/location/latest/APIReference/API_geoplaces_ReverseGeocode.html) or [ `SearchNearby` ](/location/latest/APIReference/API_geoplaces_SearchNearby.html) unless you require Grab data.
* `SearchPlaceIndexForPosition` is part of a previous Amazon Location
Service Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The version 2 ‘ReverseGeocode` operation gives better results in the address reverse-geocoding use case, while the version 2 `SearchNearby` operation gives better results when searching for businesses and points of interest near a specific location.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
Reverse geocodes a given coordinate and returns a legible address.
Allows you to search for Places or points of interest near a given position.
4783 4784 4785 4786 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4783 def search_place_index_for_position(params = {}, = {}) req = build_request(:search_place_index_for_position, params) req.send_request() end |
#search_place_index_for_suggestions(params = {}) ⇒ Types::SearchPlaceIndexForSuggestionsResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to [ ‘Suggest` ](/location/latest/APIReference/API_geoplaces_Suggest.html) or [ `Autocomplete` ](/location/latest/APIReference/API_geoplaces_Autocomplete.html) unless you require Grab data.
* `SearchPlaceIndexForSuggestions` is part of a previous Amazon
Location Service Places API (version 1) which has been superseded by
a more intuitive, powerful, and complete API (version 2).
-
The version 2 ‘Suggest` operation gives better results for typeahead place search suggestions with fuzzy matching, while the version 2 `Autocomplete` operation gives better results for address completion based on partial input.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
Generates suggestions for addresses and points of interest based on
partial or misspelled free-form text. This operation is also known as autocomplete, autosuggest, or fuzzy matching.
Optional parameters let you narrow your search results by bounding
box or country, or bias your search toward a specific position on the globe.
<note markdown="1"> You can search for suggested place names near a
specified position by using ‘BiasPosition`, or filter results within a bounding box by using `FilterBBox`. These parameters are mutually exclusive; using both `BiasPosition` and `FilterBBox` in the same command returns an error.
</note>
4978 4979 4980 4981 |
# File 'lib/aws-sdk-locationservice/client.rb', line 4978 def search_place_index_for_suggestions(params = {}, = {}) req = build_request(:search_place_index_for_suggestions, params) req.send_request() end |
#search_place_index_for_text(params = {}) ⇒ Types::SearchPlaceIndexForTextResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to [ ‘Geocode` ](/location/latest/APIReference/API_geoplaces_Geocode.html) or [ `SearchText` ](/location/latest/APIReference/API_geoplaces_SearchText.html) unless you require Grab data.
* `SearchPlaceIndexForText` is part of a previous Amazon Location
Service Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The version 2 ‘Geocode` operation gives better results in the address geocoding use case, while the version 2 `SearchText` operation gives better results when searching for businesses and points of interest.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
Geocodes free-form text, such as an address, name, city, or region to
allow you to search for Places or points of interest.
Optional parameters let you narrow your search results by bounding
box or country, or bias your search toward a specific position on the globe.
<note markdown="1"> You can search for places near a given position
using ‘BiasPosition`, or filter results within a bounding box using `FilterBBox`. Providing both parameters simultaneously returns an error.
</note>
Search results are returned in order of highest to lowest relevance.
5194 5195 5196 5197 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5194 def search_place_index_for_text(params = {}, = {}) req = build_request(:search_place_index_for_text, params) req.send_request() end |
#start_job(params = {}) ⇒ Types::StartJobResponse
‘StartJob` starts a new asynchronous bulk processing job. You specify the input data location in Amazon S3, the action to perform, and the output location where results are written.
For more information, see [Job concepts] in the *Amazon Location Service Developer Guide*.
[1]: docs.aws.amazon.com/location/latest/developerguide/jobs-concepts.html
5301 5302 5303 5304 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5301 def start_job(params = {}, = {}) req = build_request(:start_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.
You can use the ‘TagResource` operation with an Amazon Location Service resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the tags already associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
You can associate up to 50 tags with a resource.
5369 5370 5371 5372 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5369 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified Amazon Location resource.
5401 5402 5403 5404 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5401 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_geofence_collection(params = {}) ⇒ Types::UpdateGeofenceCollectionResponse
Updates the specified properties of a given geofence collection.
5446 5447 5448 5449 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5446 def update_geofence_collection(params = {}, = {}) req = build_request(:update_geofence_collection, params) req.send_request() end |
#update_key(params = {}) ⇒ Types::UpdateKeyResponse
Updates the specified properties of a given API key resource.
5527 5528 5529 5530 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5527 def update_key(params = {}, = {}) req = build_request(:update_key, params) req.send_request() end |
#update_map(params = {}) ⇒ Types::UpdateMapResponse
This operation is no longer current and may be deprecated in the future. We recommend upgrading to the Maps API V2 unless you require ‘Grab` data.
* `UpdateMap` is part of a previous Amazon Location Service Maps API
(version 1) which has been superseded by a more intuitive, powerful,
and complete API (version 2).
-
The Maps API version 2 has a simplified interface that can be used without creating or managing map resources.
-
If you are using an AWS SDK or the AWS CLI, note that the Maps API version 2 is found under ‘geo-maps` or `geo_maps`, not under `location`.
-
Since ‘Grab` is not yet fully supported in Maps API version 2, we recommend you continue using API version 1 when using `Grab`.
-
Start your version 2 API journey with the [Maps V2 API Reference] or the [Developer Guide].
Updates the specified properties of a given map resource.
[1]: docs.aws.amazon.com/location/latest/APIReference/API_Operations_Amazon_Location_Service_Maps_V2.html [2]: docs.aws.amazon.com/location/latest/developerguide/maps.html
5602 5603 5604 5605 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5602 def update_map(params = {}, = {}) req = build_request(:update_map, params) req.send_request() end |
#update_place_index(params = {}) ⇒ Types::UpdatePlaceIndexResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Places API V2 unless you require Grab data.
* `UpdatePlaceIndex` is part of a previous Amazon Location Service
Places API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Places API version 2 has a simplified interface that can be used without creating or managing place index resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under ‘geo-places` or `geo_places`, not under `location`.
-
Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Places V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Places_V2.html)
or the [Developer
Guide](/location/latest/developerguide/places.html).
Updates the specified properties of a given place index resource.
5673 5674 5675 5676 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5673 def update_place_index(params = {}, = {}) req = build_request(:update_place_index, params) req.send_request() end |
#update_route_calculator(params = {}) ⇒ Types::UpdateRouteCalculatorResponse
This operation is no longer current and may be deprecated in the future. We recommend you upgrade to the Routes API V2 unless you require Grab data.
* `UpdateRouteCalculator` is part of a previous Amazon Location
Service Routes API (version 1) which has been superseded by a more
intuitive, powerful, and complete API (version 2).
-
The Routes API version 2 has a simplified interface that can be used without creating or managing route calculator resources.
-
If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Routes API version 2 is found under ‘geo-routes` or `geo_routes`, not under `location`.
-
Since Grab is not yet fully supported in Routes API version 2, we recommend you continue using API version 1 when using Grab.
-
Start your version 2 API journey with the Routes V2 [API
Reference](/location/latest/APIReference/API_Operations_Amazon_Location_Service_Routes_V2.html)
or the [Developer
Guide](/location/latest/developerguide/routes.html).
Updates the specified properties for a given route calculator
resource.
5739 5740 5741 5742 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5739 def update_route_calculator(params = {}, = {}) req = build_request(:update_route_calculator, params) req.send_request() end |
#update_tracker(params = {}) ⇒ Types::UpdateTrackerResponse
Updates the specified properties of a given tracker resource.
5836 5837 5838 5839 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5836 def update_tracker(params = {}, = {}) req = build_request(:update_tracker, params) req.send_request() end |
#verify_device_position(params = {}) ⇒ Types::VerifyDevicePositionResponse
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.
<note markdown=“1”> The Location Integrity SDK provides enhanced features related to device verification, and it is available for use by request. To get access to the SDK, contact [Sales Support].
</note>
[1]: aws.amazon.com/contact-us/sales-support/?pg=locationprice&cta=herobtn
5941 5942 5943 5944 |
# File 'lib/aws-sdk-locationservice/client.rb', line 5941 def verify_device_position(params = {}, = {}) req = build_request(:verify_device_position, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
## Basic Usage
A waiter will call an API operation until:
-
It is successful
-
It enters a terminal state
-
It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
## Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
## Callbacks
You can be notified before each polling attempt and before each delay. If you throw ‘:success` or `:failure` from these callbacks, it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
## Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
## Valid Waiters
The following table lists the valid waiter names, the operations they call, and the default ‘:delay` and `:max_attempts` values.
| waiter_name | params | :delay | :max_attempts | | ————- | —————- | ——– | ————- | | job_completed | #get_job | 60 | 5 |
6056 6057 6058 6059 6060 |
# File 'lib/aws-sdk-locationservice/client.rb', line 6056 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6064 6065 6066 |
# File 'lib/aws-sdk-locationservice/client.rb', line 6064 def waiter_names waiters.keys end |