A West Yorkshire Police officer has been charged with a drink driving offence and perverting the course of justice.