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

v1.0.0 2021-01-18 08:44 UTC

This package is auto-updated.

Last update: 2025-12-22 00:28:43 UTC


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]);