code: def places_within_radius(
          self, place=None, latitude=None, longitude=None, radius=0, **kwargs
      ):
          kwargs['withdist'] = True
          kwargs['withcoord'] = True
          kwargs['withhash'] = False
          kwargs.setdefault('sort', 'ASC')
          unit = kwargs.setdefault('unit', 'km')
          if place is not None:
              response = self.redis.georadiusbymember(
                  self.key, self._pickle(place), radius, **kwargs
              )
          elif (latitude is not None) and (longitude is not None):
              response = self.redis.georadius(
                  self.key, longitude, latitude, radius, **kwargs
              )
          else:
              raise ValueError(
                  'Must specify place, or both latitude and longitude'
              )
          ret = []
          for item in response:
              ret.append(
                  {
                      'place': self._unpickle(item[0]),
                      'distance': item[1],
                      'unit': unit,
                      'latitude': item[2][1],
                      'longitude': item[2][0],
                  }
              )
          return ret