Home  >  Article  >  php教程  >  根据经纬度计算两地距离

根据经纬度计算两地距离

PHP中文网
PHP中文网Original
2016-05-25 16:58:271174browse

跳至

 39.92, 
    'long' => 116.46 
);
$point2 = array( 
    'lat' => 24.51, 
    'long' => 117.658 
);
$distance = getDistanceBetweenPointsNew($point1['lat'], $point1['long'], $point2['lat'], $point2['long']);
print_r($distance);
?>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn