What method of measuring the distance to a ship at sea from the shore did Thales come up with?

What method of measuring the distance to a ship at sea from the shore did Thales come up with? What optical device is currently being used for this purpose?

It is about building a triangle along a side and two corners adjacent to it, and then finding the height of this triangle. This is how an optical stereo tube works.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.