W3C Geolocation API
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
- ^ "W3C Geolocation API Specification", Editor: Andrei Popescu from Google Inc. , 22 December 2008. Retrieved 07 July 2009