hPlace

Jump to: navigation, search

This document represents a draft microformat specification. Although drafts are somewhat mature in the development process, the stability of this document cannot be guaranteed, and implementers should be prepared to keep abreast of future developments and changes. Watch this wiki page, or follow discussions on the #microformats Freenode IRC channel to stay up-to-date.

Contents

Draft Specification 2012-03-30

Editor/Author
Flávio Oliveira

Copyright

Per the public domain release on Flávio Oliveira, this specification is released into the public domain.

Format


Field and Element Details

hPlace


name


summary


coord


address


type


photo


url


events


Examples

Simple Place Definition

 <div class="hplace">
    <div class="name">Castle of Mourão</div>
    <div class="summary">Here goes the place / monument description</div>
    <div class="coord geo"> GPS:<span class="latitude">38.384917</span>, <span class="longitude"> -7.345863</span></div>
    <a href="[your url]" class="url">Find More here</a>
    <a href="[your url]" rel="tag">Monuments</div>
 </div>


Nested Place Definition

 <div class="hplace">
    <div class="name">Castle of Mourão</div>
    <div class="coord geo"> GPS:<span class="latitude">38.384917</span>, <span class="longitude"> -7.345863</span></div>
    <div class="hplace">
        <div class="name">Main entrance</div>
        <div class="coord geo"> GPS:
            <span class="latitude">38.384917</span>,
            <span class="longitude"> -7.345863</span>
        </div>
    </div>
    <div class="hplace">
        <div class="name">Tower of Oliveirinha</div>
        <div class="coord geo"> GPS:
            <span class="latitude">38.384862</span>,
            <span class="longitude">-7.346662</span>
        </div>
    </div>
    <div class="hplace">
        <div class="name">Castle Church entrance</div>
        <div class="coord geo"> GPS:
            <span class="latitude">38.384597</span>,
            <span class="longitude">-7.346469</span>
        </div>
    </div>    
 </div>


Simple Place Definition with events

 <div class="hplace">
    <div class="name">Castle of Mourão</div>
    <div class="summary">Here goes the place / monument description</div>
    <div class="coord geo"> GPS:<span class="latitude">38.384917</span>, <span class="longitude"> -7.345863</span></div>
    <div class="events">
        <h3>Next available events</h3>
        <div class="vevent">
            <a href="[your url]" class="url uid summary">Bye bye summer 2012</a>
            <abbr class="dtstart" title="2012-08-30">August 30</abbr>
        </div>
        <div class="vevent">
            <a href="[your url]" class="url uid summary">Young week</a>
            <abbr class="dtstart" title="2012-08-25">August 30</abbr>
        </div>
        <div class="vevent">
            <a href="[your url]" class="url uid summary">Na. Sra. of Candeias</a>
            <abbr class="dtstart" title="2012-02-02">Feberuary 2nd</abbr>
        </div>
    </div>
 </div>
hPlace was last modified: Friday, March 30th, 2012

Views