Geo (microformat)

1

Geo is a microformat used for marking up geographical coordinates (latitude and longitude) in HTML (or XHTML). 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; not least as a sub-set of the published hCalendar and hCard 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

The Geo microformat is applied using three HTML classes. For example, the marked-up text: becomes: 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:

Users

Organisations and websites using Geo include: Many of the organisations 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: by adding the class-attribute values "h-geo", "p-latitude", "p-longitude", and "p-altitude".

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article