GPS Management
FreshGet GPS
Query GPS coordinates (latitude and longitude) of cloud phones.
URL: https://openapi.geelark.com/open/v1/phone/gps/getMethod: POST
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | array[string] | Cloud phone IDs |
Response Example
json
{
"traceId": "81CA3BD0B7BBB924A1C6B836B298ADA7",
"code": 0,
"msg": "success",
"data": {
"totalAmount": 1,
"successAmount": 1,
"failAmount": 0,
"list": [
{
"id": "528086321789535232",
"latitude": 1.3024300336837769,
"longitude": 103.87545776367188
}
]
}
}Set GPS
Set or update GPS coordinates for cloud phones.
URL: https://openapi.geelark.com/open/v1/phone/gps/setMethod: POST
- Longitude range: [-180.0, 180.0]
- Latitude range: [-90.0, 90.0]
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| list | Yes | array | GPS info array |
| list[].id | Yes | string | Cloud phone ID |
| list[].longitude | Yes | float | Longitude |
| list[].latitude | Yes | float | Latitude |
Request Example
json
{
"list": [
{
"id": "528086321789535232",
"latitude": 1.30243,
"longitude": 103.87546
}
]
}Error Codes
| Code | Description |
|---|---|
| 42001 | Cloud phone does not exist |
| 43012 | Latitude/longitude range error |