Geo (microformat)

from Wikipedia, the free encyclopedia
A geo-microformat discovered by the Firefox operator extension on the Great Barr Wikipedia page.

Geo is a microformat for specifying geographic coordinates ( degrees of longitude , degrees of latitude ) in (X) HTML conforming to WGS84 . Although it is labeled as a "design specification," which is a formality, Geo is already considered stable and used in various areas. Last but not least, it is contained as a subset in the micro-formats hCalendar and hCard and neither of the two is still a draft.

The use of geo allows parsers such as E.g. other websites or the Operator extension for Firefox to extract the location and view it using other websites or map tools, or load it into a GPS enabled device, index it, merge it or convert it to another format.

use

  • If the latitude is there, then it must be the longitude and vice versa.
  • The same number of decimal places should be used in every value, even if there are zeros at the end.

There are two ways to convert normal (X) HTML to geo-microformat:

Three classes

Adding three classes. For example, the highlighted text becomes:

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

to:

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

by setting the class attributes "geo", "latitude" and "longitude".

That shows in the end

Belvide: 52,686 ; -2,193

and a geo-microformat for the Belvide Reservoir, which will be recognized on the page as soon as a microformat parser visits it.

Accessibility problems

Concerns have been expressed that the use of the  abbrelement (using the so-called abbr-design-pattern) in the above-mentioned manner will cause accessibility problems, not only for users of screen readers and browsers with a read-aloud function. Work is underway to find an alternative method of representing the coordinates.

hCard

Each geo-microformat can be integrated into an hCard microformat, whereby personal, organizational or local names, addresses, telephone numbers, URLs, images etc. can also be included.

Extensions

There are three active, not mutually exclusive, projects to expand the geo-microformat:

  • geo-extension - for displaying coordinates on other planets, moons etc. and not in conformity with WGS84
  • geo-elevation - to display the height
  • geo-waypoint - for displaying routes and boundaries using waypoints

distribution

Organizations and websites that use Geo include:

Many of the organizations that publish hCards use Geo as part of these hCards.

See also

Remarks

  1. Must and should are mentioned in the Internet Engineering Task Force document - RFC 2119 . - Key words for use in RFCs to Indicate Requirement Levels . [Errata: RFC 2119 ]. March 1997. (English).

Web links

  • Geo spec with notes and examples
  • Geo cheat-sheet - a quick reference
  • A. Mayrhofer, C. Spanring:  RFC 5870 . - A Uniform Resource Identifier for Geographic Locations ('geo' URI) . June 2010. (Specification - English).

Individual evidence

  1. Geo Spec . microformats community. Retrieved August 17, 2010.
  2. Extending HTML5 - Microformats . In: HTML5 Doctor . Retrieved August 19, 2010.
  3. a b hCalendar 1.0 Spec . Microformats community. Retrieved August 17, 2010.
  4. a b hCard 1.0 Spec . Microformats Community. Retrieved August 17, 2010.
  5. Web Standards Project, hAccessibility: Abbreviations in Microformats
  6. geo-extension
  7. geo-elevation
  8. geo-waypoint
  9. Microformats in Google Maps . Retrieved August 25, 2010.
  10. Locify ( Memento of the original from May 16, 2008 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice. @1@ 2Template: Webachiv / IABot / www.locify.com