The northern hill town, Shimla was ranked as the most liveable city in the country among cities having less than a million population.