public function location($longitude, $latitude, $caption = null, $url = null)
    {
        $location = new stdClass();
        $location->type = 'location';
        $location->longitude = $longitude;
        $location->latitude = $latitude;
        $location->caption = $caption;
        $location->url = $url;

        $this->messages[] = $location;
    }
public function location($longitude, $latitude, $caption = null, $url = null)
    {
        $location = new stdClass();
        $location->type = 'location';
        $location->longitude = $longitude;
        $location->latitude = $latitude;
        $location->caption = $caption;
        $location->url = $url;

        $this->messages[] = $location;
    }
public function location ( $ longitude , $ latitude , $ caption = null , $ url = null ) { $ location = new stdClass ( ) ; $ location -> type = 'location' ; $ location -> longitude = $ longitude ; $ location -> latitude = $ latitude ; $ location -> caption = $ caption ; $ location -> url = $ url ; $ this -> messages [ ] = $ location ; }
Send location message

<code>
WA::send('Go to itnovado !', function($send)
{
$send->to('5219622222222');
$send->location(-89.164138, 19.412405, 'Itnovado Location');
}):
</code>

@param  float $longitude
@param  float $latitude
@param  string Caption
@param  string $url
@return void
Send location message