class_docstr: A class for handling connections and interactions with the TripAdvisor Content API.
  
  Attributes:
      api_key (str): The unique API key to access Tripadvisor content.
      api (TripAdvisorAPI): The `TripAdvisorAPI` object for checking the connection to the TripAdvisor API.
docstr: It processes the JSON data from the call and transforms it into pandas.Dataframe
docstr_tok: ["It","processes","the","JSON","data","from","the","call","and","transforms","it","into","pandas.Dataframe"]
code: def call_tripadvisor_nearby_location_api(
      self, method_name: str = None, params: dict = None
  ) -> pd.DataFrame:
      """It processes the JSON data from the call and transforms it into pandas.Dataframe"""
      if self.is_connected is False:
          self.connect()
  
      locations = self.api.getTripAdvisorData(
          TripAdvisorAPICall.NEARBY_SEARCH, **params
      )
      result = []
  
      for loc in locations:
          data = {
              "location_id": loc.get("location_id"),
              "name": loc.get("name"),
              "distance": loc.get("distance"),
              "rating": loc.get("rating"),
              "bearing": loc.get("bearing"),
              "address_obj": str(loc.get("address_obj")),
          }
          result.append(data)
      result = pd.DataFrame(result)
      return result
  
imports: import os
  import pandas
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from .tripadvisor_table import SearchLocationTable
  from .tripadvisor_table import LocationDetailsTable
  from .tripadvisor_table import ReviewsTable
  from .tripadvisor_table import PhotosTable
  from .tripadvisor_table import NearbyLocationTable
  from .tripadvisor_api import TripAdvisorAPI
  from .tripadvisor_api import TripAdvisorAPICall
label_desc: Use image node_id 8 for calling the TripAdvisorHandler obj's underlying member method code with example usage: obj.call_tripadvisor_nearby_location_api(method_name, params) and returns: result