Skip to content
MousePak edited this page May 3, 2012 · 1 revision

coords > city ID

When city coordinates are X:Y, then the city ID is calculated as such:

City ID = Y * 65536 + X

Example: Coordinates are 111:222 then city ID is:

   222*65536 + 111 = 14548992 + 111 = 14549103

city ID > coords

X = City ID % 65536 (Modulo) Y = (City ID - X) / 65536

Example: City Id is 3276950 then coordinates are:

   X = 3276950 % 65536 = 150
   Y = (3276950 - 150) / 65536 = 50
   [150:50]

Clone this wiki locally