<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Stephen Foskett, Pack Rat &#187; Skyhook Archives  &#8211; Stephen Foskett, Pack Rat</title>
	<atom:link href="http://blog.fosketts.net/tag/skyhook/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fosketts.net</link>
	<description>Understanding the accumulation of data</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>How Much Can You Rely On the iPhone&#8217;s Google Maps Combination of Skyhook Wi-Fi and Cell Tower Data For Pseudo-GPS?</title>
		<link>http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/</link>
		<comments>http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 18:41:25 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Skyhook]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/</guid>
		<description><![CDATA[One of the (few) surprises from this month&#8217;s MacWorld was that the Google Maps application integrates location data not just from cell tower triangulation (using Google&#8217;s &#8220;My Location&#8221; technology) but also Wi-Fi visibility information, thanks to Skyhook. This combination of technologies piqued my interest, and it turns out that I was in a unique position [...]]]></description>
			<content:encoded><![CDATA[<p>One of the (few) surprises from this month&#8217;s MacWorld was that <a href="http://www.tuaw.com/2008/01/16/iphone-1-2-3-update-google-maps-first-impressions/"  target="_blank">the Google Maps application integrates location data</a> not just from cell tower triangulation (using <a href="http://www.parislemon.com/2007/11/google-maps-now-emulates-gps-coming-to.html"  target="_blank">Google&#8217;s &#8220;My Location&#8221; technology</a>) but also <a rel="nofollow" href="http://www.macrumors.com/2008/01/16/todays-announcements-the-untold-story/"  target="_blank">Wi-Fi visibility information, thanks to Skyhook</a>.  This combination of technologies piqued my interest, and it turns out that I was in a unique position to see just how these two data sources are integrated into the iPhone&#8217;s Google Maps application.</p>
<p>Although <a rel="nofollow" href="http://www.macrumors.com/2008/01/23/skyhooks-wi-fi-location-technology-for-iphone-ipod-touch/"  target="_blank">Mac Rumors reports that the Skyhook Wi-Fi data trumps the Google cell tower data</a>, the reality is much more complicated, and thankfully more reliable, too!  See, I used to live in Massachusetts (where Skyhook has data) and now live in Ohio (where they don&#8217;t).  So I was able to test the priority of the location data used in the iPhone in a simple way &#8211; I compared different good data/bad data scenarios to determine just how Apple is deciding what your location is.</p>
<p>The short answer is, they&#8217;ve done a great job programming this and are falling back gracefully when fed bad data.  When you tap the location button <em>on an iPhone</em>, you&#8217;ll almost always get at least a reasonable location from it, <em>except where Skyhook has bad data <strong>and </strong>you&#8217;ve got no cell service</em>, which is rare enough to be useful.</p>
<p><em><strong>But</strong> if you are using an iPod Touch or iPhone with no cell service, your location data can be woefully incorrect, and even easily spoofed!</em> Although Google Maps location is (probably) not a life and death piece of data, we can be pretty happy with what we&#8217;ve been given.  But I can think of a whole lotta pranking that could happen once this tech gets more widespread use!</p>
<p>More details after the jump&#8230;</p>
<p><span id="more-139"></span><strong> How Skyhook Works</strong></p>
<p>Skyhook relies on MAC addresses of visible access points, and <em>doesn&#8217;t care</em> if you&#8217;re logged into them or not.  So if you&#8217;re walking down Main Street, and your device can <em>see </em>any Wi-Fi access points (hotspots, home routers, etc), it can grab the MAC address for location purposes.  Over the last few years, Skyhook drove a fleet of cars around many major cities, sniffing for MAC addresses and correlating them to GPS data.  It stored this information in a database and can use it to pinpoint locations.</p>
<p><div id="amazon-widget">
<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/bananafishhome/8001/cd9c06ce-e6d6-4719-aa8a-cbc10ed68098"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fbananafishhome%2F8001%2Fcd9c06ce-e6d6-4719-aa8a-cbc10ed68098&Operation=NoScript">Amazon.com Widgets</A>
</NOSCRIPT>
</div></p>
<p>Some have speculated that Skyhook could expand their list of known hotspots by using the very query data sent to them.  See one we know and one we don&#8217;t?  Just add the new one at the old one&#8217;s location!  It&#8217;s not clear whether or not they&#8217;re doing this at this point, though.  One thing Skyhook <em>does not do</em> is allow ad hoc queries or (until recently) updates to their database.  But yesterday, <a href="http://iphone.macworld.com/2008/01/put_yourself_on_the_map_with_s.php"  target="_blank">iPhone Central reported that a user was given instructions on how to add their own access point to Skyhook&#8217;s database</a>, which kind of scares me (see below)!</p>
<p>One trouble is, MAC addresses aren&#8217;t as unique as they&#8217;re supposed to be.  Although nearly all  manufacturers assign a unique MAC address to each device they make, these can easily be changed in software.  There are many legitimate reasons to change a MAC &#8211; I&#8217;ve done it myself when replacing a failed access point, since it saved me from having to worry about reconfigure my clients.  Although it&#8217;s not a great idea, some corporations that run large networks of hotspots <em>might</em> presumably use the same MAC on multiple devices for simplicity or through negligence when setting up new hardware.</p>
<p>The other problem with using access point MAC addresses for location data is that they&#8217;re not nearly as geographically-fixed as one might presume.  In my example, I up and moved from one state to another, taking my router with me.  The same thing could easily happen with a second-hand unit sold on eBay or given to a friend or family member.  Imaging the havoc that Freecycle and Craigslist can cause to the Skyhook database as people move older routers from one address to another!  Add in the growing number of roving access points in busses (<a href="http://www.dashes.com/anil/2007/12/unsolicited-testimonial-limoliner.html"  target="_blank">LimoLiner</a>), rental cars (<a rel="nofollow" href="http://abrilliantblog.wordpress.com/2007/12/07/15/"  target="_blank">Avis</a>), and even private use (<a href="http://blog.lotas-smartman.net/archive/2008/01/05/gadget-bag-upgrade-jan-2008.aspx"  target="_blank">Airport Express</a>, <a href="http://blog.wired.com/gadgets/2008/01/first-in-car-br.html"  target="_blank">Delphi/Autonet</a>) and you could be seeing lots of spurious traveling Wi-Fi hotspots!</p>
<p><strong>Pranking Skyhook</strong></p>
<p>Of course, not all false location data will come about by accident.  It would be trivially easy to spoof the MAC address of a known Skyhook location in order to prank all those Apple-toting hipsters out there.  Take some old Wi-Fi router, program it with the address of a Starbucks shop across town, and watch them scratch their heads looking for that short cappuccino!  More nefarious schemes are easy to imagine, but at the end of the day all you&#8217;re doing is confusing the tiny subset of people who will use the location data of their iPhone or iTouch within range of your access point.</p>
<p>Plus, in my (limited) testing, it looks as if Skyhook will reject MACs that seem totally out of place <em>if more than two others are in range</em>.  So there is some sanity checking going on, and that&#8217;s a good thing.</p>
<p><strong>Digging Into Google&#8217;s &#8220;My Location&#8221;</strong></p>
<p><a rel="nofollow" href="http://googlemobile.blogspot.com/2007/11/new-magical-blue-circle-on-your-map.html"  target="_blank">Google announced their &#8220;My Location&#8221; service back in November</a>, which uses cell tower triangulation to locate clients.  In apparently sends some unique identifier of in-range (and in-network) cell towers to a Google server and attempts to determine location based on the (known) location of those towers.  Since they don&#8217;t have very precise data on the location of every tower, <a rel="nofollow" href="http://www.google.com/support/mobile/bin/answer.py?answer=81873&amp;topic=12595"  target="_blank">Google admits that their precision can vary</a> from acceptable to just plain bad.</p>
<p>In my experience, urban towers are much more precise than rural ones, both in terms of accuracy and precision.  In the rural Ohio county where I live, the towers seem to be centered on townships, so the results are not at all accurate.  Plus, rural towers cover a greater area, so their precision is expressed in tens of miles.  But in the cities I&#8217;ve tried my iPhone in, the tower location is <em>much</em> more accurate, often allowing me to play &#8220;spot the tower&#8221; based on the Google Maps crosshairs!</p>
<p><strong>How the iPhone Uses Location Data</strong></p>
<p>So how does Apple integrate Google&#8217;s cell tower data and Skyhook&#8217;s Wi-Fi data?  When you press the Location button, the iPhone sends both cell tower and Wi-Fi data (via an encrypted HTTPS session) to a server with an Apple IP address.  Something happens there (presumably involving queries to Google and Skyhook servers), and a response is sent to the iPhone, presumably containing a center and radius.</p>
<p>From my experience (see the table below), the iPhone/iTouch Google Maps location server uses the following logic:</p>
<ol>
<li>If the cell location and the Wi-Fi location <strong>agree</strong>, use the Wi-Fi location</li>
<li>If the cell location and the Wi-Fi location <strong>disagree</strong>, use the cell location</li>
<li>If only one is available, use that</li>
</ol>
<p>This is a nice bit of logic, since the accuracy of cell tower data is more reliable than Wi-Fi, but is far less precise.  So someone (smartly) took the unreliability of Skyhook&#8217;s data into account when programming all this!</p>
<p>Sadly for iPod Touch users, though, they only have Skyhook data, so they are likely to get frequent head scratchers when pressing the location button!  Expect a rash of comedic posts starting with &#8220;my iPod Touch thinks I&#8217;m in Topeka!&#8221;</p>
<p>It <em>looks</em> like Apple is only sending cell data to Google and Wi-Fi data to Skyhook, though, since Skyhook still has my Wi-Fi location totally wrong even after a week of experimenting.  So even though this could have been a valuable way for Skyhook to update and expand their database, it doesn&#8217;t look like they are.</p>
<p><strong>Test Details </strong></p>
<table border="1">
<tbody>
<tr>
<th>Wi-Fi Service</th>
<th>Cell Service</th>
<th>Data Used</th>
<th>Resolution</th>
<th>Notes</th>
</tr>
<tr>
<td rowspan="3">No</td>
<td>No</td>
<td>&#8220;Your location could not be determined&#8221;</td>
<td>N/A</td>
<td>Try it yourself &#8211; enable <a rel="nofollow" href="http://docs.info.apple.com/article.html?artnum=305724"  target="_blank">Airplane Mode</a>!</td>
</tr>
<tr>
<td>Yes (Rural)</td>
<td rowspan="2">Location from Google</td>
<td>centered on township</td>
<td>Looks like certain towers don&#8217;t give exact data to Google</td>
</tr>
<tr>
<td>Yes (City)</td>
<td>Within a square mile or so</td>
<td>Cell triangulation is OK for &#8220;what&#8217;s near me&#8221;, not great for directions</td>
</tr>
<tr>
<td>Yes (good data)</td>
<td>No</td>
<td rowspan="2">Location from Skyhook</td>
<td rowspan="2">Within a one hundred meters!</td>
<td rowspan="2">Awesome killer tech &#8211; nearly as good as GPS and certainly good enough for anything I&#8217;d need</td>
</tr>
<tr>
<td>Yes (good data)</td>
<td>Yes</td>
</tr>
<tr>
<td rowspan="2">Yes (bad data)</td>
<td>No</td>
<td>Location from Skyhook</td>
<td>Totally wrong</td>
<td>Since Skyhook last saw my (secured <a href="http://www.polarcloud.com/tomato"  target="_blank">Tomato/Linksys</a>) access point in Massachusetts, they decided I was 600 miles from my actual position</td>
</tr>
<tr>
<td><strong>Yes</strong></td>
<td><strong>Location from Google</strong></td>
<td><strong>As good as triangulation ever is (see above)</strong></td>
<td><strong>Buy these guys a beer and pat them on the back for failing gracefully!</strong></td>
</tr>
</tbody>
</table>
<p><strong>See For Yourself!</strong></p>
<p>Experimenting with YouTube, <a rel="nofollow" href="http://youtube.com/watch?v=qU0WMmQcUd4"  target="_blank">I decided to up a video of my location magically changing from Ohio to Massachusetts</a>!  See for yourself!</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2008/01/15/113-and-twelve-things-that-are-still-wrong-with-the-iphone/"  rel="bookmark" class="crp_title">1.1.3 and Twelve Things That Are Still Wrong With The iPhone</a></li><li><a href="http://blog.fosketts.net/2011/10/15/siri-awol-upgrading-iphone-4s/"  rel="bookmark" class="crp_title">Siri is AWOL After Upgrading to the iPhone 4S</a></li><li><a href="http://blog.fosketts.net/2008/08/02/exchange-activesync-iphone-works-without-business-data-plan/"  rel="bookmark" class="crp_title">Yes, Exchange ActiveSync for iPhone Works Without a Business Data Plan</a></li><li><a href="http://blog.fosketts.net/2010/11/04/4g-itu-standards-relevant/"  rel="bookmark" class="crp_title">4G: Is It Really A Standard If No One Cares?</a></li><li><a href="http://blog.fosketts.net/2009/07/15/google-reader-social/"  rel="bookmark" class="crp_title">Google Reader Gets More Social</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2008. |
<a href="http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/">How Much Can You Rely On the iPhone&#8217;s Google Maps Combination of Skyhook Wi-Fi and Cell Tower Data For Pseudo-GPS?</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2008/01/23/how-much-can-you-rely-on-the-iphones-google-maps-combination-of-skyhook-wi-fi-and-cell-tower-data-for-pseudo-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

