A method for safe positioning, comprising: determining three neighbor awareness network, NAN, devices at a road junction, and establishing a NAN among an electronic device and the three NAN devices, wherein each of the three NAN devices in the NAN locates at a fixed position; obtaining positions of the electronic device and positions of a vehicle in a same plane coordinate map, wherein the electronic device and the vehicle are positioned by the three NAN devices, and determining whether the vehicle is approaching the electronic device according to positional changes of the electronic device and the vehicle; and determining a current distance between the electronic device and the vehicle according to the positions of the electronic device and the positions of the vehicle based on a determination that the vehicle is approaching the electronic device, and outputting reminding information in response to that the current distance is smaller than a preset threshold, wherein the reminding information is used for reminding a holder of the electronic device to avoid the vehicle, wherein the method further comprises: prior to outputting the reminding information, conducting physical fitness test for the holder of the electronic device; and providing the holder of the electronic device with a customized avoidance suggestion according to results of the physical fitness test, wherein for different holders of the electronic device, different avoidance suggestions are provided. determining three neighbor awareness network, NAN, devices at a road junction, and establishing a NAN among an electronic device and the three NAN devices, wherein each of the three NAN devices in the NAN locates at a fixed position; obtaining positions of the electronic device and positions of a vehicle in a same plane coordinate map, wherein the electronic device and the vehicle are positioned by the three NAN devices, and determining whether the vehicle is approaching the electronic device according to positional changes of the electronic device and the vehicle; and determining a current distance between the electronic device and the vehicle according to the positions of the electronic device and the positions of the vehicle based on a determination that the vehicle is approaching the electronic device, and outputting reminding information in response to that the current distance is smaller than a preset threshold, wherein the reminding information is used for reminding a holder of the electronic device to avoid the vehicle, wherein the method further comprises: prior to outputting the reminding information, conducting physical fitness test for the holder of the electronic device; and providing the holder of the electronic device with a customized avoidance suggestion according to results of the physical fitness test, wherein for different holders of the electronic device, different avoidance suggestions are provided. conducting physical fitness test for the holder of the electronic device; and providing the holder of the electronic device with a customized avoidance suggestion according to results of the physical fitness test, wherein for different holders of the electronic device, different avoidance suggestions are provided. <EOS>