Not Archimedes.It was Eratosthenes.
Eratosthenes (276?-196? BC), Greek mathematician, astronomer, geographer, and poet, who measured the circumference of the earth with extraordinary accuracy by determining astronomically the difference in latitude between the cities of Syene (now Aswan) and Alexandria, Egypt. He was born in Cyrene (now Sha‰‰at, Libya). Among his teachers was the Greek poet Callimachus. About 240 BC, Eratosthenes became the head of the library at Alexandria, Egypt. His calculation of the earth's circumference was only about 15 percent too large. Eratosthenes also measured the obliquity of the ecliptic with an error of only seven minutes of arc and created a catalog (now lost) of 675 fixed stars. His most important work was a systematic treatise on geography. After becoming blind, he died in Alexandria of voluntary starvation.



"Eratosthenes," Microsoft(R) Encarta(R) 98 Encyclopedia. (c) 1993-1997 Microsoft Corporation. All rights

He knew that the sun was directly overhead in Syene on a given day, knew the distance from Syene to Alexandria, and from there measured the angle of the sun. The distance was measured in stadia, and that value has been questioned.