<?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>SpatialKey blog &#187; Google Maps</title>
	<atom:link href="http://blog.spatialkey.com/tag/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spatialkey.com</link>
	<description>Geotemporal visualization: theory + solutions</description>
	<lastBuildDate>Wed, 30 Jun 2010 12:58:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mapping Parking Tickets in San Francisco (and the problem with simple map markers)</title>
		<link>http://blog.spatialkey.com/2009/03/mapping-parking-tickets-in-san-francisco-and-the-problem-with-simple-map-markers/</link>
		<comments>http://blog.spatialkey.com/2009/03/mapping-parking-tickets-in-san-francisco-and-the-problem-with-simple-map-markers/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 20:35:20 +0000</pubDate>
		<dc:creator>Doug McCune</dc:creator>
				<category><![CDATA[examples]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[heatmaps]]></category>
		<category><![CDATA[proportional symbols]]></category>

		<guid isPermaLink="false">http://blog.spatialkey.com/?p=227</guid>
		<description><![CDATA[The San Francisco Chronicle&#8217;s website, SFGate.com, has a nice map showing the top locations in San Francisco where parking citations are issued. The dataset includes individual locations where 100 or more citations were issued, so it&#8217;s a map of the single places you&#8217;re most likely to get ticketed (but note that it doesn&#8217;t include the [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_226" class="wp-caption alignright" style="width: 245px"><a href="http://www.sfgate.com/maps/parkingtickets/" onclick="pageTracker._trackPageview('/outgoing/www.sfgate.com/maps/parkingtickets/?referer=');"><img class="size-medium wp-image-226" title="Parking Ticket Map from SFGate.com" src="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot099-271x300.jpg" alt="Parking Ticket Map from SFGate.com" width="235" height="261" /></a><p class="wp-caption-text">Parking Ticket Map from SFGate.com</p></div>
<p>The San Francisco Chronicle&#8217;s website, <a href="http://sfgate.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/sfgate.com?referer=');">SFGate.com</a>, has a <a href="http://www.sfgate.com/maps/parkingtickets/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.sfgate.com/maps/parkingtickets/?referer=');">nice map</a> showing the top locations in San Francisco where parking citations are issued. The dataset includes individual locations where 100 or more citations were issued, so it&#8217;s a map of the single places you&#8217;re most likely to get ticketed (but note that it doesn&#8217;t include the full dataset, only the top 576 locations). They&#8217;ve created a map that uses the Google Maps API and they overlay their own custom markers that use graduated circles to represent the number of tickets issued at any given location. The size of the circle indicates how many tickets were issued, and each unique location has one circle centered on the location.</p>
<p>But there are a few problems with this visualization. The two most obvious things that stand out are the difficulty in understanding the density of many map markers all overlapping one another, which is seen in the north-east area of the city (downtown), and the second issue is the fact that the one huge marker at the southern edge of the city makes every other marker look tiny and unimportant. A single glance at this map would lead me to conclude that there must be more parking citations issued in the southern area of the city than in the other areas. But that&#8217;s the wrong conclusion to draw.</p>
<h3>The problem with overlapping markers</h3>
<p><img class="alignleft size-full wp-image-228" style="border: 1px solid silver; margin-right: 15px; margin-top: 0px; margin-bottom: 15px;" title="overlapping markers" src="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot104.jpg" alt="overlapping markers" width="155" height="140" />One of the big issues that we see with maps that contain a lot of data points is that the kind of markers that are typically used in online maps start to become unreadable when you get dense areas of data. In this dataset there aren&#8217;t even that many data points (576 total), but the concentration downtown makes that area a jumble of markers.</p>
<p>You can tell that there are a lot of points in the area, but you can&#8217;t tell how many there are. And in this case, each marker doesn&#8217;t just represent a single point, the size of the circle also represents how many tickets were issued at that location, so ideally I would be able to look at this map and tell where the most citations are issued, but I simply have no way of knowing that.</p>
<h3>The problem with relative sizing of individual markers</h3>
<p><img class="alignright size-medium wp-image-237" style="border: 1px solid silver; margin-left: 0px; margin-left: 15px;" title="One outlying point throwing off the rendering" src="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot105-300x270.jpg" alt="One outlying point throwing off the rendering" width="190" height="170" />The second problem has to do with that large marker near the bottom of the map. This map leads to a confusing conclusion because every map marker, regardless of how close it is to other markers (or even if it overlaps others) is showing the value of a single location. This means that if there are 10 locations all within a single city block that each have 100 citations, and then there is a separate location elsewhere in the city that has 500 citations, that location with 500 citations will appear 5 times as large as any of the other locations, and you will have no way of knowing that within a single block there were actually 1,000 citations issued (making that block a far more likely area for receiving a parking ticket). What we really want to see is the total citations issued within a certain geographic radius, so we can view which areas have the most total citations, not just the single locations.</p>
<h3>SpatialKey to the rescue with aggregated heatmaps</h3>
<p>To try to better understand the underlying data, I decided to bring the same dataset into <a href="http://spatialkey.com" onclick="pageTracker._trackPageview('/outgoing/spatialkey.com?referer=');">SpatialKey</a>. The data on the SFGate website was loaded into their Google Maps application in JSON format, and to get it into SpatialKey I simply grabbed the JSON feed, opened it up in a text editor, and did a bit of find and replace to convert the data to CSV (the whole process took a few minutes to get the CSV ready for import). Then I imported the data using the SpatialKey CSV import feature (for more on this and other features, check out the <a href="http://spatialkey.com/features/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/spatialkey.com/features/?referer=');">feature videos</a>).</p>
<p>Once I had the data imported I loaded up a new report with a map and here&#8217;s what I got:</p>
<div id="attachment_246" class="wp-caption aligncenter" style="width: 545px"><a href="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot106.jpg"><img class="size-large wp-image-246" title="Heatmap of San Francisco parking tickets" src="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot106-535x377.jpg" alt="San Francisco parking citations heatmap in SpatialKey (click to enlarge)" width="535" height="377" /></a><p class="wp-caption-text">San Francisco parking citations heatmap in SpatialKey (click to enlarge)</p></div>
<p>This map shows a heatmap that visualizes the total citations issued. But the important difference is that the clusters of data points downtown are aggregated by geography so items that are very close together are all factored into the hotspots. Now we&#8217;re able to see the real relationship between areas of the city. That point down in the southern part of the city is still visible, but it becomes clear that there are far more citations issued downtown. This deeper understanding is possible because we aren&#8217;t simply throwing a marker for each point up on the map, we&#8217;re aggregating the total value for all markers within a certain geographic area.</p>
<p>If we zoom in downtown we can see another view that shows the more specific hotspots:</p>
<div id="attachment_231" class="wp-caption aligncenter" style="width: 545px"><a href="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot078.png"><img class="size-large wp-image-231" title="Heatmap of parking citations in downtown San Francisco" src="http://blog.spatialkey.com/wp-content/uploads/2009/03/screenshot078-550x350.png" alt="Heatmap of parking citations in downtown San Francisco" width="535" height="340" /></a><p class="wp-caption-text">Heatmap of parking citations in downtown San Francisco (click to enlarge)</p></div>
<p>Looks like they get people along Market street. Right at the Westfield Shopping Center is a prime spot, as well as the intersections of  Market and O&#8217;farrell and near Market and Sutter (if you&#8217;re parking there, look out!). You can see that out of the total parking citations in this dataset (82,911) about 42% (34,695) are issued just within the downtown area shown in the above screenshot.</p>
<p>I hope this example shows how important it is to be able to tell the right story with your data. SpatialKey gives you the flexibility to visualize your data in complex ways that go beyond simply throwing markers on a map. Have you run into similar problems with the current tools for web-based mapping? If so let us know in the comments and then <a href="http://spatialkey.com/signup/index.cfm" onclick="pageTracker._trackPageview('/outgoing/spatialkey.com/signup/index.cfm?referer=');">sign up for the SpatialKey beta program</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spatialkey.com/2009/03/mapping-parking-tickets-in-san-francisco-and-the-problem-with-simple-map-markers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
