code: def geocode(self,
                  query,
                  lang='en',
                  exactly_one=True,
                  timeout=DEFAULT_SENTINEL):
  
          
  
          if not self._check_query(query):
              raise exc.GeocoderQueryError(
                  "Search string must be 'word.word.word'"
              )
  
          params = {
              'addr': self.format_string % query,
              'lang': lang.lower(),
              'key': self.api_key,
          }
  
          url = "?".join((self.geocode_api, urlencode(params)))
          logger.debug("%s.geocode: %s", self.__class__.__name__, url)
          return self._parse_json(
              self._call_geocoder(url, timeout=timeout),
              exactly_one=exactly_one
          )
docs: Return a location point for a `3 words` query. If the `3 words` address
          doesn't exist, a :class:`geopy.exc.GeocoderQueryError` exception will be
          thrown.
  
          :param str query: The 3-word address you wish to geocode.
  
          :param str lang: two character language codes as supported by
              the API (https://docs.what3words.com/api/v2/#lang).
  
          :param bool exactly_one: Return one result or a list of results, if
              available. Due to the address scheme there is always exactly one
              result for each `3 words` address, so this parameter is rather
              useless for this geocoder.
  
              .. versionchanged:: 1.14.0
                 ``exactly_one=False`` now returns a list of a single location.
                 This option wasn't respected before.
  
          :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: :class:`geopy.location.Location` or a list of them, if
              ``exactly_one=False``.