Al-Biruni devised a more sophisticated and reliable method to achieve this objective.
To carry out his method Biruni only needed three things.
An astrolabe.
A suitable mountain with a flat horizon in front of it so that angle of depression of horizon could be accurately measured.
Knowledge of trigonometry.