Visit Mozilla.org

The geo microformat

From MDC

This article covers features introduced in Firefox 3

The geo microformat represents a physical location on the planet Earth using latitude and longitude coordinates.

Contents

[edit] Properties

Property Description
latitude The latitude of the geographic location, represented as a floating-point number.
longitude The longitude of the geographic location, represented as a floating-point number.

[edit] Methods

There is one method you can call on the geo microformat.

[edit] toString()

Returns the location as a string.

geoString = geo.toString();
[edit] Parameters

None.

[edit] Return value

The location as a single string.

This uses different formats depending on the type of parent node the geo is included in. Need to figure out what those formats are and why it's done that way.

[edit] See also