geo (microformat)

{{Short description|Microformat to create metadata for location properties}}

{{About||details of Geo used on Wikipedia|:Wikipedia:Microformats}}

{{refimprove|date=August 2010}}

Image:GeoGreatBarr.png, 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 geographical coordinates (latitude and longitude) in HTML (or XHTML).{{cite web|url=http://microformats.org/wiki/geo|title=Geo Spec|publisher=microformats community|access-date=17 August 2010}} Coordinates are expected in angular units of degrees and geodetic datum WGS84. Although termed a "draft" specification, the format is a de facto standard, stable and in widespread use;{{cite web|url=http://html5doctor.com/microformats/|title=Extending HTML5 — Microformats|work=HTML5 Doctor|access-date=19 August 2010}} not least as a sub-set of the published hCalendar{{cite web|url=http://microformats.org/wiki/hcalendar|title=hCalendar 1.0 Spec|publisher=Microformats community|access-date=17 August 2010}} and hCard{{cite web|url=http://microformats.org/wiki/hcard|title=hCard 1.0 Spec|publisher=Microformats Community|access-date=17 August 2010}} microformat specifications, neither of which is still a draft.

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 web 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.Must and should are used per the IETF document {{IETF RFC|2119}}

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

Belvide: 52.686; -2.193

becomes:

Belvide: 52.686; -2.193

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 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:

Multiple organisations {{which|date=August 2010}} publishing hCard include a geo as part of that.

h-geo

An alternative to Geo, h-geo, has been proposed. This is applied using three HTML classes. For example:

Belvide: 52.686; -2.193; 120

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

See also

Notes

{{reflist|group="note"}}

References

{{reflist}}

{{DEFAULTSORT:Geo (Microformat)}}

Category:Microformats

Category:Geocodes