public static float convertDistanceUnitIndexToFactor(int index) {
        switch (index) {
            case 0:
                return METERS;
            case 1:
                return FEET;
            case 2:
                return MILLIMETERS;
            case 3:
                return CENTIMETERS;
            case 4:
                return KILOMETERS;
            case 5:
                return MILES;
            case 6:
                return INCHES;
            default:
                return METERS;
        }
    }