class_docstr: Geocoder using the LiveAddress API provided by SmartyStreets.
  
  Documentation at:
      https://smartystreets.com/docs/cloud/us-street-api
class_docstr_tok: ["Geocoder","using","the","LiveAddress","API","provided","by","SmartyStreets",".","Documentation","at",":","https",":","\/\/smartystreets.com\/docs\/cloud\/us-street-api"]
docstr: Return a location point by address.
  
  :param str query: The address or query you wish to geocode.
  
  :param bool exactly_one: Return one result or a list of results, if
      available.
  
  :param int timeout: Time, in seconds, to wait for the geocoding service
      to respond before raising a :class:`geopy.exc.GeocoderTimedOut`
      exception. Set this only if you wish to override, on this call
      only, the value set during the geocoder's initialization.
  
  :param int candidates: An integer between 1 and 10 indicating the max
      number of candidate addresses to return if a valid address
      could be found.
  
  :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
      ``exactly_one=False``.
docstr_tok: ["Return","a","location","point","by","address",".",":","param","str","query",":","The","address","or","query","you","wish","to","geocode",".",":","param","bool","exactly_one",":","Return","one","result","or","a","list","of","results",",","if","available",".",":","param","int","timeout",":","Time",",","in","seconds",",","to","wait","for","the","geocoding","service","to","respond","before","raising","a",":","class",":","`","geopy.exc.GeocoderTimedOut","`","exception",".","Set","this","only","if","you","wish","to","override",",","on","this","call","only",",","the","value","set","during","the","geocoder","'s","initialization",".",":","param","int","candidates",":","An","integer","between","1","and","10","indicating","the","max","number","of","candidate","addresses","to","return","if","a","valid","address","could","be","found",".",":","rtype",":","``","None","``",",",":","class",":","`","geopy.location.Location","`","or","a","list","of","them",",","if","``","exactly_one=False","``","."]
code: def geocode(
      self,
      query,
      *,
      exactly_one=True,
      timeout=DEFAULT_SENTINEL,
      candidates=1,
  ):
      """
      Return a location point by address.
  
      :param str query: The address or query you wish to geocode.
  
      :param bool exactly_one: Return one result or a list of results, if
          available.
  
      :param int timeout: Time, in seconds, to wait for the geocoding service
          to respond before raising a :class:`geopy.exc.GeocoderTimedOut`
          exception. Set this only if you wish to override, on this call
          only, the value set during the geocoder's initialization.
  
      :param int candidates: An integer between 1 and 10 indicating the max
          number of candidate addresses to return if a valid address
          could be found.
  
      :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
          ``exactly_one=False``.
      """
  
      if not (1 <= candidates <= 10):
          raise ValueError("candidates must be between 1 and 10")
  
      query = {
          "auth-id": self.auth_id,
          "auth-token": self.auth_token,
          "street": query,
          "candidates": candidates,
      }
      url = "{url}?{query}".format(url=self.api, query=urlencode(query))
  
      logger.debug("%s.geocode: %s", self.__class__.__name__, url)
      callback = partial(self._parse_json, exactly_one=exactly_one)
      return self._call_geocoder(url, callback, timeout=timeout)
  
file_path: geopy/geopy/geocoders/smartystreets.py
imports: from functools import partial
  from urllib.parse import urlencode
  from geopy.adapters import AdapterHTTPError
  from geopy.exc import GeocoderQuotaExceeded
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 2 for calling the LiveAddress obj's underlying member method code with example usage: obj.geocode(query) and returns: self