src/whatsprot.class.php
public function sendBroadcastLocation($targets, $long, $lat, $name = null, $url = null)
    {
        if (!is_array($targets)) {
            $targets = [$targets];
        }
        // Return message ID. Make pull request for this.
        return $this->sendMessageLocation($targets, $long, $lat, $name, $url);
    }
public function sendBroadcastLocation($targets, $long, $lat, $name = null, $url = null)
    {
        if (!is_array($targets)) {
            $targets = [$targets];
        }
        // Return message ID. Make pull request for this.
        return $this->sendMessageLocation($targets, $long, $lat, $name, $url);
    }
public function sendBroadcastLocation ( $ targets , $ long , $ lat , $ name = null , $ url = null ) { if ( ! is_array ( $ targets ) ) { $ targets = [ $ targets ] ; } // Return message ID. Make pull request for this. return $ this -> sendMessageLocation ( $ targets , $ long , $ lat , $ name , $ url ) ; }
Send a Broadcast Message with location data.

The recipients MUST have your number (synced) and in their contact list
otherwise the message will not deliver to that person.

If no name is supplied , receiver will see large sized google map
thumbnail of entered Lat/Long but NO name/url for location.

With name supplied, a combined map thumbnail/name box is displayed
Approx 20 (unverified) is the maximum number of targets

@param array  $targets An array of numbers to send to.
@param float  $long    The longitude of the location eg 54.31652
@param float  $lat     The latitude if the location eg -6.833496
@param string $name    (Optional) A name to describe the location
@param string $url     (Optional) A URL to link location to web resource

@return string Message ID
Send a Broadcast Message with location data .