API reference - Ricoh Theta

Get State2

Definitions
Type object

Description: Acquires the GPS onformation of Theta.

Service UUIDb6ac7a7e-8c01-4a52-b188-68d53df53ea2
Characteristic UUID8881ce4e-96fc-4c6c-8103-5dda0ad138fb
Value formatUTF-8 string (JSON)
Enabled to readtrue
Enabled to writefalse
Enabled to notifyfalse

Example:

{
    "_externalGpsInfo": {
        "gpsInfo": {
            "_altitude": 12.345678,
            "_dateTimeZone": "2024:01:23 01:23:45+01:00",
            "_datum": "WGS84",
            "lat": 12.345678,
            "lng": 123.45678
        }
    },
    "_internalGpsInfo": {}
}
Property Type Required Description
_externalGpsInfo object yes Location data obtained through an external device using an API.
_internalGpsInfo object yes Location data obtained through an internal GPS module

_externalGpsInfo

Definitions
Type object

Description: Location data obtained through an external device using an API.

Property Type Required Description
gpsInfo object no GPS location information

gpsInfo

Definitions
Type object

Description: GPS location information

Property Type Required Description
lat number yes Latitude from -90 to 90.
If GPS is disabled then 65535
lng number yes Longitude from -180 to 180.
If GPS is disabled then 65535
_altitude number yes Altitude.
If GPS is disabled then 0
_dateTimeZone string yes Date, time and time zone.
If GPS is disabled then empty string
_datum string yes Geodetic reference.
If GPS is disabled then empty string

lat

Definitions
Type number

Description: Latitude from -90 to 90.
If GPS is disabled then 65535

Restrictions
Minimum ≥ -90

lng

Definitions
Type number

Description: Longitude from -180 to 180.
If GPS is disabled then 65535

Restrictions
Minimum ≥ -180

_altitude

Definitions
Type number

Description: Altitude.
If GPS is disabled then 0

_dateTimeZone

Definitions
Type string

Description: Date, time and time zone.
If GPS is disabled then empty string

Restrictions
Must match regular expression ([0-9]{4}:[0-9]{2}:[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2})|(^$) Test

_datum

Definitions
Type string

Description: Geodetic reference.
If GPS is disabled then empty string

_internalGpsInfo

Definitions
Type object

Description: Location data obtained through an internal GPS module

Property Type Required Description
gpsInfo object no GPS location information

gpsInfo

Definitions
Type object
Same definition as gpsInfo

Description: GPS location information