Uber has been ordered to comply with taxi regulations in Barcelona.