2025-03-08 22:27:59 +03:00
|
|
|
---
|
2025-03-10 21:48:17 +03:00
|
|
|
sidebar_position: 9
|
2025-03-08 22:27:59 +03:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
|
|
# Get location description
|
|
|
|
|
Gets the description of the location to send with SendLocation method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function GetLocationDescription(Val Latitude, Val Longitude, Val Address = "", Val Name = "") Export`
|
|
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|
|
|
|-|-|-|-|-|
|
|
|
|
|
| Latitude | --lat | Number | ✔ | Geographic latitude |
|
|
|
|
|
| Longitude | --long | Number | ✔ | Geographic longitude |
|
|
|
|
|
| Address | --addr | String | ✖ | Location address |
|
|
|
|
|
| Name | --name | String | ✖ | Location name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Location description
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
|
|
|
Latitude = 53.908522;
|
|
|
|
|
Longitude = 27.574821;
|
|
|
|
|
Address = "Victory Square, Minsk";
|
|
|
|
|
Name = "Victory sq.";
|
|
|
|
|
|
|
|
|
|
Result = OPI_GreenAPI.GetLocationDescription(Latitude, Longitude, Address, Name);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|