Jump to content

W3C Geolocation API

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Amascherpa (talk | contribs) at 08:59, 7 July 2009 (Created page with '== Introduction == The Geolocation API is a standard that provides scripted access to geographical location information associated with the hosting device, and it...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Introduction

The Geolocation API is a standard that provides scripted access to geographical location information associated with the hosting device, and it’s being defined by the W3C[1]. It defines a set of objects than execute in the client aplication The API itself is agnostic of the underlying location information sources. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input. The location is returned with a given acurancy dependin on the location information source.

Basic Use

Example

Deployment in Web Browsers

W3C Geolocation API implementation can be used in web browsers in two ways: directly, if the web browser implements it, case of Firefox 3.5, or through Google Gears. In the last case the web aplication must initialiced Gears by adding the following line:

References

  1. ^ "W3C Geolocation API Specification", Editor: Andrei Popescu from Google Inc. , 22 December 2008. Retrieved 07 July 2009