Where the figures come from and how they are calculated

Every figure on this website comes from the same public sources the game uses, with its date. They are here, with their licence and the attribution they ask for, and how each comparison is calculated.

Sources

Attribution

How it is calculated

  • Municipality: the codes of the INE population table that have inhabitants. A merger or a split changes the list.
  • Population: the municipal register on the date given. It is a single date: this website has no historical series.
  • Area: the area of the municipal territory on the GRS80 ellipsoid, calculated from the boundary lines of the IGN.
  • Density: inhabitants divided by square kilometres. That of a province or of Spain adds up its municipalities, without the territories that belong to none.
  • Rank: order by the figure, from highest to lowest. When two municipalities tie, the one with the lower INE code goes first.
  • Altitude: that of the capital of the municipality in the IGN population data (the most populated settlement if none is marked as capital). A few municipalities have no figure.
  • Neighbours: two municipalities are neighbours if they share at least 50 metres of boundary. Touching at a point does not count.
  • Distance and direction to a neighbour: between the representative points of each area, always inside it, along a great circle and in eight sectors.
  • Demonym: the one in Wikidata. Only municipalities for which Wikidata has it show one.

Which pages appear in search engines

For now, the pages of the 1200 most populated municipalities (from 5,761 inhabitants, up to rank 1200) are offered to search engines. The other 6932 exist and can be opened and linked, but ask not to appear in results while we check that the first ones are indexed well.

Version of the data

Municipality set 2026.27eccd085da8, updated on December 6, 2026.