Abstract: A system and method for generating a continuous line-of-sight optimized optical communication between a public transportation vehicle and an infrastructure are provided. The method determining a location of at least one infrastructure unit along a predetermined route; detecting an approaching public transportation vehicle; determining a speed of the public transportation vehicle by an accelerometer; computing a position of the public transportation vehicle with respect to the at least one infrastructure unit based on the speed; and establishing a bi-directional link based on modulated light emitted from the public transportation vehicle and from the at least one infrastructure unit based on the position of the public transportation vehicle train.