Kathryn Hurley
Developer Programs Engineer, Google
Sept 24, 2011
ONA 2011
What is Fusion Tables?
How can you use Fusion Tables?
Demo
Interactive visualizations
Examples
Data management system in the cloud that allows you to store, manage, visualize, and share your data.
*
* Source: Guardian "Deprivation mapped: how you show the poorest (and richest) places in England""CRIME_CODE","CRIMECODE_DESC","Date","Address","WEAPONTYPE"...Source: Downloaded from the cityofboston.gov
2407,"ANNOYING AND ACCOSTING","2011-09-17 23:53:00.000","PRINCETON ST, Boston, MA",...
803,"A&B ON POLICE OFFICER","2011-09-17 23:36:00.000","LINDEN ST, Boston, MA",...
802,"ASSAULT & BATTERY","2011-09-17 22:45:00.000","BLUE HILL AV, Boston, MA","HANDS"...
...
Go to docs.google.com
Select Create new > Table (beta)
Select the file to import
Set Table Metadata and Attribution
Data is imported, table created
Click the Share button in the top-right corner
Fusion Tables recognizes your location data, assigns type "Location"
Highlighted yellow means it hasn't been geocoded.
Select Visualize > Map (or bar chart, or line chart, etc.)
map = new google.maps.Map(document.getElementById('map_canvas'), {
center: new google.maps.LatLng(42.32302, -71.08841),
zoom: 11,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
layer = new google.maps.FusionTablesLayer({
query: {
select: 'Address',
from: 1554144
},
map: map
});
layer.setOptions({
query: {
select: 'Address',
from: tableid,
where: "'CRIMECODE_DESC' = '" + searchString + "'"
}
});
google.visualization.drawChart({
"containerId": "visualization",
"dataSourceUrl": "http://www.google.com/fusiontables/gvizdata?tq=",
"query": "SELECT WEATHER,COUNT() FROM 1554144"
+ where + " GROUP BY WEATHER",
"chartType": "PieChart",
"options": {
"title":"Weather"
}
});
function changeChart(crime) {
where = " WHERE CRIMECODE_DESC CONTAINS '" + crime + "'";
drawVisualization();
}
General questions:
googletables-feedback@google.com
API questions:
fusion-tables-users-group@googlegroups.com
+Kathryn Hurley, @GoogleFT
API Documentation:
code.google.com/apis/fusiontables/