This page is Ready to Use

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

Geolocation API

Summary

The geolocation API lets you share your location with trusted web sites. The latitude and longitude are available to JavaScript on the page, which in turn can send it back to the remote web server and do fancy location-aware things like finding local businesses or showing your location on a map.

Coordinates
The geographic coordinate reference system used by the attributes in this interface is the World Geodetic System (2d).
Geolocation
The Geolocation object is used by scripts to programmatically determine the location information associated with the hosting device. The location information is acquired by applying a user-agent specific algorithm, creating a Position object, and populating that object with appropriate data accordingly.
PositionError
The container for Position error information returned by this API.
PositionOptions
A native script object used by the getCurrentPosition() and watchPosition() methods.

Attributions