ajarunthomas/haversine
Composer 安装命令:
composer require ajarunthomas/haversine
包简介
calculate distance between 2 geolocations using haversine formula
README 文档
README
A Simple Facade for Laravel that calculates the Distance between 2 geo locations defined by latitude and longitude details using the Haversine Formula.
Instructions
Installation using composer
composer require ajarunthomas/haversine
Include the Facade
use Ajarunthomas\Facades\Haversine;
Optionally include the Facade in the aliases section of the app.php config file
'Haversine' => Ajarunthomas\Facades\Haversine::class,
Calculate the distance between 2 cordinates
$distance = Haversine::distance([24.885368,55.120223],[25.223954,55.274097]);
统计信息
- 总下载量: 88
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-18