<?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>Programming Fundamentals &#187; bert_anti_map_viz</title>
	<atom:link href="http://legacy.iaacblog.com/mai2012-2013-programming/tag/bert_anti_map_viz/feed/" rel="self" type="application/rss+xml" />
	<link>http://legacy.iaacblog.com/mai2012-2013-programming</link>
	<description>Programming Fundamentals</description>
	<lastBuildDate>Tue, 18 Dec 2012 18:15:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Final version of GPS visualization project for the data workshop</title>
		<link>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/685/</link>
		<comments>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/685/#comments</comments>
		<pubDate>Tue, 20 Nov 2012 12:10:33 +0000</pubDate>
		<dc:creator>balcaen.bert@iaac.net</dc:creator>
				<category><![CDATA[Bert Balcaen]]></category>
		<category><![CDATA[Int Programming]]></category>
		<category><![CDATA[Students]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[bert_anti_map_viz]]></category>

		<guid isPermaLink="false">http://legacy.iaacblog.com/mai2012-2013-programming/?p=685</guid>
		<description><![CDATA[Video of the final version: A walk in Barcelona. Visualization of GPS data. from Bert Balcaen on Vimeo. Here are some notes on how I got there. I experimented with adding the street names next to the trail. This puts more emphasis on the sequence of the streets. However, the label positioning (overlaps) seemed like [...]]]></description>
				<content:encoded><![CDATA[<p>Video of the final version:</p>
<p><iframe src="http://player.vimeo.com/video/53906463?badge=0&amp;color=55c4e4" width="730" height="365" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/53906463">A walk in Barcelona. Visualization of GPS data.</a> from <a href="http://vimeo.com/user7223162">Bert Balcaen</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Here are some notes on how I got there.</p>
<p><span id="more-685"></span></p>
<p>I experimented with adding the street names next to the trail. This puts more emphasis on the sequence of the streets. However, the label positioning (overlaps) seemed like a problem I couldn&#8217;t solve quickly. I found <a href="https://gist.github.com/1377729">a nice solution from Moritz Stefaner that uses forces to make sure labels don&#8217;t overlap each other</a>. Looks like a very good starting point for a future project.</p>
<p><a href="http://legacy.iaacblog.com/mai2012-2013-programming/files/2012/11/map_viz_05-001195.png"><img src="http://legacy.iaacblog.com/mai2012-2013-programming/files/2012/11/map_viz_05-001195.png" alt="" title="map_viz_05-001195" width="800" height="400" class="alignnone size-full wp-image-686" /></a><br />
In this video I used another data set. The one in the previous videos is me running. Here I&#8217;m using a recording of an evening walk through the city. There are some interesting moments: me trying to find a shop (without using GPS) and getting a little bit lost, the rythm of my walk, stopping for traffic lights, etc. Also watch how the GPS gets confused and the data starts to get noisy when I spend some time in a supermarket. I decided not to clean up the data and just leave it like it was.</p>
<p>I also changed the panning. Instead of keeping the current location always in the center of the screen, I added some very simple tweening so the map doesn&#8217;t center immediately on the last position. I think it conveys the feeling of space a little bit better like that.</p>
<p>Then I took another look at how the data was being displayed. I thought it would be good to give the viewer some more information about what kind of walk this was, so I added time and distance. I also included a legend for the colors because I always had to explain what they meant when I was showing the video to someone.</p>
<p>I&#8217;m pretty satisfied about this project, giving the time constraints we had (just a few days).  Here are some suggestions I got from people who saw it:</p>
<ul>
<li>Use the compass to show what I was looking at during the walk, and show those places using a POI database.</li>
<li>Try out other ways of visualizing the trail.</li>
<ul>
]]></content:encoded>
			<wfw:commentRss>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/685/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progress on GPS visualization project for the data workshop, part 2</title>
		<link>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop-part-2/</link>
		<comments>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop-part-2/#comments</comments>
		<pubDate>Sun, 18 Nov 2012 10:00:27 +0000</pubDate>
		<dc:creator>balcaen.bert@iaac.net</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bert_anti_map_viz]]></category>

		<guid isPermaLink="false">http://legacy.iaacblog.com/mai2012-2013-programming/?p=487</guid>
		<description><![CDATA[Visualization of GPS data, iteration 3 from Bert Balcaen on Vimeo. In this video the color of the trail corresponds to its location on Google Maps. I spend a lot of time on this, but I think it&#8217;s adding a very interesting layer to the visualization. I&#8217;m using the Static Maps API from Google to [...]]]></description>
				<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/53763850?badge=0&amp;color=55c4e4" width="730" height="450" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/53763850">Visualization of GPS data, iteration 3</a> from <a href="http://vimeo.com/user7223162">Bert Balcaen</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>In this video the color of the trail corresponds to its location on Google Maps. I spend a lot of time on this, but I think it&#8217;s adding a very interesting layer to the visualization. I&#8217;m using the <a href="https://developers.google.com/maps/documentation/staticmaps/">Static Maps API from Google</a> to download map images with a PHP script and then check the color of the pixel in the center. I turned off all text labels in the maps. Here&#8217;s an example:</p>
<p><img src="http://maps.googleapis.com/maps/api/staticmap?center=41.390678,2.201486&#038;zoom=16&#038;size=200x200&#038;style=feature:all%7Celement:labels%7Cvisibility:off&#038;sensor=false" alt="" /></p>
<p>I also decided that a little more context would be good, so I added the street names using reverse geocoding with OpenStreetMap. Example:</p>
<p><a href="http://nominatim.openstreetmap.org/reverse?format=xml&#038;lat=52.5487429714954&#038;lon=-1.81602098644987&#038;zoom=18&#038;addressdetails=1&#038;format=json">http://nominatim.openstreetmap.org/reverse?format=xml&#038;lat=52.5487429714954&#038;lon=-1.81602098644987&#038;zoom=18&#038;addressdetails=1&#038;format=json<br />
</a></p>
<p>The data from the AntiMap app is very detailed. I got banned a couple of times because I was exceeding the rate limit of these API&#8217;s. Most of them allow only a certain amount of queries per hour. It also means the process of getting the street names and colors can take ages. For now I&#8217;m only doing this for a fraction of the data.</p>
<p>I&#8217;m experimenting with typography. Here I set the type in Futura Extra Bold Condensed. It&#8217;s a typeface from the same area where some of my inspiration comes from (the 1930s &#038; the emergence of the flaneur). </p>
<p>I created the video&#8217;s by using saveFrame(&#8220;screenshot-######.png&#8221;) and ffmpeg:</p>
<p><code>ffmpeg -i screenshot-00%4d.png -vcodec libx264 test.avi</code></p>
]]></content:encoded>
			<wfw:commentRss>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progress on GPS visualization project for the data workshop</title>
		<link>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop/</link>
		<comments>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop/#comments</comments>
		<pubDate>Sat, 17 Nov 2012 16:14:40 +0000</pubDate>
		<dc:creator>balcaen.bert@iaac.net</dc:creator>
				<category><![CDATA[Bert Balcaen]]></category>
		<category><![CDATA[Int Programming]]></category>
		<category><![CDATA[Students]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[bert_anti_map_viz]]></category>

		<guid isPermaLink="false">http://legacy.iaacblog.com/mai2012-2013-programming/?p=397</guid>
		<description><![CDATA[See: data workshop I wanted to get a feeling for the data so I started off by creating a quick and dirty Processing sketch that visualizes the location data recorded with AntiMap. I used Unfolding Maps, a very complete and well-made library for using maps inside Processing. Here is a screenshot. That felt very static, [...]]]></description>
				<content:encoded><![CDATA[<p>See: <a href="http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/data-workshop/">data workshop</a></p>
<p>I wanted to get a feeling for the data so I started off by creating a <a href="https://gist.github.com/4064702">quick and dirty Processing sketch that visualizes the location data recorded with AntiMap</a>. I used <a href="http://unfoldingmaps.org/">Unfolding Maps</a>, a very complete and well-made library for using maps inside Processing. Here is a screenshot.</p>
<p><a href="http://legacy.iaacblog.com/mai2012-2013-programming/files/2012/11/quick_and_dirty_viz_of_anti_map_data.png"><img src="http://legacy.iaacblog.com/mai2012-2013-programming/files/2012/11/quick_and_dirty_viz_of_anti_map_data-300x241.png" alt="" title="quick_and_dirty_viz_of_anti_map_data" width="300" height="241" class="alignnone size-medium wp-image-398" /></a></p>
<p>That felt very static, and the core of my concept is how walking brings the city to life. I wanted to see how it would look like if I animated the trail, showing only a part of it. I also cleaned up the code a bit so it would be a bit easier to work with. This is the result:</p>
<p><iframe src="http://player.vimeo.com/video/53734552?badge=0&amp;color=55c4e4" width="500" height="375" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/53734552">Visualization of GPS data, iteration 1</a> from <a href="http://vimeo.com/user7223162">Bert Balcaen</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>It draws a circle for each location. The circles grow and gradually become more transparent. It&#8217;s simple but interesting: it brings the data to life.</p>
<p>Cristobal suggested to use the map colors for the trail. I really like that idea, so I thought that would be a good next step. Here&#8217;s a video:</p>
<p><iframe src="http://player.vimeo.com/video/53742583?badge=0&amp;color=55c4e4" width="500" height="375" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/53742583">Visualization of GPS data, iteration 2</a> from <a href="http://vimeo.com/user7223162">Bert Balcaen</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>However, at the moment I&#8217;m stuck on how to pick the right colors. The Unfolding library uses the <a href="http://glgraphics.sourceforge.net/">GLGraphics</a> for drawing maps, making the whole thing fast by using OpenGL. It also makes some basic things more complicated. For example: it seems that the <a href="http://www.processing.org/reference/get_.html">get()</a> function to find a color&#8217;s pixel doesn&#8217;t work as it should. I think some sort of offset is applied.</p>
]]></content:encoded>
			<wfw:commentRss>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/progress-on-gps-visualization-project-for-the-data-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project plan GPS visualization project for the data workshop</title>
		<link>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/project-plan-gps-visualization-project-for-the-data-workshop/</link>
		<comments>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/project-plan-gps-visualization-project-for-the-data-workshop/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 16:21:00 +0000</pubDate>
		<dc:creator>balcaen.bert@iaac.net</dc:creator>
				<category><![CDATA[Bert Balcaen]]></category>
		<category><![CDATA[Int Programming]]></category>
		<category><![CDATA[Students]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[bert_anti_map_viz]]></category>

		<guid isPermaLink="false">http://legacy.iaacblog.com/mai2012-2013-programming/?p=401</guid>
		<description><![CDATA[Core of the idea Walking brings the city alive. The piece will visualize data from walks and runs. We all create our own version of the city. The visualization will not include a typical map &#8211; it will show how we create Barcelona with our walks. People watching the piece might be able to recognize [...]]]></description>
				<content:encoded><![CDATA[<h2>Core of the idea</h2>
<ul>
<li>Walking brings the city alive. The piece will visualize data from walks and runs.</li>
<li>We all create our own version of the city. The visualization will not include a typical map &#8211; it will show how we create Barcelona with our walks. People watching the piece might be able to recognize neighbourhoods from the patterns generated by the walks.</li>
<li>I will focus on how walking is an act that exists only in the moment. The route will not be shown in its entirety.</li>
<li>The visualization of the location trail will use the standard map colors. This can help people to guess where to walker is, and will also reveal something about the qualities of the space used during the walk: main roads, sidewalks, buildings, parcs, …</li>
<li>Each GPS record is visualized as a line. Length is inversely related to speed. Short lines = fast. Long = slow. Direction of the line correspond to the compass.</li>
<li>Add basic info display with speed etc.</li>
</ul>
<h2>Phase 2: multiple routes</h2>
<ul>
<li>Check with running file, see if it’s different enough.</li>
</ul>
<h2>Phase 3: POI data</h2>
<ul>
<li>POI data is displayed along the route. The amount of POI’s displayed depends on the speed in a segment of a route. Slow sections have more POI’s.</li>
<li>POI’s popup with name when passing by, and disappear when moving further.</li>
<li>Data sources for POI’s: Foursquare.</li>
<li>Add street names to info display.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/project-plan-gps-visualization-project-for-the-data-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data workshop – ideas, research, feedback</title>
		<link>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/data-workshop-ideas-research/</link>
		<comments>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/data-workshop-ideas-research/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 13:18:52 +0000</pubDate>
		<dc:creator>balcaen.bert@iaac.net</dc:creator>
				<category><![CDATA[Bert Balcaen]]></category>
		<category><![CDATA[References]]></category>
		<category><![CDATA[bert_anti_map_viz]]></category>

		<guid isPermaLink="false">http://legacy.iaacblog.com/mai2012-2013-programming/?p=385</guid>
		<description><![CDATA[Assignment Visualize GPS &#038; compass data recorded with AntiMap. Notes on using Antimap I experimented a bit with the iPhone version of the app. It works well. Here are a few things that are good to know: The app should stay in the foreground. Don&#8217;t put your phone in stand by, don&#8217;t minimize the app, [...]]]></description>
				<content:encoded><![CDATA[<h2>Assignment</h2>
<p>Visualize GPS &#038; compass data recorded with <a href="http://theantimap.com/" target="_blank">AntiMap</a>.</p>
<h3>Notes on using Antimap</h3>
<p>I experimented a bit with the iPhone version of the app. It works well. Here are a few things that are good to know:</p>
<ul>
<li>The app should stay in the foreground. Don&#8217;t put your phone in stand by, don&#8217;t minimize the app, and don&#8217;t switch to another app. If you do this the recording will be stopped and there is no way to continue it. The CSV file is saved though, to in the theory you can start another session and somehow glue to the CSV&#8217;s together.</li>
<li>Using GPS requires a lot of energy. Best to have a full charge if you want to record a long session.</li>
<li>Rotation: I put it in the pocket of my shirt. It works well, but here is the trick: if you put in your pocket with the screen facing towards you, then the angle will be correct. If the screen is facing away from you you need to do 360 &#8211; the angle from the CSV to get the correct angle.</li>
</ul>
<p>I made a <a href="https://gist.github.com/4064702">quick and dirty sketch that visualizes the data on a map</a>.</p>
<h2>Idea: walking as a form of drawing that reveals the city</h2>
<h3>Inspiration: Michel de Certeau</h3>
<p><img src="http://1.bp.blogspot.com/-4Tc1yyMRhY0/T9yywwCQgEI/AAAAAAAAAKw/-Y9WthS2E_c/s320/de+certeau+practice+of+everyday+life.jpg" alt="" /></p>
<p>De Certeau is a French philosopher and sociologist from the 1960s. For him, walking in the city is a creative act. It is not the city planners that make the city, it&#8217;s the people in it that bring it to life he says. Here is a a <a href="http://www.cyberartsweb.org/cpace/politics/wodtke/DeCerteau.html" target="_blank">good summary on de Certeau</a>.</p>
<h3>Previous project: 35 days in NYC</h3>
<p><img src="http://www.bertbalcaen.be/wp-content/uploads/2012/09/nyc-openpaths.png" alt="" /></p>
<p>In a previous project I <a href="Here is something I did related to that: http://www.theworldneedsmoredreamers.net/35-days-in-nyc/">visualized 35 days of location data</a> recorded with OpenPaths. I like it because it maps my experience of the city &#8211; which is different from someone else&#8217;s and the official city map. It shows my New York. I also like it visually: it&#8217;s organic, instead of the typical straight lines between points.</p>
<p>This assignment could be a nice way to revisit that project and to elaborate it. Maybe an animation can be interesting. Or maybe I should only show an animated part of the trail, instead of the everything at the same time. Also: the data I used was not continuous, because OpenPaths works in a strange way and only takes a snapshot every once in a while.</p>
<h3>References</h3>
<p><img src="http://yesyesno.com/news/wp-content/uploads/2011/04/IMG_6011.JPG-575x383.jpg" alt="" /></p>
<p><a href="http://yesyesno.com/nike-collab-paint" target="_blank">YesYesNo did a similar project for Nike+</a>.  Here the link between data and visualization very abstract. Maybe it&#8217;s nice to have it tighter?</p>
<h3>Techniques</h3>
<p>I will use a particle system that emits particles at the current location (lat/long). Speed could influence how it reacts with other particles. Fast: repel other particles. Slow: attract. Compass: direction. I recorded a couple of different styles of walks: one very functional (from home to IAAC), one while running, another one going home with some detours, … Could be nice to have them all together according to same algorithm, and hopefully see some interesting differences. </p>
<h2>Feedback from Cristobal</h2>
<ul>
<li>Use <strong>colors</strong> from a real map, giving people hints about the areas where GPS data was recorded. &#8220;You could use a colour palette  that will be white (for streets), gray (for buildings) and green (for parks). I think it could be really easy to identify the visuals as an abstract representation of a map because we associate those colours to Google maps.&#8221; Great idea. I already have a basic Processing sketch that loads the GPS data and displays it on map. Shouldn&#8217;t be that hard to have it pick up the colors from the map and use these for the particles.</li>
<li>&#8220;In this case, it would be awesome if the app grabs the <strong>POI</strong> along your path, affecting the visuals in a special manner. It also make sense what you mentioned about the speed at which you travel as a way to set how much you can enjoy the trip (going slow = getting more details of the city) versus a fast transportation.&#8221; I thought about this before, but it seemed to conflict a bit with the idea of &#8220;people create the city&#8221; and when I think about POI data, McDonalds and Starbucks are the first things that come to mind. But maybe I should just explore Foursquare &#038; co a bit better, and see if there is a good way to filter out companies and administrative location and see what kind of data this gives. For example, the guys from the startup I used to work with had tagged the bench in the park next to our office.</li>
</ul>
<h2>Side note: on smartphones and GPS</h2>
]]></content:encoded>
			<wfw:commentRss>http://legacy.iaacblog.com/mai2012-2013-programming/2012/11/data-workshop-ideas-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
