Andrew of Caesarea
The city’s arrangement in the form of a quadrangle signifies its firmness and solidity. Equality of breadth, height, and length is called a cube, and, as they say, signifies firmness.
The twelve thousand stadia by which the city is measured may signify its greatness, for according to David, those who dwell in it will be more numerous than the sand (Ps 138:18). Or they may be counted according to the number of the twelve apostles, through whom that city is populated.
The sought-for meaning also appears when this number is divided by the mystical number seven. If twelve thousand stadia are divided by seven, the result is one thousand seven hundred fourteen measures, called miles.
One thousand signifies the perfection of endless life. Seven hundred signifies the perfection of rest. Fourteen signifies the double sabbath rest of soul and body, because fourteen contains twice seven.