Controlling the travelling speed of vehicles