The astronomical unit is a unit of length defined as 149597870700 m. Historically, the astronomical unit was conceived as the average Earth-Sun distance, before its modern redefinition in 2012.
Transits of Venus across the face of the Sun were, for a long time, the best method of measuring the astronomical unit, despite the difficulties (here, the so-called "black drop effect") and the rarity of observations.