1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Green_API/Message-sending/Get-location-description.mdx

70 lines
1.8 KiB
Plaintext
Raw Normal View History

2025-03-08 22:27:59 +03:00
---
2025-03-17 17:09:18 +03:00
sidebar_position: 11
2025-05-05 11:15:20 +03:00
description: Get location description and other functions to work with Green API in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Green API]
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);
```
2025-05-21 10:35:46 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint greenapi GetLocationDescription \
--lat 53,908522 \
--long 27,574821
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint greenapi GetLocationDescription ^
--lat 53,908522 ^
--long 27,574821
```
</TabItem>
</Tabs>
2025-03-08 22:27:59 +03:00
2025-03-18 10:00:47 +03:00
```json title="Result"
{
"latitude": 53.908522,
"longitude": 27.574821,
"address": "Victory Square, Minsk",
"nameLocation": "Victory sq."
}
```