Join Bill Weinman for an in-depth discussion in this video Exploring a sample geolocation application, part of HTML5: Geolocation in Depth.
This is a simple application that just acquires and updates a location on the…screen, and we're going to use this to just kind of take a little tour of the…capabilities of the HTML5 geolocation API.…So you can find this in Chapter 1 of your exercise files, under 02-geoLocTest.html,…and I'm running this on my server.…You'll need to run it on your own server if you want to follow along.…But actually, running it on the desktop here is little bit odd, but I wanted to…show you this because you're going to be doing your development on the desktop,…but you need to understand what the limitations of the desktop are.…
Here on this desktop machine--and this is a fairly high-end development machine--…it does not have any geolocation hardware,…so it uses IP address.…It uses different data sources to try and guess out the location,…and the location that comes up with is actually a couple of miles off.…It is not accurate like you would expect it there were a GPS device inside of the computer.…So most geolocation applications are going to run on mobile devices, and…
- Understanding how geolocation works
- Detecting geolocation support
- Getting coordinates
- Continuous tracking with watchPosition()
- Integrating geolocation with Google Maps