I will assume there is a database of GPS location of intersections, and maybe sensors / cameras are trained to look for the light bucket shape too first and then second the color of the light in it second.
Otherwise i assume you could cheat "smart" cars with a colored flashlight ?