Difference between revisions of "geo-cheatsheet"

From Microformats Wiki
Jump to navigation Jump to search
(updated the ABBR geo optimization)
Line 11: Line 11:
 
==Notes==
 
==Notes==
 
*If latitude is present, so MUST be longitude, and vice versa.
 
*If latitude is present, so MUST be longitude, and vice versa.
*The secondary classes can be omitted, the two values MUST be separated by a semicolon and latitude MUST be first. This is used with the ABBR design pattern and the title attribute:<code><nowiki><abbr class=geo" title="37.386013;-122.082932">Human Readable Text</abbr></nowiki></code>
+
*The secondary classes can be omitted, the two values MUST be separated by a semicolon and latitude MUST be first. This is used with the ABBR design pattern and the title attribute:<code><nowiki><abbr class="geo" title="37.386013;-122.082932">Human Readable Text</abbr></nowiki></code>
 
*The same number of decimal places SHOULD be used in each value.
 
*The same number of decimal places SHOULD be used in each value.
 
*Coordinates use the datum of [http://en.wikipedia.org/wiki/World_Geodetic_System WGS84].
 
*Coordinates use the datum of [http://en.wikipedia.org/wiki/World_Geodetic_System WGS84].

Revision as of 18:18, 1 February 2007

geo cheatsheet

Properties (Class Names)

  • Geo {1}
    • latitude?
    • longitude?

Key

Based on Perl's standard quantifiers:

bold {1} MUST be present exactly once
italic* OPTIONAL, and MAY occur more than once
+ MUST be present, and MAY occur more than once
? OPTIONAL, but MUST NOT occur more than once
[square brackets] list of common values
(parentheses) data format
# comment
! awaiting documentation

Notes

  • If latitude is present, so MUST be longitude, and vice versa.
  • The secondary classes can be omitted, the two values MUST be separated by a semicolon and latitude MUST be first. This is used with the ABBR design pattern and the title attribute:<abbr class="geo" title="37.386013;-122.082932">Human Readable Text</abbr>
  • The same number of decimal places SHOULD be used in each value.
  • Coordinates use the datum of WGS84.
  • Sources for latitude/ longitude coordinates

Related pages