code: public static TextSearchRequest textSearchQuery(GeoApiContext context, String query) {
      TextSearchRequest request = new TextSearchRequest(context);
      request.query(query);
      return request;
    }
docs: Performs a search for Places using a text query; for example, "pizza in New York" or "shoe
  stores near Ottawa".
  
  @param context The context on which to make Geo API requests.
  @param query The text string on which to search, for example: "restaurant".
  @return Returns a TextSearchRequest that can be configured and executed.