Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a source (free or paid) for polygons of border coordinates for spanish postcodes? Google show this borders in google maps, but doesn't provide them.

share|improve this question
I would look at the spanish national survey / statistical authority of spain / institute for geodesy/ ..., but I am not familiar with the spanish government structure. – til_b Apr 4 '13 at 11:18
Thank you for the suggestion til_b, but I did search in the INE (National Institute for Statistics) and IGN (National Institute for Geography) websites and didn't find this information. – jmm Apr 5 '13 at 8:18
found a wms; see the answer below – til_b Apr 5 '13 at 12:39
up vote 2 down vote accepted

For paid for postal codes for Spain (mapa código postal España)

Spain and Andorra (mapa código postal España) GfK GeoMarketing offers up-to-date postcode / postal (mapa código postal), administrative (Municipios, Comunidades Autonomas) and topographic digital maps of Spain for use in geographic information systems (GIS) and mapping software.

enter image description here

Available as:

digital postcode maps for GIS

2-digit postcode areas
5-digit postcode areas

Declaimer: Have in the past used gfk-geomarketing data sets they are good quality but am not associated in anyway with the company.

share|improve this answer

The WMS at provides a layer called "CodigoPostal", which seems to contain postcodes. As far as i can see the layer is queryable.

I found this WMS by searching with google for "código postal España inurl:wms".

I don't know enough spanish to decide whether this service is free/legal/illegal to use.

The capabilities state

<Fees>no conditions apply</Fees>
<AccessConstraints>OtherConstraints. Se permite cualquier uso si se menciona la autoría del IGN del siguiente modo: «© Instituto Geográfico Nacional de España»</AccessConstraints>
share|improve this answer
Thank you, til_b, I'm very busy right now with other project issues, but I'll have a look as soon as posible. – jmm Apr 8 '13 at 13:35
"AccessContraints" means "All uses allowed if authoring by IGN is mentioned as <<© Instituto Geográfico Nacional de España>>" – jmm Apr 8 '13 at 13:37

You can prove

Geo-referenced maps of the Spanish provinces with 5-digits postalcode areas. Shapefiles and KML. The Shapefile format are associated with their database and ready to incorporate your own data and overlay on SIG applications (Geographic Information Systems). KML is a file format used to display geographic data in an Earth browser such as Google Earth, Google Maps, and Google Maps for mobile.

share|improve this answer

Check out also this postal code search engine for Spain. I don't know if this is what you need, but this site crosses postal code data with Google Maps, so it must provide the coordinates to generate the maps.

share|improve this answer
I've also found this other resource from the Madrid city hall: You can download a vectorial map of the city with, among other things, the postal codes of the city. Only for Madrid, though. – Alonso V Aug 31 '14 at 23:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.