public static function getCoordinatesWithinRadius(array $coordinates, array $center, $radius): array
    {
        $resultArray = [];
        foreach ($coordinates as $key => $coordinate) {
            if (self::isCoordinatesInRadius($coordinate, $center, $radius)) {
                $resultArray[$key] = $coordinate;
            }
        }
        return $resultArray;
    }