Two-digit postcode locations The main two digits of a Spanish postal code discover the province or autonomous town it belongs to. The numbers had been assigned into the fifty provinces of Spain purchased alphabetically at the time of implementation.[one] The official names of a number of the provinces have because modified, both for the regional la