Location API component
Create a Location object for the API
Longitude of the location
Latitude of the location
Optional
Name of the location
Address of the location, only displayed if name is present
import { Location } from "whatsapp-api-js/messages";const location_message = new Location(0, 0);const location_named_message = new Location(0, 0, "My Store", "Address"); Copy
import { Location } from "whatsapp-api-js/messages";const location_message = new Location(0, 0);const location_named_message = new Location(0, 0, "My Store", "Address");
Readonly
The address of the location
The longitude of the location
The latitude of the location
The name of the location
Location API component