Iceland postal code database

From OpenStreetMap Wiki
Jump to: navigation, search

Íslandspóstur -- the operator of Iceland's postal system -- has granted permission to use their postal code records under terms compatible with the OpenStreetMap license (see [1]). The terms of use set no restrictions on the use of data although we're asked to keep the data in our database up to date so as to not cause any confusion, which is of course in our best interest as well as theirs.

The data files are available on the postur.is website, both in CSV and XML format.

Contents

Uses

Besides the obvious postal code uses this data has a complete listing of every street in Iceland which mail is delivered to, which along with the public domain listing of national highways allows us to compute our progress on pretty much anything navigatable by a motorcar in Iceland.

Data

Description of the XML data format, in particular translations of what the XML element names mean (they're in Icelandic). Both of the files offered are encoded in ISO-8859-1.

Póstnúmer - Postal codes

A complete listing of the postal codes in Iceland, data: http://www.postur.is/gogn/Gotuskra/postnumer.xml

<Postnumeraskra>                                                  <!-- Postal code record -->
  <Upplysingar>                                                   <!-- Metadata -->
    <Texti>Íslandspóstur Hf. - Póstnúmeraskrá</Texti>             <!-- Text describing the file -->
    <Url>http://www.postur.is/gogn/gotuskra/postnumer.xml</Url>   <!-- Url -->
    <Dags>22.01.2009</Dags>                                       <!-- Date (DD.MM.YYY) -->
    <Klukkan>07:00:57</Klukkan>                                   <!-- Time -->
    <Fjoldi_numera>148</Fjoldi_numera>                            <!-- Number of postal codes in the file -->
  </Upplysingar>

  <Postnumer>                                                     <!-- Postal code -->
    <Numer>101</Numer>                                            <!-- Number -->
    <Heiti>Reykjavík</Heiti>                                      <!-- Descriptive name of the place that uses the code, e.g. Town or City  -->
    <Heimili>Pósthússtræti 5</Heimili>                            <!-- "Home" probably the address of the designated post office for the postal code -->
  </Postnumer>

Götuskrá - Street record

A record of every street in Iceland which has mail delivered to it, and its postal code, data: http://www.postur.is/gogn/Gotuskra/gotuskra.xml

<Gotuskra>                                                       <!-- Street record -->
  <Upplysingar>                                                  <!-- Metadata -->
    <Texti>Íslandspóstur Hf. - Götuskrá</Texti>                  <!-- Text describing the file -->
    <Url>http://www.postur.is/gogn/gotuskra/gotuskra.xml</Url>   <!-- Url -->
    <Dags>22.01.2009</Dags>                                      <!-- Date (DD.MM.YYY) -->
    <Klukkan>07:01:03</Klukkan>                                  <!-- Time -->
    <Fjoldi_gatna>12432</Fjoldi_gatna>                           <!-- Number of streets in the file -->
  </Upplysingar>

  <Gata>                                                         <!-- Street -->
    <Id>199</Id>                                                 <!-- A unique identifier for this record, what we'll use to update the data -->
    <Pnr>104</Pnr>                                               <!-- Postal code for this street -->
    <Heiti_nf>Langholtsvegur</Heiti_nf>                          <!-- The nominative form of the street name -->
    <Heiti_thgf>Langholtsvegi</Heiti_thgf>                       <!-- The dative form of the street name -->
  </Gata>

Proposed tagging

Postal codes

Do we need to import this data directly at all? We could define areas which delimit the postal code but this would be extra work and would be implicit anyway since the streets that define the area have postal_code=* on them. The only thing we should need to tag is that a given amenity=post_office is the principle post office serving a given postal code.

Streets

We should import the dative form of the name from this dataset, this is very useful for search engines as users expect to be able to search for things like Langholtsvegi 25, Reykjavík.

Importing

A program will need to be written to import the data. Things to consider

Links

Personal tools
Namespaces
Variants
Actions
site
Toolbox