The rankings are based on "positive-psychology research" and 29 key indicators of happiness. Cape Coral improved by one spot from last year.