Google recently released geolocation api, it is with reference an extension of google gears. This API is intend for Web applications. This api estimate best estimate of user positions either by using number of sources called Location providers. The location providers may either be on board GPS or a server based(network location provider).
We don’t worry about permission, that someone track you. The location access will ask for user permission through a dailog. There are mainly three functions which are useful in determining the location, getCurrentPosition,