It is primarily used as an antiemetic and in the prevention and treatment of motion sickness or travel sickness .