Skip to main content
Table of Contents

TTMSFNCCloudWhatsApp.SendLocation Method

Sends a location message to a recipient.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudWhatsApp Inherited from: TTMSFNCCloudCustomWhatsApp

Syntax

FMX.TMSFNCCloudWhatsApp.hppPascalC++
procedure SendLocation(ANumber: String; ALatitude, ALongitude: Double; AName: string = ''; AAddress: string = ''; AReplyToID: String = '');
void __fastcall SendLocation(System::UnicodeString ANumber, double ALatitude, double ALongitude, System::UnicodeString AName = System::UnicodeString(), System::UnicodeString AAddress = System::UnicodeString(), System::UnicodeString AReplyToID = System::UnicodeString());

Parameters

Name Description
ANumber Recipient phone number.
ALatitude Latitude coordinate in decimal degrees.
ALongitude Longitude coordinate in decimal degrees.
AName Optional display name for the location.
AAddress Optional human-readable address for the location.
AReplyToID Optional message identifier to reply to.