

def text_search(self, query, language=lang.ENGLISH, lat_lng=None, radius=3200, types=[], location=None):
    'Perform a text search using the Google Places API.\n\n        Only the query kwarg is required, the rest of the keyword arguments\n        are optional.\n\n        keyword arguments:\n        lat_lng  -- A dict containing the following keys: lat, lng\n                    (default None)\n        location -- A human readable location, e.g \'London, England\'\n                    (default None)\n        radius   -- The radius (in meters) around the location/lat_lng to\n                    restrict the search to. The maximum is 50000 meters.\n                    (default 3200)\n        query    -- The text string on which to search, for example:\n                    "Restaurant in New York".\n        types    -- An optional list of types, restricting the results to\n                    Places (default []).\n        '
    self._request_params = {
        'query': query,
    }
    if ((lat_lng is not None) or (location is not None)):
        lat_lng_str = self._generate_lat_lng_string(lat_lng, location)
        self._request_params['location'] = lat_lng_str
    self._request_params['radius'] = radius
    if (len(types) > 0):
        self._request_params['types'] = '|'.join(types)
    if (language is not None):
        self._request_params['language'] = language
    self._add_required_param_keys()
    (url, places_response) = _fetch_remote_json(GooglePlaces.TEXT_SEARCH_API_URL, self._request_params)
    _validate_response(url, places_response)
    return GooglePlacesSearchResult(self, places_response)

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py GooglePlaces.text_search/original