Class: Aws::LocationService::Types::DevicePositionUpdate

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb

Overview

Note:

When making an API call, you may pass DevicePositionUpdate data as a hash:

{
  device_id: "Id", # required
  position: [1.0], # required
  sample_time: Time.now, # required
}

Contains the position update details for a device.

Constant Summary collapse

SENSITIVE =
[:position]

Instance Attribute Summary collapse

Instance Attribute Details

#device_idString

The device associated to the position update.

Returns:

  • (String)


2446
2447
2448
2449
2450
2451
2452
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2446

class DevicePositionUpdate < Struct.new(
  :device_id,
  :position,
  :sample_time)
  SENSITIVE = [:position]
  include Aws::Structure
end

#positionArray<Float>

The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].

Returns:

  • (Array<Float>)


2446
2447
2448
2449
2450
2451
2452
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2446

class DevicePositionUpdate < Struct.new(
  :device_id,
  :position,
  :sample_time)
  SENSITIVE = [:position]
  include Aws::Structure
end

#sample_timeTime

The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

Returns:

  • (Time)


2446
2447
2448
2449
2450
2451
2452
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2446

class DevicePositionUpdate < Struct.new(
  :device_id,
  :position,
  :sample_time)
  SENSITIVE = [:position]
  include Aws::Structure
end