请输入您要查询的百科知识:

 

词条 Geo (microformat)
释义

  1. Usage

  2. hCard

  3. Extensions

  4. Users

  5. See also

  6. Notes

  7. References

  8. External links

{{About||details of Geo used on Wikipedia|:Wikipedia:Microformats}}{{refimprove|date=August 2010}}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.[5]

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

  • Flickr - on over three million photo pages
  • Geograph - on over one million photo pages
  • Google[6]
  • Multimap - all map pages
  • MyMap - example:   (Taiwanese language site)
  • OpenStreetMap - wiki pages about places, GPS traces and diary entries
  • [https://web.archive.org/web/20080516074245/http://www.locify.com/ Locify] - location enhanced browsing on mobile phone
  • Wikipedia - embedded in geo templates of map-link pages
    • German Wikipedia - ditto
    • Dutch Wikipedia - ditto
    • Swedish Wikipedia - ditto
    • Italian Wikipedia
  • Wikivoyage

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

See also

  • GeoSPARQL, Geographic Information System (GIS) data for the W3C Semantic Web using the Resource Description Framework (RDF) and SPARQL
  • Geo URI specified in {{IETF RFC|5870}}
  • ISO 6709
  • ICBM address, an older geotagging format

Notes

1. ^{{cite web|url=http://microformats.org/wiki/geo|title=Geo Spec|publisher=microformats community|accessdate=17 August 2010}}
2. ^{{cite web|url=http://html5doctor.com/microformats/|title=Extending HTML5 — Microformats|work=HTML5 Doctor|accessdate=19 August 2010}}
3. ^{{cite web|url=http://microformats.org/wiki/hcalendar|title=hCalendar 1.0 Spec|publisher=Microformats community|accessdate=17 August 2010}}
4. ^{{cite web|url=http://microformats.org/wiki/hcard|title=hCard 1.0 Spec|publisher=Microformats Community|accessdate=17 August 2010}}
5. ^Must and should are used per the IETF document {{IETF RFC|2119}}
6. ^{{cite web |url=http://googlemapsapi.blogspot.com/2007/06/microformats-in-google-maps.html |title=Microformats in Google Maps |accessdate=30 April 2016}}

References

{{reflist}}

External links

  • Geo spec with notes and examples
  • Geo cheat-sheet a quick reference
{{DEFAULTSORT:Geo (Microformat)}}

2 : Microformats|Geocodes

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 12:09:02