docs: def set_geocode(self, latitude, longitude, radius, imperial_metric=True):
          """ Sets geolocation parameters to return only tweets by users \
          located within a given radius of the given latitude/longitude. \
          The location is preferentially taking from the Geotagging API, \
          but will fall back to their Twitter profile.
  
          :param latitude: A integer or long describing the latitude
          :param longitude: A integer or long describing the longitude
          :param radius: A integer or long describing the radius
          :param imperial_metric: Whether the radius is given in metric \
          (kilometers) or imperial (miles) system. \
          Default is ``True`` which relates to usage of the \
          imperial kilometer metric
          :raises: TwitterSearchException
  
          """
  
          if not isinstance(radius, int if py3k else (int, long)) or radius <= 0:
              raise TwitterSearchException(1004)
  
          if isinstance(latitude, float) and isinstance(longitude, float):
              if isinstance(imperial_metric, bool):
                  self.arguments.update({'geocode': '%s,%s,%s%s' % (latitude,
                                                                    longitude,
                                                                    radius,
                                                                    'km'
                                                                    if imperial_metric
                                                                    else 'mi')})
              else:
                  raise TwitterSearchException(1005)
          else:
              raise TwitterSearchException(1004)