In 1663 Scottish mathematician James Gregory had suggested in his Optica Promota that observations of a transit of the planet Mercury, at widely spaced points on the surface of the Earth, could be used to calculate the solar parallax and hence the astronomical unit using triangulation. Aware of this, a young Edmond Halley made observations of such a transit on 28 October O.S. 1677
https://en.wikipedia.org/wiki/Transit_of_Venus#1761_and_1769
We're currently in the Mayan Dark Ages in that sense, there's stuff they had we still can't do. They were a millennium ahead of Eurasian math, finding zero in 200BC versus 800AD.
I'm skeptical, how would we know that? Are there vague inscriptions of things like Fermat's margin notes that imply missing knowledge?
Indeed, were there any premodern civilisations with a sufficient span of latitudes to perform this method? If there were, they'd have also been able to measure the distance to the Sun using the method of observing transits of Venus.