vesic / distance-between
There is no license information available for the latest version (0.0.3) of this package.
Simple function to return distance between two or possibly one and more distances on the globe.
0.0.3
2017-05-17 08:44 UTC
Requires
- phpunit/phpunit: ^6.1
This package is not auto-updated.
Last update: 2025-06-08 05:16:41 UTC
README
Installation
composer require vesic/distance-between
Usage
require __DIR__ . '/vendor/autoload.php';
use Vesic\DistanceBetween\Distance;
use Vesic\DistanceBetween\Geocoding;
$distance = new Distance(new Geocoding);
$distance->addPlace('place|address');
$distance->addPlace('place|address');
var_dump($distance->getDifference()); // output in KM