Aiming at the problem that traditional positioning algorithm is difficult to be used in coal mine underground,the paper proposed a POCS distance measuring and positioning algorithm based on UWB technology,built model of the algorithm,and introduced principle of the algorithm and its(implementation) in details.The simulation result proved the feasibility of the algorithm used in coal mine underground.