Only one San Diego County city -- Poway -- made the list of the top 20 best California municipalities in which to raise a family, as rated by WalletHub.com Tuesday.

Based on categories like "Family Life and Fun," "Education, Health and Safety," "Affordability" and "Socioeconomic Environment," Poway came in 17th out of 240 cities.

The North County inland city ranked 11th in the state in the Education, Health and Safety category, but just 160th for Family Life and Fun, according to WalletHub.

Other area cities in the rankings were Encinitas, 23rd; Carlsbad, 45th; Santee, 47th; San Diego, 89th; Chula Vista, 94th; San Marcos, 111th; Oceanside, 143rd; La Mesa, 145th; Vista, 168th; Escondido, 172nd; El Cajon, 211th; and National City, 229th.

Among other things, Family Life and Fun included the number of attractions, in which San Diego tied for first, and number of playgrounds per capita, in which Escondido had the fifth fewest.

Education, Health and Safety involved school quality, high school graduation rates, air quality and per-capita crime.

Affordability compared median family income to housing prices and cost-of-living.

Some of the socioeconomic Environment statistics were divorce rates, percentage of families living below the poverty line and the unemployment rate.