Difference between revisions of "adr-singular-properties"

From Microformats Wiki
Jump to navigation Jump to search
 
(→‎region: Example for multiple regions in a single address)
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
=== street-address ===
 
=== street-address ===
  
An address typically would only one have one street-address.
+
<pre><span class="street-address">Alexandra House</span>
 +
<span class="street-address">Oldham Terrace</span></pre>
 +
 
 +
Part of the NCT's address (http://nct.org.uk/home)
  
 
=== locality ===
 
=== locality ===
  
An address typically would only one have one locality.
+
"Suburb, City" pairings are a use case for multiple localities. While in many cases this can be accomplished using a single locality containing a comma, in some cases addresses are published containing other information ''between'' the two localities, such as the postcode in this address:
 +
 
 +
<pre><span class="locality">Coogee</span> <span class="postal-code">2034</span>
 +
<span class="locality">Sydney</span></pre>
 +
 
 +
http://www.coogeesands.com.au/contact-coogee-sands.aspx
  
 
=== region ===
 
=== region ===
  
An address typically would only one have one region.
+
"Near FOO" is commonly used in UK addresses for villages too small to be recognised without that designation by the Royal Mail. The "near FOO" label covers an area which is not a conurbation (i.e. an hCard "locality") so might more accurately be marked up as a region. Generally a county will be included in the address too, which should also be marked up as a region:
 +
 
 +
<pre>
 +
<div class="vcard">
 +
  <div class="adr">
 +
    <div class="extended-address fn org">Newick Park Hotel</div>
 +
    <span class="locality">Newick</span>,
 +
    <span class="region">Near Lewes</span>,
 +
    <span class="region">East Sussex</span>
 +
    <span class="postal-code">BN8 4SB</span>
 +
  </div>
 +
</div>
 +
</pre>
 +
 
 +
http://www.signpost.co.uk/london_and_south_england/newick-park-hotel-lewes-east-sussex.htm
  
 
=== postal-code ===
 
=== postal-code ===
Line 29: Line 51:
 
=== country-name ===
 
=== country-name ===
  
An address typically would only one have one country.
+
<pre><span class="country-name">Scotland</span>,
 +
<span class="country-name">UK</span>.</pre>
 +
 
 +
http://www.hw.ac.uk/home/

Latest revision as of 08:41, 6 May 2008

adr singular properties

This is an atttempt to determine the singular properties in adr.

post-office-box

An address typically would only one post office box. Mail could not be split between two boxes.

extended-address

This could in theory be plural, if there were things like suite number, building. etc.

street-address

<span class="street-address">Alexandra House</span>
<span class="street-address">Oldham Terrace</span>

Part of the NCT's address (http://nct.org.uk/home)

locality

"Suburb, City" pairings are a use case for multiple localities. While in many cases this can be accomplished using a single locality containing a comma, in some cases addresses are published containing other information between the two localities, such as the postcode in this address:

<span class="locality">Coogee</span> <span class="postal-code">2034</span>
<span class="locality">Sydney</span>

http://www.coogeesands.com.au/contact-coogee-sands.aspx

region

"Near FOO" is commonly used in UK addresses for villages too small to be recognised without that designation by the Royal Mail. The "near FOO" label covers an area which is not a conurbation (i.e. an hCard "locality") so might more accurately be marked up as a region. Generally a county will be included in the address too, which should also be marked up as a region:

<div class="vcard">
  <div class="adr">
    <div class="extended-address fn org">Newick Park Hotel</div>
    <span class="locality">Newick</span>,
    <span class="region">Near Lewes</span>,
    <span class="region">East Sussex</span>
    <span class="postal-code">BN8 4SB</span>
  </div>
</div>

http://www.signpost.co.uk/london_and_south_england/newick-park-hotel-lewes-east-sussex.htm

postal-code

An address typically would only one have one postal code.

country-name

<span class="country-name">Scotland</span>,
<span class="country-name">UK</span>.

http://www.hw.ac.uk/home/