New Zealand has banned tourists who stayed in China for the past two weeks following the spread of the coronavirus.