[Talk-GB] Postcode finder updates - postal addresses, house maps and error maps

Andy Mabbett andy at pigsonthewing.org.uk
Sun Mar 20 23:42:25 GMT 2011


On 20 March 2011 21:55, Matt Williams <lists at milliams.com> wrote:
> On 20 March 2011 22:21, Andy Mabbett <andy at pigsonthewing.org.uk> wrote:
>> On 20 March 2011 15:06, Matt Williams <lists at milliams.com> wrote:
>>> I've made a few updates to the postcode finder
>>
>> All good stuff. Any chance of you applying the microformat mark-up I
>> supplied in the recent thread, please? Do let me know if it doesn't
>> suit all cases and I'll happily assist in finding a resolution.
>
> Still on my TODO list :)

Thank you.


> I did wonder what I should do when I have links 'in the way' of the
> text. For example I have HTML like:
>
> 8 <a href="http://www.openstreetmap.org/browse/way/38848696/">Frogmore
> Lane</a><br/>
> <a href="/PO8%209QQ/">PO8 9QQ</a>
>
> I guess for the postcode I just put the <span class="postal-code">
> between the <a></a> (or can I just put class="postal-code" on the <a>
> itself?).

The latter:

      <a href="/PO8%209QQ/" class="postal-code">PO8 9QQ</a>

> But for the "street-address" I would have to put the <span>
> around the whole first line, thereby encompassing the <a></a>.

No:

     <a href="http://www.openstreetmap.org/browse/way/38848696/"
       class="street-address">Frogmore Lane</a>

is fine.

> Geo is less of a problem but I don't really want the coordinates
> appearing on my page as text. Should I just mark these as hidden
> (seems acceptably hacky)?

You /can/ do that; but it's frowned upon; and I'm sure I'm not alone in
wanting to /see/ the coordinates. Perhaps you could put them inside
<small> tags and/ or a footnote?

-- 
Andy Mabbett
@pigsonthewing
http://pigsonthewing.org.uk



More information about the Talk-GB mailing list