How are latitude and longitude calculated for the cities?

Latitude and longitude is based on the centroid (centermost) point in the polygon.