<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dougt&#039;s blog &#187; geo</title>
	<atom:link href="http://dougt.org/wordpress/tag/geo/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougt.org/wordpress</link>
	<description>best. tagline. ever.</description>
	<lastBuildDate>Mon, 26 Jul 2010 03:18:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Geolocation Address</title>
		<link>http://dougt.org/wordpress/2009/07/geolocation-address/</link>
		<comments>http://dougt.org/wordpress/2009/07/geolocation-address/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:25:45 +0000</pubDate>
		<dc:creator>dougt</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[device api]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[geolocation]]></category>

		<guid isPermaLink="false">http://dougt.org/wordpress/?p=440</guid>
		<description><![CDATA[Last week, I pushed a change that will enable tomorrow&#8217;s trunk Firefox builds (Minefield) to access user-readable position information. For example, instead only being able to work with: 37.3882005, -122.0834553 You can see the physical address as: 650 Castro St, Mountain View, California, 94041, US This should help aide the many people that already know [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, I pushed a change that will enable tomorrow&#8217;s trunk Firefox builds (Minefield) to access user-readable position information.</p>
<p>For example, instead only being able to work with:</p>
<p>37.3882005, -122.0834553</p>
<p>You can see the physical address as:</p>
<p>650 Castro St, Mountain View, California, 94041, US</p>
<p>This should help aide the many people that already know their physical address in familiar terms.</p>
<p>To access address elements, you simply do what you have been doing.  The only modification is to test to see if there is an address associated with the position, and if so, access it:</p>
<pre>
navigator.geolocation.watchPosition(successCallback)
function successCallback(position)
{
    if (position.address)
        alert(position.address.postalCode);
}
</pre>
<p>Other fields on the address object are:</p>
<pre>
address.streetNumber
address.street
address.premises
address.city
address.region
address.county
address.countryCode
address.postalCode
</pre>
<p>Please let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougt.org/wordpress/2009/07/geolocation-address/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Geolocation in Firefox 3.5 and Fennec</title>
		<link>http://dougt.org/wordpress/2009/04/geolocation-in-firefox-3-5-and-fennec/</link>
		<comments>http://dougt.org/wordpress/2009/04/geolocation-in-firefox-3-5-and-fennec/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 19:25:41 +0000</pubDate>
		<dc:creator>dougt</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[fennec]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[geolocation]]></category>

		<guid isPermaLink="false">http://dougt.wordpress.com/2009/04/30/geolocation-in-firefox-35-and-fennec/</guid>
		<description><![CDATA[I&#8217;m excited to introduce a new feature in Firefox 3.5 Beta 4 that I&#8217;ve been working on called geolocation. Geolocation is an opt-in tool that lets users share their location information with web sites through Firefox and will enable a new range of services on the web. Geolocation can make web sites smarter and you [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m excited to introduce a new feature in Firefox 3.5 Beta 4 that I&#8217;ve been working on called geolocation. Geolocation is an opt-in tool that lets users share their location information with web sites through Firefox and will enable a new range of services on the web.  Geolocation can make web sites smarter and you more productive.  Websites that use geolocation will ask where you are in order to bring you more relevant information, or to save you time while searching. Let’s say you’re looking for a pizza restaurant in your area. A website will be able to ask you to share your location so that simply searching for “pizza” will bring you the answers you need…no further information or extra typing required.</p>
<p>This idea isn’t new.  We have been researching meshing geolocation data and the web for a few years.  Last year, Mozilla Labs released an experimental addon, Geode, which implemented the draft <a href="http://dev.w3.org/geo/api/spec-source.html">W3C Geolocation Specification</a>.  We added support for the spec to Firefox 3.5 and &#8220;Fennec&#8221; (our mobile browser which is in development) as well as a user interface that put the user in control of which websites could use location.  However, we left it to add-ons to implement the code that would actually figure out your location, using any technique (GPS, WiFi or cell tower triangulation, manual address entry) of their choosing.  So, with Firefox 3.1, 3.5 or Fennec, plus a third-party add-on, users would be able to use location-enabled websites.</p>
<p>However, we were still left with a chicken-or-egg problem: unless lots and lots of users installed an add-on, websites wouldn&#8217;t have a significant audience for which to develop location-enabled services; and without lots of useful web content using the feature, users had no reason to install an add-on.</p>
<p>We decided to investigate bundling a technology that would provide an end-to-end solution, so that the feature would work out of the box for users, and would give websites a large enough potential user base to kick start the development of innovative apps and services.  We had learned a lot from the discussions about the various add-ons that had been built, and in other forums over the last few years. Earlier this year, I hosted a talk on <a href="http://air.mozilla.com/wp-content/uploads/2009/03/location-2009-03-04.ogg">Location in Mozilla</a> during which we reviewed many of the critical privacy issues.  We boiled these down to some key principles:<br />
* protecting user privacy.</p>
<p>User privacy is super important to us and we believe that we have the best privacy policies regarding your data.  The use of the WiFi data, IP addresses, associated protocol bits, should never be used to spy on users, track individuals, or shared without your permission.</p>
<p>* enabling web developers to use the API in an unencumbered way that would work in all browsers that implement the spec</p>
<p>Web developers can use a standard way of accessing geolocation data and not have to worry about the underlying geolocation provider.  We don&#8217;t share with third-party location provider(s) any information about websites the user&#8217;s visiting; this protects both the user&#8217;s privacy, and the website&#8217;s right to write to a web standard without fear of any third party gaining insight into how the site is being used.</p>
<p>* preserving user choice</p>
<p>This feature is completely opt-in!  If you don&#8217;t do anything, geolocation is never used.  When a web page wants ask you for your location, you get an dialog similar to the one below.  If you do nothing, the feature stays off by default.  Only if you press &#8220;Tell them&#8221;, will you send out your location information.  Furthermore, users are free to use a different geolocation provider by installing addons.</p>
<p><a href="http://dougt.org/wordpress/wp-content/uploads/200907141613.jpg" onclick="window.open('http://dougt.org/wordpress/wp-content/uploads/200907141613.jpg','popup','width=920,height=100,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://dougt.org/wordpress/wp-content/uploads/200907141613-tm.jpg" height="100" width="920" border="1" hspace="4" vspace="4" alt="200907141613" /></a></p>
<p>* applicability to both Firefox and Fennec</p>
<p>To avoid fragmentation on the web, the geolocation feature should be consistent between the desktop and mobile.  The truth really is that the line is getting blurred between mobile and desktop.  Calling the geolocation feature &#8220;mobile only&#8221; discounts many use cases that are pretty important.</p>
<p>Given these principles and a strong desire to create an &#8220;out of the box&#8221; experience in Firefox and Fennec, and to kick start the location aware web, we are happy to announce that Firefox 3.5 and Fennec will be using Google Location Service.  We found that we agreed on the many privacy concerns around location.  Do check out Mozilla&#8217;s <a href="http://en-us.www.mozilla.com/en-US/legal/privacy/firefox-en.html">privacy policy</a> and Google&#8217;s <a href="http://www.google.com/privacy-lsf.html">privacy policy</a>.  I am pretty excited about these policies I think they are going to be the industry standard when it comes to network based geolocation providers.</p>
<p>Just to provide a bit of technical detail on what exactly is going on, below I will walk through a simple geolocation request.</p>
<p>1) A user goes to a page that has some Javascript that asks for a Geolocation.</p>
<p>2) When the user loads that page, we put up a dialog.</p>
<p>3) If they don&#8217;t click anything, or click no, we do not do any geolocation stuff and simply return an error to the requestor.</p>
<p>4) If they click yes, we drop into this <a href="http://mxr.mozilla.org/mozilla-central/source/dom/src/geolocation/NetworkGeolocationProvider.js#162">bit of code</a> which packages up the WiFi Access Point data into JSON and sends it to Google Location Services over HTTPS.  The URL is configurable by preferences (&#8220;geo.wifi.uri&#8221;).  The data sent includes a version number, access token, and an array of public WiFi access points data.  The access token basically acts like a two week cookie, and if you clear cookies in the browser, this value is deleted and a new one is used.</p>
<p>6) Lastly, the Google Location service returns a location.  It&#8217;s another json object that is an actual location.</p>
<p>That&#8217;s it. For more information, check out the <a href="http://en-us.www.mozilla.com/en-US/firefox/geolocation">Frequently Asked Questions</a>. Get ready for Firefox 3.5 and start thinking about how you can location aware your web apps!  Here is the <a href="http://www.w3.org/TR/geolocation-API/">spec</a>.</p>
<p>Got questions, feel free to ask.  I am looking for feedback.  Comments welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://dougt.org/wordpress/2009/04/geolocation-in-firefox-3-5-and-fennec/feed/</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
	</channel>
</rss>
