module FakeRedis::GeoCommands

def georadius(*args)

def georadius(*args)
  args = args.dup
  raise_argument_error("georadius") if args.size < 5
  key, lon, lat, radius, unit, *rest = args
  raise_argument_error("georadius") unless DISTANCE_UNITS.has_key?(unit)
  radius *= DISTANCE_UNITS[unit]
  set = (data[key] || GeoSet.new)
  center = GeoSet::Point.new(lon, lat, nil)
  do_georadius(set, center, radius, unit, rest)
end