code: public function getDistance(Coordinate $coordinate, DistanceInterface $calculator): float
      {
          return $calculator->getDistance($this, $coordinate);
      }
docs: Calculates the distance between the given coordinate
  and this coordinate.
  
  @param Coordinate $coordinate
  @param DistanceInterface $calculator instance of distance calculation class
  
  @return float