class_docstr: Template object for geocoders.
class_docstr_tok: ["Template","object","for","geocoders","."]
docstr: For a generated query URL, get the results.
docstr_tok: ["For","a","generated","query","URL",",","get","the","results","."]
code: def _call_geocoder(
      self,
      url,
      callback,
      *,
      timeout=DEFAULT_SENTINEL,
      is_json=True,
      headers=None,
  ):
      """
      For a generated query URL, get the results.
      """
  
      req_headers = self.headers.copy()
      if headers:
          req_headers.update(headers)
  
      timeout = (
          timeout if timeout is not DEFAULT_SENTINEL else self.timeout
      )
  
      try:
          if is_json:
              result = self.adapter.get_json(
                  url, timeout=timeout, headers=req_headers
              )
          else:
              result = self.adapter.get_text(
                  url, timeout=timeout, headers=req_headers
              )
          if self.__run_async:
  
              async def fut():
                  try:
                      res = callback(await result)
                      if inspect.isawaitable(res):
                          res = await res
                      return res
                  except Exception as error:
                      res = self._adapter_error_handler(error)
                      if res is NONE_RESULT:
                          return None
                      raise
  
              return fut()
          else:
              return callback(result)
      except Exception as error:
          res = self._adapter_error_handler(error)
          if res is NONE_RESULT:
              return None
          raise
  
imports: import asyncio
  import functools
  import inspect
  import threading
  from geopy import compat
  from geopy.adapters import AdapterHTTPError, BaseAsyncAdapter, BaseSyncAdapter, RequestsAdapter, URLLibAdapter, get_retry_after
  from geopy.exc import ConfigurationError, GeocoderAuthenticationFailure, GeocoderInsufficientPrivileges, GeocoderQueryError, GeocoderQuotaExceeded, GeocoderRateLimited, GeocoderServiceError, GeocoderTimedOut
  from geopy.point import Point
  from geopy.util import __version__, logger
label_desc: Use image node_id 7 for calling the Geocoder obj's underlying member method code with example usage: obj._call_geocoder(url, callback) and returns: fut, callback, None, res, None