Changes between Initial Version and Version 1 of Presets/UnitedKingdomAddresses


Ignore:
Timestamp:
2024-06-19T01:38:31+02:00 (2 years ago)
Author:
achadwick
Comment:

New preset, following discussion on the community forum

Legend:

Unmodified
Added
Removed
Modified
  • Presets/UnitedKingdomAddresses

    v1 v1  
     1== United Kingdom addresses preset ==
     2
     3These presets allow convenient use of the UK-specific addressing tags described in https://wiki.openstreetmap.org/wiki/Addresses_in_the_United_Kingdom
     4
     5The icons are my own work, and are hereby released into the public domain. As the icons are 16x16 low-detail representations of well-known and commonly available items used on paper envelopes, no infringement upon the trade marks or copyrights of The Royal Mail Group Limited or its subsidiaries is intended or could reasonably be inferred from their use in map editing software or otherwise. No sponsorship or endorsement is implied, or would be accepted.
     6
     7=== Usage ===
     8
     9The main `UK Address` preset coverts all the accepted tags for tagging. There's a second preset that can be use for migrated tags that are deprecated in the UK to better accepted alternatives in the UK schema.
     10
     11=== The preset itself ===
     12
     13{{{
     14#!preset
     15<?xml version="1.0" encoding="UTF-8"?>
     16<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
     17  author="achadwick"
     18  description="United Kingdom addresses"
     19  shortdescription="UK Addresses"
     20  version="1.[[revision]]_[[date]]"
     21  >
     22<group name="Annotation">
     23
     24    <!-- UK address -->
     25    <item name="UK Address"
     26      preset_name_label="true"
     27      icon="stamp1-16.svg"
     28      icon_size="48"
     29      type="node,way,closedway,multipolygon"
     30    >
     31
     32    <link href="https://wiki.openstreetmap.org/wiki/Addresses_in_the_United_Kingdom"/>
     33
     34    <optional text="Premises">
     35      <!-- Sub-building name -->
     36      <text key="addr:unit"
     37        text="Single Unit (&quot;Flat 1&quot;, &quot;Unit B&quot;, &quot;17&quot;)"
     38        match="key"
     39      />
     40      <text key="addr:flats"
     41        text="Multiple Units (e.g. &quot;3-7;10;14;16-18&quot;)"
     42        match="key"
     43      />
     44
     45      <!-- Building name/number -->
     46      <text key="addr:housename"
     47        text="Building Name"
     48        match="key"
     49      />
     50      <text key="addr:housenumber"
     51        auto_increment="-2,-1,+1,+2"
     52        text="Building Number"
     53        match="key"
     54      />
     55    </optional>
     56
     57    <optional text="Thoroughfare. Street-based if possible, non-street-based if needed.">
     58
     59      <text key="addr:substreet"
     60        use_last_as_default="true"
     61        text="Non-Street grouping"
     62        match="key"
     63      />
     64      <text key="addr:street"
     65        use_last_as_default="true"
     66        text="Street (closest)"
     67        match="key"
     68      />
     69      <text key="addr:parentstreet"
     70        use_last_as_default="true"
     71        text="Street (parent, if needed)"
     72        match="key"
     73      />
     74    </optional>
     75
     76      <optional text="Locality. Subareas include hamlets/villages/towns/suburbs. One intermediate max.">
     77        <text key="addr:suburb"
     78          use_last_as_default="true"
     79          text="Optional: Subarea (of Post Town)"
     80          match="key"
     81        />
     82        <text key="addr:hamlet"
     83          use_last_as_default="true"
     84          text="Rare: Intermediate (if hamlet)"
     85          match="key"/>
     86        <text key="addr:village"
     87          use_last_as_default="true"
     88          text="Rare: Intermediate (if village)"
     89          match="key"
     90        />
     91        <text key="addr:town"
     92          use_last_as_default="true"
     93          text="Rare: Intermediate (if town)"
     94          match="key"
     95        />
     96        <text key="addr:city"
     97          use_last_as_default="true"
     98          text="Required: Post Town (or city)"
     99          match="key"
     100        />
     101        <space />
     102        <text key="addr:postcode"
     103          use_last_as_default="true"
     104          text="Postcode"
     105          match="key"
     106        />
     107      </optional>
     108    </item>
     109
     110
     111    <!-- Addresses with tags that are deprecated in the UK -->
     112
     113    <item
     114      name="UK Address: Deprecated Tags"
     115      preset_name_label="true"
     116      icon="stamp2-16.svg"
     117      icon_size="48"
     118      type="node,way,closedway,multipolygon">
     119
     120      <link href="https://wiki.openstreetmap.org/wiki/Addresses_in_the_United_Kingdom#Tags_to_avoid"/>
     121
     122      <optional text="Avoid: too vague, or they duplicate approved tags">
     123        <text key="addr:terrace"
     124          text="Terrace [1]"
     125          match="key"
     126        />
     127        <text
     128          key="addr:place"
     129          text="Place [1, 2]"
     130          match="key"
     131        />
     132        <text
     133          key="addr:locality"
     134          text="Locality [2]"
     135          match="key"
     136        />
     137        <text
     138          key="addr:site"
     139          text="Site [1]"
     140          match="key"
     141        />
     142      </optional>
     143
     144      <optional text="Avoid: the UK doesn't have these administrative area types">
     145        <text key="addr:subdistrict"
     146          text="Sub-district [2]"
     147          match="key"
     148        />
     149        <text key="addr:province"
     150          text="Province"
     151          match="key"
     152        />
     153        <text key="addr:state"
     154          text="State"
     155          match="key"
     156        />
     157      </optional>
     158
     159      <optional text="Not needed: OSM admin boundaries are sufficient">
     160        <text key="addr:district"
     161          text="Local Authority"
     162          match="key"
     163        />
     164        <text key="addr:county"
     165          text="County"
     166          match="key"
     167        />
     168        <text key="addr:country"
     169          text="Country"
     170          match="key"
     171        />
     172      </optional>
     173
     174      <!--
     175        Make it easier to replace deprecated tags with accepted ones
     176        by putting the most common accpeted alternatives here.
     177      -->
     178
     179      <optional text="Hint: consider replacing [1]s and [2]s above with…">
     180
     181        <text key="addr:substreet"
     182          use_last_as_default="true"
     183          text="[1] Non-Street grouping"
     184          match="none"
     185        />
     186
     187        <text key="addr:suburb"
     188          use_last_as_default="true"
     189          text="[2] Subarea of Post Town"
     190          match="none"
     191        />
     192
     193        <space />
     194
     195        <preset_link
     196          preset_name="UK Address"
     197          text="Or use one of the accepted tags from the full list:"
     198        />
     199      </optional>
     200
     201    </item>
     202
     203  </group>
     204</presets>
     205}}}