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

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

Overview

Contains the position update details for a device.

Constant Summary collapse

SENSITIVE =
[:position, :position_properties]

Instance Attribute Summary collapse

Instance Attribute Details

#accuracyTypes::PositionalAccuracy

The accuracy of the device position.



2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2880

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

#device_idString

The device associated to the position update.

Returns:

  • (String)


2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2880

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

#positionArray<Float>

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

Returns:

  • (Array<Float>)


2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2880

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

#position_propertiesHash<String,String>

Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.

Format: "key" : "value"

Returns:

  • (Hash<String,String>)


2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2880

class DevicePositionUpdate < Struct.new(
  :accuracy,
  :device_id,
  :position,
  :position_properties,
  :sample_time)
  SENSITIVE = [:position, :position_properties]
  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)


2880
2881
2882
2883
2884
2885
2886
2887
2888
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 2880

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