NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum


im trying to add all postal codes of spain from a KML file. Every postcode is a placemark with name, coordinates and a postcode, there is an example of an addres.

< Placemark>
   < styleUrl>#default< /styleUrl>
   < name>< ![CDATA[PostCode]]>< /name>
   < Point>
      < coordinates>-3.6666,40.4291< /coordinates>
   < /Point>
< /Placemark>

(apologize about extra space at the beginning of each tag, is just for showing it)

My problem is that i cant find the tag for postcode or address, i made some test with < address>, < postcode> or < addr:postcode>(this tag is the same used in Potlatch 2) but never appear when i load the file with Potlatch.

what tag should i use to add this field?

asked 27 May '13, 12:24

dremel's gravatar image

accept rate: 0%

Please explain what you want to do. Do you want to add postal codes to OpenStreetMap? In that case, please be aware that such data imports have to abide by certain rules - most importantly, you have to make sure that the data is legally usable for OSM, and you have to discuss your plans beforehand. Type "import" in the search box above and read some of the answers.

Also, the data you seem to have is point coordinates, whereas OSM usually records post code areas (i.e. polygons).

permanent link

answered 27 May '13, 13:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Firstly you don't state the source of your data. It is important that external data loaded into OSM is both compatible with the OdBL licence (sorry for tautology) and that the import itself is carried out according to the established guidelines.

Secondly, centroids for postal areas are not a useful object to map in OSM. They are not capable of being verified on the ground, and are much more useful when attached to other objects. For instance in Britain it is usually necessary to attach postal codes to individual buildings because of the granularity of the data. (In some cases all buildings on a road share a postcode so the street can also be tagged with addr:postcode). In many european countries most postcodes will be closely associated with communes, and thus can be added to a place=* tag. Making the centroids available outside OSM will meet 99.9999% of use cases which might be envisaged for holding this data in OSM.

Lastly, Potlatch is designed to discourage uploading of data. Things like KML and GPS traces are incorporated to assist a manual editing process, and as such no tag or other information is directly available in the editor.

It is possible to import this kind of data into OSM, but first it is important to check that you have fully covered my first two points. Importing data also requires a good degree of familiarity with OSM tools: the first requirement of performing an import is that the importer is capable of reverting it without damaging other contributions.

permanent link

answered 27 May '13, 13:12

SK53's gravatar image

SK53 ♦
accept rate: 22%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 27 May '13, 12:24

question was seen: 7,146 times

last updated: 27 May '13, 13:12

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum