Skip to main content

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

ParameterCLI optionTypeRequiredDescription
Latitude--latNumberGeographic latitude
Longitude--longNumberGeographic longitude
Address--addrStringLocation address
Name--nameStringLocation name

Returns: Structure Of KeyAndValue - Location description


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);
Result
{
"latitude": 53.908522,
"longitude": 27.574821,
"address": "Victory Square, Minsk",
"nameLocation": "Victory sq."
}