0% found this document useful (0 votes)
46 views1 page

Making Your HTML Location Aware: Geolocation

This document discusses using geolocation APIs to make web pages location aware. It explains how geolocation determines a user's location using latitude and longitude. Different levels of accuracy are possible, from pinpointing the corner to just the general area. The chapter will cover the Geolocation API, adding maps, and handling accuracy issues. Users will learn to build an app that detects and displays the user's location.

Uploaded by

hghg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Making Your HTML Location Aware: Geolocation

This document discusses using geolocation APIs to make web pages location aware. It explains how geolocation determines a user's location using latitude and longitude. Different levels of accuracy are possible, from pinpointing the corner to just the general area. The chapter will cover the Geolocation API, adding maps, and handling accuracy issues. Users will learn to build an app that detects and displays the user's location.

Uploaded by

hghg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Geolocationmaking your html location

awareLocation, Location, Location 166The Lat and Long of it... 167How the
Geolocation API determines your location 168Just where are you anyway? 172How it all fits
together 176Revealing our secret location... 179Writing the code to find the distance 181How
to add a Map to your Page 183Sticking a Pin in it... 186The other cool things you can do with
the Google Maps API 188Can we talk about your accuracy? 191“Wherever you go, there you
are” 192Getting the app started 193Reworking our old code... 194Time to get moving!
196You’ve got some Options... 198The world of timeouts and maximum age... 199Don’t Try
This at Home (Pushing Geo to the Limit) 202Let’s finish this app! 204Integrating our new
function 205Bullet Points 207Exercise Solutions 209Wherever you go, there
you are. And sometimes knowing where you are makes all the difference
(especially to a web app). In this chapter we’re going to show you how to create web
pages that are location aware—sometimes you’ll be able to pin point your users
down to the corner they’re standing on, and sometimes you’ll only be able to
determine the area of town they’re in (but you’ll still know the town!). Heck,
sometimes you won’t be able to determine anything about their location, which could
be for technical reasons, or just because they don’t want you being so nosy. Go
figure. In any case, in this chapter we’re going to explore a JavaScript API:
Geolocation. Grab the best location-aware device you have (even if it’s your desktop
PC), and let’s get started.

You might also like