Home > @magiclane/maps-sdk > Acceleration

Acceleration class

Acceleration sensor data in three-dimensional space.

Measures linear movement of the device along the X, Y, and Z axes. Useful for detecting motion, steps, or sudden changes in speed.

Sensor Data Source

Signature:

export declare class Acceleration extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Acceleration class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

type

readonly

DataType

Get data type

unit

readonly

UnitOfMeasurementAcceleration

The unit of measurement for acceleration values.

x

readonly

number

The acceleration along the X axis.

y

readonly

number

The acceleration along the Y axis.

z

readonly

number

The acceleration along the Z axis.

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON