From the course: HTML5: Geolocation
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
How geolocation works - HTML Tutorial
From the course: HTML5: Geolocation
How geolocation works
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.