From the course: HTML5: Geolocation
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Exploring a sample geolocation application - HTML Tutorial
From the course: HTML5: Geolocation
Exploring a sample geolocation application
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…
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.