Skip to content

Batch Get Device Position

locationservice_batch_get_device_position R Documentation

Lists the latest device positions for requested devices

Description

Lists the latest device positions for requested devices.

Usage

locationservice_batch_get_device_position(TrackerName, DeviceIds)

Arguments

TrackerName

[required] The tracker resource retrieving the device position.

DeviceIds

[required] Devices whose position you want to retrieve.

  • For example, for two devices: device-ids=DeviceId1&device-ids=DeviceId2

Value

A list with the following syntax:

list(
  Errors = list(
    list(
      DeviceId = "string",
      Error = list(
        Code = "AccessDeniedError"|"ConflictError"|"InternalServerError"|"ResourceNotFoundError"|"ThrottlingError"|"ValidationError",
        Message = "string"
      )
    )
  ),
  DevicePositions = list(
    list(
      DeviceId = "string",
      SampleTime = as.POSIXct(
        "2015-01-01"
      ),
      ReceivedTime = as.POSIXct(
        "2015-01-01"
      ),
      Position = list(
        123.0
      ),
      Accuracy = list(
        Horizontal = 123.0
      ),
      PositionProperties = list(
        "string"
      )
    )
  )
)

Request syntax

svc$batch_get_device_position(
  TrackerName = "string",
  DeviceIds = list(
    "string"
  )
)