lib/TheTwelve/Foursquare/VenuesGateway.php
public function search(array $params = array())
    {
        $resource = '/venues/search';
        $response = $this->makeApiRequest($resource, $params);

        if(property_exists($response, 'venues')) {
            return $response->venues;
        }
        
        return array();
    }
public function search(array $params = array())
    {
        $resource = '/venues/search';
        $response = $this->makeApiRequest($resource, $params);

        if(property_exists($response, 'venues')) {
            return $response->venues;
        }
        
        return array();
    }
public function search ( array $ params = array ( ) ) { $ resource = '/venues/search' ; $ response = $ this -> makeApiRequest ( $ resource , $ params ) ; if ( property_exists ( $ response , 'venues' ) ) { return $ response -> venues ; } return array ( ) ; }
Returns a list of venues near the current location, optionally matching a search term.
@see https://developer.foursquare.com/docs/venues/search
@param array $params
@return array
Returns a list of venues near the current location optionally matching a search term .