I found many sites stating that the Sun's distance was mentioned accurately in the "Hanuman Chalisa" hymn written in the 16th century.
Even Wikipedia has a mention of this.
juga sahasra jojana para bhānū।
līlyo tāhi madhura phala jānū॥ 18 ॥
The Surya, sun situated {1Yug=12000 years, 1Sahastra=1000, 1Yojan=8 Miles, (Yug x Sahastra x Yojan) =12000x1000x8miles =96000000 miles (1mile =1.6kms) 96000000 miles =96000000x1.6kms= 153600000 kms} 153600000 kms from the earth, was swallowed by you after you assumed him to be a sweet fruit.[56]
The question is what is yug?
Does yug equal to 12000 years.
Why is years used in distance?