Home > php教程 > PHP源码 > body text

根据经纬度计算两地距离

PHP中文网
Release: 2016-05-25 16:58:27
Original
1135 people have browsed it

跳至

 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);
?>
Copy after login


source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!