Analyze function for different cities