Also, the present invention provides the surveying instrument as described above, wherein distance measurement is performed after it is judged whether an edge is present or not within the spreading range, and in case it is judged that there is an edge within the spreading range, the control unit stops distance measuring operation.