The command allows you to perform an unscheduled request to the Locator service to obtain device coordinates based on LBS and WiFi data
Yandex Locator
The operating sequence when the command is sent is as follows:
| Structure | *!LOC[ <key>,<source>] |
|
| Parameter | Description | Note |
*!LOC |
Constant - 0x2A 0x21 0x4C 0x4F 0x43 |
|
<key> |
(Optional) Key for requesting information from the Locator service. The key value must be enclosed in double quotation marks, for example: *!LOC "key"If the key is not specified, the key configured in the device settings |
36 characters |
<source> |
(Optional) Which data to use when sending the request to Locator: Mask (character positions from left to right): 0 - Use LBS information;1 - Use WIFI information.Allowed values: 0 - Do not use1 - UseIf the parameter is not specified, the data configured in the device settings |
2 characters |
Command without parameters:
*!LOC
Command with parameters (Key 123456, LBS only):
*!LOC "123456",10
Sent by the device immediately to confirm the command
| Structure | *@LOC <ans> |
|
| Parameter | Description | Note |
*@LOC |
Constant - 0x2A 0x40 0x4C 0x4F 0x43 |
|
<ans> |
Command execution result:OK – command accepted for executionFAIL – error, command canceled |
|
Sent asynchronously by the device when coordinates are received from the service
| Structure | *&LOC DATA,<time>,<lat>,<lon>,<acc>,<map-link> |
||
| Parameter | Description | Note | |
*&LOC |
Constant - 0x2A 0x26 0x4C 0x4F 0x43 |
||
DATA |
Command execution result:DATA – coordinates received from Locator |
||
<time> |
Time and date of the source data used to obtain coordinates from Locator | UTC time | |
<lat> |
Latitude | degrees | |
<lon> |
Longitude | degrees | |
<acc> |
Accuracy of the received coordinates, in meters | 1 meter | |
<map-link> |
Google Maps link with the received coordinates | ||
*&LOC DATA,"06:26:19 16.10.2026",55.783261,37.721710,150.000000,"http://maps.google.com/maps?&q=+55.783261,+37.721710&zoom=0"
Sent asynchronously by the device when coordinates cannot be obtained from the service
| Structure | *&LOC FAIL |
|
| Parameter | Description | Note |
*&LOC |
Constant - 0x2A 0x26 0x4C 0x4F 0x43 |
|
FAIL |
Command execution result:FAIL – error, command canceled |
|