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;
    }