Depends on how close they are, further away you can just use a texture on a plane and have it animate the texture. In Episode I it was just simple animation, but for Episode II since there was more going on there they made a system that would automatically animate the traffic onto a splines that they placed.