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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.



2898
2899
2900
2901
2902
2903
2904
2905
2906
# File 'lib/aws-sdk-locationservice/types.rb', line 2898

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

#device_idString

The device associated to the position update.

Returns:

  • (String)


2898
2899
2900
2901
2902
2903
2904
2905
2906
# File 'lib/aws-sdk-locationservice/types.rb', line 2898

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

[1]: earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84

Returns:

  • (Array<Float>)


2898
2899
2900
2901
2902
2903
2904
2905
2906
# File 'lib/aws-sdk-locationservice/types.rb', line 2898

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


2898
2899
2900
2901
2902
2903
2904
2905
2906
# File 'lib/aws-sdk-locationservice/types.rb', line 2898

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

#sample_timeTime

The timestamp at which the device’s position was determined. Uses

ISO 8601][1

format: ‘YYYY-MM-DDThh:mm:ss.sssZ`

[1]: www.iso.org/iso-8601-date-and-time-format.html

Returns:

  • (Time)


2898
2899
2900
2901
2902
2903
2904
2905
2906
# File 'lib/aws-sdk-locationservice/types.rb', line 2898

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