Geo microformat

For details of Geo used on World Heritage Encyclopedia, see World Heritage Encyclopedia:Microformats.

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.


  • 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]

There are two ways to convert ordinary (X)HTML into a geo microformat:

Three classes

Adding three classes. For example the marked-up text:

Belvide: 52.686; -2.193


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.

One class

In some cases, a shorthand version may be used, with just the outer class. Latitude must be first:

Belvide Reservoir is at 52.686; -2.193.


Belvide Reservoir is at 52.686; -2.193.

Note that the separator must be a semi-colon (;). If the display of some other separator is desired, then the abbr element can be used, with the value to be interpreted placed in its title attribute:

Belvide Reservoir is at 52.686, -2.193.

This can also be used to display the location using some other schema:

Belvide Reservoir is at Grid reference SJ870099.

However, it is considered bad practice to use abbr to hide the location completely:

Belvide Reservoir is nice to visit.

Accessibility concerns

Concerns have been expressed [5] that the use of the abbr element (using the so-called abbr-design-pattern) in the above manner causes accessibility problems, not least for users of screen readers and aural browsers. Work is underway to find an alternative method of presenting coordinates.


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.


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


Organisations and websites using Geo include:

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

See also



External links

  • Geo spec with notes and examples
  • Geo cheat-sheet a quick reference
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.