Officers of the police department are hereby authorized to direct all traffic by voice, hand, or signal in conformance with traffic laws and ordinances. In the event of a fire or other emergency, to expedite traffic, or to safeguard pedestrians, officers of the police department may direct traffic as conditions may require, notwithstanding the provisions of traffic laws and ordinances. Officers of the fire department, when at the scene of a fire, may direct, or assist the police in directing traffic in the immediate vicinity of the fire.