Typhoon Nanmadol has brought winds of 180 km/h, with some four million people told to leave their homes.