The first three digits of Portuguese landlines make up the area codes, which are distributed as seen on the map. Phone codes not starting with a 2 are not regional, and codes starting with 29 will either be the Azores or Madeira. For a complete list of the third digits, see this page.