locationservice function

Amazon Location Service

Amazon Location Service

"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"

locationservice( config = list(), credentials = list(), endpoint = NULL, region = NULL )

Arguments

  • config: Optional configuration of credentials, endpoint, and/or region.

    • credentials :

      • creds :

        • access_key_id : AWS access key ID
        • secret_access_key : AWS secret access key
        • session_token : AWS temporary session token
      • profile : The name of a profile to use. If not given, then the default profile is used.

      • anonymous : Set anonymous credentials.

    • endpoint : The complete URL to use for the constructed client.

    • region : The AWS Region used in instantiating the client.

    • close_connection : Immediately close all HTTP connections.

    • timeout : The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

    • s3_force_path_style : Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

    • sts_regional_endpoint : Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

  • credentials: Optional credentials shorthand for the config parameter

    • creds :

      • access_key_id : AWS access key ID
      • secret_access_key : AWS secret access key
      • session_token : AWS temporary session token
    • profile : The name of a profile to use. If not given, then the default profile is used.

    • anonymous : Set anonymous credentials.

  • endpoint: Optional shorthand for complete URL to use for the constructed client.

  • region: Optional shorthand for AWS Region used in instantiating the client.

Returns

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- locationservice(
  config = list(
    credentials = list(
 creds = list(
   access_key_id = "string",
   secret_access_key = "string",
   session_token = "string"
 ),
 profile = "string",
 anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
 access_key_id = "string",
 secret_access_key = "string",
 session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

associate_tracker_consumerCreates an association between a geofence collection and a tracker resource
batch_delete_device_position_historyDeletes the position history of one or more devices from a tracker resource
batch_delete_geofenceDeletes a batch of geofences from a geofence collection
batch_evaluate_geofencesEvaluates device positions against the geofence geometries from a given geofence collection
batch_get_device_positionLists the latest device positions for requested devices
batch_put_geofenceA 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_positionUploads position update data for one or more devices to a tracker resource (up to 10 devices per batch)
calculate_routeCalculates a route given the following required parameters: DeparturePosition and DestinationPosition
calculate_route_matrixCalculates a route matrix given the following required parameters: DeparturePositions and DestinationPositions
create_geofence_collectionCreates a geofence collection, which manages and stores geofences
create_keyCreates 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_mapCreates a map resource in your Amazon Web Services account, which provides map tiles of different styles sourced from global location data providers
create_place_indexCreates a place index resource in your Amazon Web Services account
create_route_calculatorCreates a route calculator resource in your Amazon Web Services account
create_trackerCreates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices
delete_geofence_collectionDeletes a geofence collection from your Amazon Web Services account
delete_keyDeletes the specified API key
delete_mapDeletes a map resource from your Amazon Web Services account
delete_place_indexDeletes a place index resource from your Amazon Web Services account
delete_route_calculatorDeletes a route calculator resource from your Amazon Web Services account
delete_trackerDeletes a tracker resource from your Amazon Web Services account
describe_geofence_collectionRetrieves the geofence collection details
describe_keyRetrieves the API key resource details
describe_mapRetrieves the map resource details
describe_place_indexRetrieves the place index resource details
describe_route_calculatorRetrieves the route calculator resource details
describe_trackerRetrieves the tracker resource details
disassociate_tracker_consumerRemoves the association between a tracker resource and a geofence collection
forecast_geofence_eventsEvaluates device positions against geofence geometries from a given geofence collection
get_device_positionRetrieves a device's most recent position according to its sample time
get_device_position_historyRetrieves the device position history from a tracker resource within a specified range of time
get_geofenceRetrieves the geofence details from a geofence collection
get_map_glyphsRetrieves glyphs used to display labels on a map
get_map_spritesRetrieves the sprite sheet corresponding to a map resource
get_map_style_descriptorRetrieves the map style descriptor from a map resource
get_map_tileRetrieves a vector data tile from the map resource
get_placeFinds a place by its unique ID
list_device_positionsA batch request to retrieve all device positions
list_geofence_collectionsLists geofence collections in your Amazon Web Services account
list_geofencesLists geofences stored in a given geofence collection
list_keysLists API key resources in your Amazon Web Services account
list_mapsLists map resources in your Amazon Web Services account
list_place_indexesLists place index resources in your Amazon Web Services account
list_route_calculatorsLists route calculator resources in your Amazon Web Services account
list_tags_for_resourceReturns a list of tags that are applied to the specified Amazon Location resource
list_tracker_consumersLists geofence collections currently associated to the given tracker resource
list_trackersLists tracker resources in your Amazon Web Services account
put_geofenceStores 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_positionReverse geocodes a given coordinate and returns a legible address
search_place_index_for_suggestionsGenerates suggestions for addresses and points of interest based on partial or misspelled free-form text
search_place_index_for_textGeocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest
tag_resourceAssigns one or more tags (key-value pairs) to the specified Amazon Location Service resource
untag_resourceRemoves one or more tags from the specified Amazon Location resource
update_geofence_collectionUpdates the specified properties of a given geofence collection
update_keyUpdates the specified properties of a given API key resource
update_mapUpdates the specified properties of a given map resource
update_place_indexUpdates the specified properties of a given place index resource
update_route_calculatorUpdates the specified properties for a given route calculator resource
update_trackerUpdates the specified properties of a given tracker resource
verify_device_positionVerifies 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

Examples

## Not run: svc <- locationservice() svc$associate_tracker_consumer( Foo = 123 ) ## End(Not run)
  • Maintainer: Dyfan Jones
  • License: Apache License (>= 2.0)
  • Last published: 2025-03-17