Geo (microformat)

From Infogalactic: the planetary knowledge core
(Redirected from Geo microformat)
Jump to: navigation, search

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>


A Geo microformat, detected on the Wikipedia page for Great Barr, by Firefox's Operator extension. Users may add alternative mapping sources to those shown, which are included by default.

Geo is a microformat used for marking up WGS84 geographical coordinates (latitude;longitude) in (X)HTML.[1] Although termed a "draft" specification, this is a formality, and the format is stable and in widespread use;[2] not least as a sub-set of the published hCalendar[3] and hCard[4] microformat specifications, neither of which is still a draft.[3][4]

Use of Geo allows parsing tools (for example other websites, or Firefox's Operator extension) to extract the locations, and display them using some other website or mapping tool, or to load them into a GPS device, index or aggregate them, or convert them into an alternative format.

Usage

  • If latitude is present, so must be longitude, and vice versa.
  • The same number of decimal places should be used in each value, including trailing zeroes.[note 1]

The Geo microformat is applied using three HTML classes. For example, the marked-up text:

<div>Belvide: 52.686; -2.193</div>

becomes:

<div class="geo">Belvide: <span class="latitude">52.686</span>; <span class="longitude">-2.193</span></div>

by adding the class-attribute values "geo", "latitude" and "longitude".

This will display

Belvide: 52.686; -2.193

and a geo microformat for that location, Belvide Reservoir, which will be detected, on this page, by microformat parsing tools.

hCard

Each Geo microformat may be wrapped in an hCard microformat, allowing for the inclusion of personal, organisational or venue names, postal addresses, telephone contacts, URLs, pictures, etc.

Extensions

There are three active proposals, none mutually-exclusive, to extend the geo microformat:

  • geo-extension - for representing coordinates on other planets, moons etc., and with non-WGS84 schema
  • geo-elevation - for representing altitude
  • geo-waypoint - for representing routes and boundaries, using waypoints

Users

Organisations and websites using Geo include:

Many[which?] of the organisations publishing hCard include a geo as part of that.

See also

Notes

  1. Must and should are used per the IETF document RFC 2119

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. 3.0 3.1 Lua error in package.lua at line 80: module 'strict' not found.
  4. 4.0 4.1 Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.

External links