class_docstr: Geocoder using the Geocod.io API.
  
  Documentation at:
      https://www.geocod.io/docs/
  
  Pricing details:
      https://www.geocod.io/pricing/
  
  .. versionadded:: 2.2
class_docstr_tok: ["Geocoder","using","the","Geocod.io","API",".","Documentation","at",":","https",":","\/\/www.geocod.io\/docs\/","Pricing","details",":","https",":","\/\/www.geocod.io\/pricing\/","..","versionadded",":",":","2.2"]
docstr: Return a location point by address.
  
  :param query: The address, query or a structured query
      you wish to geocode.
  
      For a structured query, provide a dictionary whose keys
      are one of: `street`, `city`, `state`, `postal_code` or `country`.
  :type query: dict or str
  
  :param int limit: The maximum number of matches to return. This will be reset
      to 1 if ``exactly_one`` is ``True``.
  
  :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.
  
  :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
      ``exactly_one=False``.
docstr_tok: ["Return","a","location","point","by","address",".",":","param","query",":","The","address",",","query","or","a","structured","query","you","wish","to","geocode",".","For","a","structured","query",",","provide","a","dictionary","whose","keys","are","one","of",":","`","street","`",",","`","city","`",",","`","state","`",",","`","postal_code","`","or","`","country","`",".",":","type","query",":","dict","or","str",":","param","int","limit",":","The","maximum","number","of","matches","to","return",".","This","will","be","reset","to","1","if","``","exactly_one","``","is","``","True","``",".",":","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",".",":","rtype",":","``","None","``",",",":","class",":","`","geopy.location.Location","`","or","a","list","of","them",",","if","``","exactly_one=False","``","."]
code: def geocode(
      self,
      query,
      *,
      limit=None,
      exactly_one=True,
      timeout=DEFAULT_SENTINEL,
  ):
      """
      Return a location point by address.
  
      :param query: The address, query or a structured query
          you wish to geocode.
  
          For a structured query, provide a dictionary whose keys
          are one of: `street`, `city`, `state`, `postal_code` or `country`.
      :type query: dict or str
  
      :param int limit: The maximum number of matches to return. This will be reset
          to 1 if ``exactly_one`` is ``True``.
  
      :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.
  
      :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
          ``exactly_one=False``.
      """
  
      if isinstance(query, collections.abc.Mapping):
          params = {
              key: val
              for key, val in query.items()
              if key in self.structured_query_params
          }
      else:
          params = {"q": query}
  
      params["api_key"] = self.api_key
  
      if limit:
          params["limit"] = limit
      if exactly_one:
          params["limit"] = 1
  
      api = "%s://%s%s" % (self.scheme, self.domain, self.geocode_path)
      url = "?".join((api, urlencode(params)))
  
      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/geocodio.py
imports: import collections.abc
  import json
  from functools import partial
  from urllib.parse import urlencode
  from geopy.adapters import AdapterHTTPError
  from geopy.exc import GeocoderQueryError, GeocoderQuotaExceeded
  from geopy.geocoders.base import DEFAULT_SENTINEL, NONE_RESULT, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 2 for calling the Geocodio obj's underlying member method code with example usage: obj.geocode(query) and returns: self