reportOutdoorsLocation(data: ReportOutdoorsLocationParams)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Device location reporting. This wrapper serializes lon, lat, and optional extension fields into the payload JSON string required by the cloud and submits it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<boolean>
boolean: per the documentation, true indicates success and false indicates failure.
Valid Values
ReportOutdoorsLocationParams.coordinate
| Value | Description | Since |
|---|---|---|
GCJ02 | - | - |
BD09LL | - | - |
ReportOutdoorsLocationParams.connectStatus
| Value | Description | Since |
|---|---|---|
1 | - | - |
2 | - | - |