Join Bill Weinman for an in-depth discussion in this video How geolocation works, part of HTML5: Geolocation in Depth.
The HTML5 geolocation API is a set of DOM events that report the current…location to a web application.…The current location is expressed in terms of latitude and longitude coordinates…and is entirely dependent upon the capabilities of the user's device.…Geolocation data varies with regard to source, accuracy, and availability.…Some mobile devices may have GPS hardware; many do not.…Some data may be based on IP address; some may be based on Wi-Fi SSID; some may…be based on cell phone tower triangulation;…some data may be based on user-submitted or crowd-sourced locations.…
All of these data sources have availability, reliability, and accuracy issues…that vary by source implementation and even environmental conditions.…Most geolocation-enabled applications are designed to run on mobile devices.…This makes sense because devices that are not mobile may be easily set with a fixed location.…In mobile devices, geolocation hardware, especially GPS systems, use…significant amounts of power,…and mobile devices tend to be battery operated, and as such have…
- Understanding how geolocation works
- Detecting geolocation support
- Getting coordinates
- Continuous tracking with watchPosition()
- Integrating geolocation with Google Maps