The first traffic lights were installed in London.

J P Knight’s invention was located outside the Palace of Westminster. These original traffic lights used semaphore arms and were illuminated at night using red and green gas lamps.

Source