Both visited the tunnels and construction site for the new Victoria line (at the time the first new line to be built in London since WWII). To equip them with the correct protective clothing, the London Transport Board had to know their shoe sizes, head sizes, and height!
More about the visit is in the Victoria Line story. More about the Duke of Edinburgh and his involvement with the organisation is in the HRH Duke of Edinburgh story.