Created
June 1, 2016 15:41
-
-
Save mjaschen/4305ab1251615660328d6d714d01e7f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . "/vendor/autoload.php"; | |
use Location\Coordinate; | |
use Location\Distance\Vincenty; | |
$coordinate1 = new Coordinate(19.820664, -155.468066); // Mauna Kea Summit | |
$coordinate2 = new Coordinate(20.709722, -156.253333); // Haleakala Summit | |
$calculator = new Vincenty(); | |
echo $calculator->getDistance($coordinate1, $coordinate2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment