ajarunthomas / haversine
calculate distance between 2 geolocations using haversine formula
Installs: 88
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ajarunthomas/haversine
Requires
- php: >=7.2.0
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]);