src/Coordinate.php
public function getDistance(Coordinate $coordinate, DistanceInterface $calculator): float
    {
        return $calculator->getDistance($this, $coordinate);
    }
public function getDistance(Coordinate $coordinate, DistanceInterface $calculator): float
    {
        return $calculator->getDistance($this, $coordinate);
    }
Calculates the distance between the given coordinate
and this coordinate.

@param Coordinate $coordinate
@param DistanceInterface $calculator instance of distance calculation class

@return float