两点距离 // 两经纬度距离(单位:) double from_x , from_y ; double to_x , to_x ; double pc_distance = std::sqrt(std::pow(to_x - from_x, 2) + std::pow(to_y - from_y, 2));