When the live working is carried out in the distribution network, the zero-potential charging operation is often used. The safety of zero-potential live working is closely related to the measurement distance error. The influence of the measurement error of the zero-potential live working point on the operating phase voltage needs to be studied. Based on the Floyd algorithm, a method for calculating the shortest electrical distance from the operating point to the substation is proposed. The sub-station is centered on the branch nodes of the line to form the distance matrix, and the Floyd algorithm is used to calculate the shortest electrical distance from the working point to the substation. The working phase injection voltage is further calculated based on the zero phase potential characteristics of the operating phase. Finally, based on the PSCAD, the system model is established. The simulation concludes that the distance between the substation and the working point is less than 20m, and the operating point voltage can still be below the safe voltage.