<?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>On a Tangent &#187; newcastle</title>
	<atom:link href="http://www.goodwin.id.au/tag/newcastle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goodwin.id.au</link>
	<description>A blog about all sorts of stuff</description>
	<lastBuildDate>Mon, 18 Jul 2011 18:36:36 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.35</generator>
	<item>
		<title>Visualising iPhone Location Information</title>
		<link>http://www.goodwin.id.au/2011/04/21/iphone-tracking-heatmap/</link>
		<comments>http://www.goodwin.id.au/2011/04/21/iphone-tracking-heatmap/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 07:08:35 +0000</pubDate>
		<dc:creator><![CDATA[Andrew]]></dc:creator>
				<category><![CDATA[Visualisation]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[newcastle]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://www.goodwin.id.au/?p=442</guid>
		<description><![CDATA[The iPhone operating system records a user's Longitude and Latitude over time. This information can be accessed readily and visualised. This posts describes the process of creating an animation of the location data over time. Most of the co-ordinates were from the Sydney and Hunter regions of NSW, Australia.]]></description>
				<content:encoded><![CDATA[<p>After hearing about the existence of a <a href="http://www.wired.com/gadgetlab/2011/04/iphone-tracks/">file that stores the location of an iPhone</a>, I decided to investigate for myself. </p>
<p>Apparently iPhones running iOS4 periodically record the device&#8217;s Latitude and Longitude and timestamp in one of the numerous <a href="http://sqlite.org/">SQLite</a> databases in phone&#8217;s backup and configuration system. Several sites have provided methods of <a href="http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup">extracting the filename</a> from encrypted backup filesystem. Once located, the contents of the file in question can be investigated using any number of techniques including the <a href="https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/">SQLite Manager plugin for Firefox</a>.  </p>
<p>This system of logging the location of the iPhone to file has been in use for some time, as pointed out in this <a href="https://alexlevinson.wordpress.com/2011/04/21/3-major-issues-with-the-latest-iphone-tracking-discovery/">excellent blog post</a> by Alex Levinson, co-author of the book <a href="http://www.amazon.com/iOS-Forensic-Analysis-iPhone-Professionals/dp/1430233427">iOS Forensic Analysis</a>.</p>
<p>Many news reports have claimed that this information is not transmitted back to Apple, but this revealing post from F-Secure Security Labs suggests that by default this <a href="http://www.f-secure.com/weblog/archives/00002145.html">location information is sent back to Apple twice a day</a> so that Apple may collate a database of Wi-Fi locations. </p>
<p>The co-ordinates stored in the location database are also readily available to any iPhone application installed on the phone through the iOS API. About halfway down the page in the <a href="http://developer.apple.com/technologies/ios/whats-new.html">What&#8217;s New in iOS 4</a> page on the apple website we find this quote:</p>
<blockquote><p>
<strong>Background location</strong> &#8211; Navigation apps can now continue to guide users who are listening to their iPods, or using other apps. iOS 4 also provides a new and battery-efficient way to monitor location when users move between cell towers. This is a great way for your social networking apps to keep track of users and their friends&#8217; locations.
</p></blockquote>
<h4>Visualising The Data</h4>
<p>Since I had access to the raw data in a convenient SQLite database format, I decided to create my own visualisation. I wrote a PHP script that selected some of the rows from the tracking database and generated a series of images using PHP&#8217;s <a href="http://php.net/manual/en/book.image.php">GD Image Library</a>. The location of each point was highlighted orange and allowed to fade gradually over time, creating a &#8220;heatmap&#8221; effect.</p>
<p>The resulting animation shows the location of my iPhone during the period July 2010 to April 2011. During that period I made several interstate trips, but this animation focuses on the Sydney, Newcastle, Hunter Valley and Port Stephens areas.</p>
<p>At the beginning of the tracking period I lived in Sydney, but traveled to Newcastle regularly for work. Numerous hotspots can be seen in the Wyong area, this is because I usually stop at the Twin Service Stations at Wyong to break up the journey along the F3. Here I usually check my email and make a few phone calls. Later parts of the animation show more activity in Newcastle and ends with a recent holiday to Port Stephens.</p>
<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/j_sYfYrp4co?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>The animation is also available in <a href="http://www.youtube.com/watch?v=j_sYfYrp4co&amp;hd=1">High Definition on YouTube</a>.</p>
<p>In total there were 4181 rows of co-ordinates in my tracking file, each one with a timestamp and estimated horizontal accuracy. The information was inside a table called called &#8220;cellLocation&#8221;. The dataset went back some 275 days. Presumably the collection of gelocation information in this file began when I installed iOS4 in the middle of last year.</p>
<p>Clearly, storage of such information in an unencrypted format  by default on every iPhone in the world could be a potential privacy issue, but it&#8217;s <a href="http://www.zdnet.com.au/iphone-ipad-tracking-big-deal-339313651.htm">not like this information hasn&#8217;t been collected before</a>. Google, Foursquare, Facebook and Twitter all collect information on the whereabouts of it&#8217;s users whenever they can. These companies gain access to the more accurate information as they have access to the device&#8217;s built-in GPS. Each time you check in on foursquare, tag yourself in a Facebook place, or geotag your tweets you are explicitly opting in to these information collection services. </p>
<p><strong>What&#8217;s different this time is that now the end user has the ability to actually view the information that is being collected about their location by their mobile devices. </strong></p>
<p>This one of the first times that this information has been so readily accessible. <a href="http://mashable.com/2011/03/02/100-million-iphones/">Over 100 Million iPhones have been sold</a>, making this one of the most widely and publicly available geolocation datasets. Unfortunately, this information is fragmented across tens of millions of computer in the form of iPhone&#8217;s backup files. </p>
<p>Various open source applications are appearing that allow users to visualise their movements based on the contents of the iPhone tracking file. Form example, an <a href="http://petewarden.github.com/iPhoneTracker/">OSX application</a> released by Alasdair Allan and Pete Warden, and a <a href="http://www.ikarsoft.com/?p=93">Java application</a>n that outputs the waypints in .kml format ready for viewing in Google Earth. </p>
<p>I can say from my own experience that reviewing the location information from my own phone was a thought provoking exercise. I started wondering who collects information about my location. I&#8217;ve already mentioned Twitter, Foursquare, Facebook etc. but there&#8217;s many more less obvious examples of tracking going on. </p>
<p>The geolocation information has been derived from the location of nearby cell towers. Information of this nature is collected by mobile providers so they know which cell tower to route the current call through. The Latitude and Longitude seems to be accurate to within a few kilometers at worst. </p>
<p>My current mobile carrier, Optus, would have a wealth of information about my whereabouts at any point in time. The data they have would be almost exactly the same as the information I extracted from the iPhone database. </p>
<p><strong>Mobile carriers collect this information routinely</strong></p>
<p>We can&#8217;t stop the mobile carriers from collecting this information because they need it for the the robust and efficient operation of their network. What we should be doing however is questioning is what their policy with respect to this information once they collect it. </p>
<p>For example:</p>
<ul>
<li>Exactly what information is collected and retained</li>
<li>How long will they retain this information.</li>
<li>What is the carriers policy on giving up this information to third parties (Advertisiers, partner companies, law enforcement).</li>
</ul>
<p>The location of a users phone at a particular time location is routinely used in criminal cases. This is how former Justice Einfeld was convicted of lying under oath in early 2009. Police then <a href="http://www.brisbanetimes.com.au/national/how-police-tracked-einfeld-20090324-98m7.html">used mobile phone records to trace Einfeld</a> as he drove south over the Spit Bridge.</p>
<p>If the mobile phone companies are willing to give up this data for case involving a speeding fine, then they are very likely to be willing to divulge the same information to authorities under more serious circumstances.</p>
<p>I&#8217;m hoping this post raises awareness of the fact that location information can be, and <em>is</em> being collected from every mobile phone user. Perhaps in the near future it will be routine to ask more about your mobile carrier&#8217;s privacy and data retention policies when choosing a network.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goodwin.id.au/2011/04/21/iphone-tracking-heatmap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maps Schmaps</title>
		<link>http://www.goodwin.id.au/2011/02/26/maps-schmaps/</link>
		<comments>http://www.goodwin.id.au/2011/02/26/maps-schmaps/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 22:10:34 +0000</pubDate>
		<dc:creator><![CDATA[Andrew]]></dc:creator>
				<category><![CDATA[Tangents]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[newcastle]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.goodwin.id.au/?p=366</guid>
		<description><![CDATA[This post explores the inner workings of @NewcastlePlaces, a twitter service that maps the locations of events that others are tweeting about. They have some serious issues with their mapping process however, this often results in events being incorrectly mapped. Some of the mapping failures have unexpected results, like placing a dead body inside a solicitors office over 15,000 km away from it's correct location for example.]]></description>
				<content:encoded><![CDATA[<p>Mapping events is not an easy task. Venue names can be misspelled, location descriptions can be vague. Event mapping services have their work cut out for them, something I have personally experienced. For several years now I have been running a gig guide at <a href="http://www.newcastlemusic.com/">newcastlemusic.com</a>. So far the service has published over 60,000 events, all of which have an associated map. I went to great lengths to make sure each of the events was correctly located when mapped. If you&#8217;re interested, an archive of all the events I listed in the gig guide can be viewed at <a href=http://www.newcastlemusic.com/gigarchive.php">newcastlemusic.com/gigarchive.php</a>.</p>
<p>Occasionally, I use twitter to broadcast information about local events through the @<a href="http://twitter.com/newcastlemusic">newcastlemusic</a> account. For example, one of my <a href="http://twitter.com/newcastlemusic/status/38032596910743552">recent tweets</a> was about the <a href="http://www.facebook.com/pages/NIMA/121706781191592">Newcastle Improvised Music Association</a> (NIMA). The association is organising weekly jazz nights at the Grand Hotel in Bolton St, Newcastle. That&#8217;s Newcastle, NSW, Australia, not just any Newcastle. </p>
<p>Within a few hours that information had been retweeted by @<a href="http://twitter.com/NewcastlePlaces">NewcastlePlaces</a>. All well and good you may well say &#8230; except that they had linked to a map for the event that placed it somewhere in the UK. The Schmap indicated that the jazz nights would be taking at <a href="http://maps.google.com.au/maps?q=Grand+Hotel+newcastle+upon+tyne&#038;fb=1&#038;gl=au&#038;hq=Grand+Hotel&#038;hnear=Newcastle+Upon+Tyne,+UK&#038;cid=0,0,9028809044481171714&#038;ei=MORlTZjeMYeKvQOcmL3mDA&#038;sa=X">The Grand Hotel in Newcastle Upon Tyne</a>.</p>
<p>I replied to their tweet and, to their credit, they removed the tweet and the map immediately, however the incident made me curious. How did this happen? Had it happened to anyone else? So I took a look at their account to see what their other tweets were like.<br />
<div id="attachment_415" style="width: 181px" class="wp-caption alignright"><a href="http://www.goodwin.id.au/wp-content/uploads/2011/02/places_and_events_in_newcastle_cropped.jpg"><img src="http://www.goodwin.id.au/wp-content/uploads/2011/02/places_and_events_in_newcastle_cropped.jpg" alt="Places and Events in Newcastle. Yes, but which Newcastle?" title="places_and_events_in_newcastle_cropped" width="171" height="200" class="size-full wp-image-415" /></a><p class="wp-caption-text">Places and Events in Newcastle. Indeed, but which Newcastle?</p></div></p>
<p>The @<a href="http://twitter.com/NewcastlePlaces">NewcastlePlaces</a> account had tweeted nearly 800 times. The bulk of the tweets were regurgitating someones elses information about an upcoming event, then adding a handy map for the event on the <a href="http://schmap.it/">Schmap.it</a> service. Their twitter icon featured an image of Newcastle Upon Tyne in the UK, so I assume the operators of the account are based there. The majority of their <a href="http://twitter.com/NewcastlePlaces/followers">followers</a> seem to be from the North East of England. </p>
<p>Schmap&#8217;s <a href="http://schmap.it/about">about page</a> describes the service as &#8221; &#8230; a location technology service provider and local publisher, with cutting-edge expertise at the intersection of local, social, commercial and the real-time web&#8221;. </p>
<p><strong>If they&#8217;d made a mapping mistake with my tweet, perhaps they&#8217;d made others too. </strong></p>
<p>So, using a little local knowledge, I decided to read through their most recent 400 tweets to see if I could find some more <a href="http://twitter.com/search?q=%23schmapfail">#schmapfail</a>. To my astonishment I identified 60 tweets that contained a <a href="http://www.schmap.cit/">Schmap</a> showing an incorrect location.</p>
<p>Here is an example of one of their more recent mapping failures:</p>
<blockquote><p>RT @<a href="http://twitter.com/1233newcastle">1233newcastle</a> A protest is being held at the top of King Edward Park against the redevelopment of th&#8230; <a href="http://schmap.it/3QTQrx?a">http://schmap.it/3QTQrx?a</a> <--MAP <br /><small><a href="">5:44 PM Feb 23rd</a> via <a href="http://schmap.it/">schmap.it</a></small> </p></blockquote>
<div id="attachment_400" style="width: 460px" class="wp-caption aligncenter"><a href="http://www.goodwin.id.au/wp-content/uploads/2011/02/1233newcastle_king_edward_park_schmapfail_450.jpg"><img src="http://www.goodwin.id.au/wp-content/uploads/2011/02/1233newcastle_king_edward_park_schmapfail_450.jpg" alt="Schmap showing incorrect location for the King Edward Park protest" title="1233newcastle_king_edward_park_schmapfail_450" width="450" height="216" class="size-full wp-image-400" /></a><p class="wp-caption-text">Schmap showing incorrect location for the King Edward Park protest</p></div>
<p>This tweet was posted by <a href="http://www.abc.net.au/newcastle">1233 ABC Newcastle</a>, a radio station located in Newcastle, NSW, Australia. For some inexplicible reason,  @<a href="http://twitter.com/NewcastlePlaces">NewcastlePlaces</a> had mapped the protest as taking place at the <a href="http://www.kevi.info/">King Edward VI School</a> in Morpeth, UK, over 15,000 km away from it&#8217;s actual location.</p>
<p>Another recent mapping failure involved a retweet of @<a href="http://twitter.com/mediahunter">mediahunter</a>&#8216;s <a href="http://www.stickyads.com.au/applications-now-open-for-autumn-internships-at-sticky/">callout for interns</a> for autumn 2011 at <a href="http://www.stickyads.com.au/">Sticky</a>.  @Mediahunter is a prominent Twitter user from Newcastle, NSW, Australia. His twitter profile clearly states that he is indeed based in Newcastle, Australia.</p>
<blockquote><p>Map for Sticky: <a href="http://schmap.it/Sn2WQv?a">http://schmap.it/Sn2WQv?a</a> &#8211; RT @<a href="http://twitter.com/mediahunter">mediahunter</a> Closing applications today for Autumn internships at Sticky. Hurry!!! http://&#8230; <br /><small><a href="http://twitter.com/NewcastlePlaces/status/37284687936225280">Tuesday, 15 February 2011 9:58:56 AM</a> via <a href="http://schmap.it/">schmap.it</a></small></p></blockquote>
<div id="attachment_408" style="width: 460px" class="wp-caption aligncenter"><a href="http://www.goodwin.id.au/wp-content/uploads/2011/02/mediahunter_schmapfail_450.jpg"><img src="http://www.goodwin.id.au/wp-content/uploads/2011/02/mediahunter_schmapfail_450.jpg" alt="Map showing incorrect location for Sticky" title="mediahunter_schmapfail_450" width="450" height="216" class="size-full wp-image-408" /></a><p class="wp-caption-text">Map showing incorrect location for Sticky</p></div>
<p>The Schmap incorrectly indicates that Sticky Ads is located at 152 Hawthorn Road, Ashington, a small suburb located about 20km North of Newcastle Upon Tyne in the UK. This is in fact the location of <a href="http://maps.google.com.au/maps?hl=en&#038;safe=off&#038;client=firefox-a&#038;ie=UTF8&#038;q=sticky+fingers+hawthorn+road+ashington&#038;fb=1&#038;gl=au&#038;hq=sticky+fingers&#038;hnear=Hawthorn+Rd,+Ashington,+UK&#038;cid=0,0,9503964325251503876&#038;ll=55.180062,-1.561292&#038;spn=0.003994,0.010911&#038;t=h&#038;z=17&#038;layer=c&#038;cbll=55.179978,-1.561229&#038;panoid=TkD5nvMzueH2BjnuYnx7OA&#038;cbp=12,49.08,,2,4.83">Sticky Fingers</a>, a takeaway food shop.</p>
<p>Here&#8217;s yet another example that should have raised some eyebrows. The tweet specifically mentions that the poster is at &#8220;Australia&#8217;s most famous beach&#8221;. Yet somehow the Schmap ends up pointing to a small frozen food supplier in Gateshead, UK.</p>
<blockquote><p>Icebergs: <a href="http://schmap.it/RIqs3H?a">http://schmap.it/RIqs3H?a</a> &#8211; RT @<a href="http://twitter.com/Maya_Abeille">Maya_Abeille</a> It was lunch at Icebergs at Australia&#8217;a most famous beach (baked herb encrusted se&#8230; <br /><small><a href="http://twitter.com/NewcastlePlaces/status/22512827642159106">Wednesday, 5 January 2011 3:40:51 PM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<div id="attachment_418" style="width: 460px" class="wp-caption aligncenter"><a href="http://www.goodwin.id.au/wp-content/uploads/2011/02/lunch_at_icebergs_450.jpg"><img src="http://www.goodwin.id.au/wp-content/uploads/2011/02/lunch_at_icebergs_450.jpg" alt="Lunch at Icebergs at Australia&#039;s most famous beach" title="lunch_at_icebergs_450" width="450" height="226" class="size-full wp-image-418" /></a><p class="wp-caption-text">Lunch at Icebergs at Australia&#039;s most famous beach</p></div>
<p>One final example, this time involving the location of a dead body. </p>
<blockquote><p>
Body in Singleton pool: Police are investigating the discovery of a body in a backyard p&#8230; <a href="http://schmap.it/JstXbT?a">http://schmap.it/JstXbT?a</a> (via @<a href="http://twitter.com/newcastleherald">newcastleherald</a>) <br /><small><a href="http://twitter.com/NewcastlePlaces/status/28068667388">Friday, 22 October 2010 9:59:35 AM</a> via <a href="http://www.schmap.it">schmap.it</a></small>
</p></blockquote>
<div id="attachment_429" style="width: 460px" class="wp-caption aligncenter"><a href="http://www.goodwin.id.au/wp-content/uploads/2011/02/body_in_pool_450.jpg"><img src="http://www.goodwin.id.au/wp-content/uploads/2011/02/body_in_pool_450.jpg" alt="A dead body, located at Singleton, Winn, Saunders Solicitors by schmap.it" title="body_in_pool_450" width="450" height="217" class="size-full wp-image-429" /></a><p class="wp-caption-text">A dead body, located at Singleton, Winn, Saunders Solicitors by schmap</p></div>
<p>So the #schmapfail suggests that there was a body at 232 Shields Road, Newcastle Upon Tyne. This is in fact the location of the offices of <a href="http://www.sws-solicitors.co.uk/">Singleton Winn Saunders Solicitors</a>. I&#8217;m sure they appreciate the insinuation that they are connected with a murder case.</p>
<p>So we can see a pattern emerging here. I imagine the process that @<a href="http://twitter.com/NewcastlePlaces">NewcastlePlaces</a> follows goes like this:</p>
<ol>
<li>Search through the tweets of anyone who&#8217;s twitter location contains the word &#8220;Newcastle&#8221;</li>
<li>Determine if they are tweeting about an event</li>
<li>Search for a business in the Newcastle Upon Tyne area that matches the event location</li>
<li>Retweet and include a Schmap that points to the UK business</li>
</ol>
<p>It&#8217;s not hard to see why this process fails so often. Someone from Newcastle Australia is hardly going to be tweeting about an event in the North East of the UK.</p>
<p>In addition to the 60 incorrectly mapped tweets I identified there were also five apologies. Presumably these were responding to people who had complained about their events being incorrectly mapped. </p>
<p>All five apologies are listed below:</p>
<blockquote><p>
@<a href="http://twitter.com/newcastlemusic">newcastlemusic</a> Oh, thanks for the info. We&#8217;ve already removed the tweet. <br /><small><a href="http://twitter.com/NewcastlePlaces/status/38071047102279680">Thursday, 17 February 2011 2:03:39 PM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<blockquote><p>
@<a href="http://twitter.com/SCOLLEYart">SCOLLEYart</a> thanks for letting us know, we have removed the RT  <br /><small><a href="http://twitter.com/NewcastlePlaces/status/36083452264579072">Wednesday, 16 February 2011 1:47:17 AM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<blockquote><p>
<a href="http://twitter.com/dmilor">@dmilor</a>  whoops! thanks for letting us know, we have removed the RT  <br /><small><a href="http://twitter.com/NewcastlePlaces/status/36083452264579072">Saturday, 12 February 2011 2:25:40 AM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<blockquote><p>
@<a href="http://twitter.com/BacchusHeather">BacchusHeather</a>  we have removed the RT  <br /><small><a href="http://twitter.com/NewcastlePlaces/status/29933993046573056">Wednesday, 26 January 2011 3:09:54 AM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<blockquote><p>
@<a href="http://twitter.com/Bibbleq">Bibbleq</a> oh dear, well if you give us the correct address we can fix the schmap for you &#8230; or we can also delete the tweet if you like <br /><small><a href="http://twitter.com/NewcastlePlaces/status/24555771116">Wednesday, 15 September 2010 7:38:28 PM</a> via <a href="http://schmap.it/">schmap.it</a></small>
</p></blockquote>
<p><strong>Sixty-five Schmaps out of four hundred means a SchmapFail rate of 16%. </p>
<p>Is this a twitter account you want to be relying on for your local event information?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.goodwin.id.au/2011/02/26/maps-schmaps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
