whatsapp-api-js - v5.2.0
    Preparing search index...

    Class Location

    Location API component

    Hierarchy (View Summary)

    Index

    Constructors

    • Create a Location object for the API

      Parameters

      • longitude: number

        Longitude of the location

      • latitude: number

        Latitude of the location

      • Optionalname: string

        Name of the location

      • Optionaladdress: string

        Address of the location, only displayed if name is present

      Returns Location

      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");

    Properties

    address?: string

    The address of the location

    latitude: number

    The longitude of the location

    longitude: number

    The latitude of the location

    name?: string

    The name of the location