Quantitative comparison of cities