A police officer was directing (the) traffic. (Oxford Dictionary)
This is one of example sentences under
4 [transitive] direct someone (to…) to tell or show someone how to get to somewhere or where to go
but does the sentence mean that the police officer was telling the way to go somewhere to the drivers or is it more like the police officer standing at the center of an intersection and acting like a traffic signal?