Evangelism/Firefox3.5/35Days/Articles/geolocation: Difference between revisions

Line 3: Line 3:
Location is all around us.  As of this writing, I am in a coffee shop in Toronto, Canada.  If I type google into the url bar, it takes me to www.google.ca, the Canadian version of Google, based on my IP address.  And when I want to find the closest movie theater to where I am located, I typically just type in my postal code.  That information is often stored with the site so that it's easier to find the movie theater next time.  In these two situations, having the web application automatically figure out where I am is much more convenient.  In fact, I have no idea what the postal code is for Toronto.  I know how to find it, but that is alot of work to simply tell a web application where I am.
Location is all around us.  As of this writing, I am in a coffee shop in Toronto, Canada.  If I type google into the url bar, it takes me to www.google.ca, the Canadian version of Google, based on my IP address.  And when I want to find the closest movie theater to where I am located, I typically just type in my postal code.  That information is often stored with the site so that it's easier to find the movie theater next time.  In these two situations, having the web application automatically figure out where I am is much more convenient.  In fact, I have no idea what the postal code is for Toronto.  I know how to find it, but that is alot of work to simply tell a web application where I am.


Firefox 3.5 includes a simple JavaScript API that allows you to quickly geo-enable your web application.  It allows users to optionally share their location with websites without having to type in a postal code.  What follows is a general overview of how to use geolocation in Firefox 3.5, how it works, and examines some of the precautions you should consider when using geolocation.
Firefox 3.5 includes a simple JavaScript API that allows you to quickly geo-enable your web application.  It allows users to optionally share their location with websites without having to type in a postal code.  What follows is a general overview of how to use geolocation in Firefox 3.5, how it works, and examines some of the precautions you should take when using geolocation.


= The Details =
= The Details =
canmove, Confirmed users
1,577

edits