Google Fusion Tables API Inneke Ponet
Google Fusion Tables: Store, share, query and visualize data. API to run SQL-like queries applications that use Fusion Tables as a database. Google Fusion Tables
Send API statements to Goolge Fusion Tables: queries: HTTP GET requests; inserts, updates and deletes: HTTP POST requests. The API is language agnostic. It doesnt have a mechanism for submitting the GET and POST requests. Use existing code libraries (Java, Javascript,.NET, PHP, Python, Objective-C). Writing an application
Exploring tables Query example TABLES table id,name ,StoreInventory column id,name,type col0,Product,string col1,Inventory,number
Google Maps API Fusion Tables Layer Google Chart Tools Data source Fusion Tables with other APIs
Geographic data in a Fusion Table: Geocode of a street address, a name of a city, a name of a country; latitude, longitude pair; KML. FusionTablesLayer: interface to a Fusion Table, automatic rendering of the location data, clickable overlays. Google Maps
var chicago = new google.maps.LatLng( , ); map = new google.maps.Map(document.getElementById('map_canvas'), { center: chicago, zoom: 12, mapTypeId: 'roadmap' }); var layer = new google.maps.FusionTablesLayer({ query: { select: 'address', from: '198945', where: 'ridership > 5000' } }); layer.setMap(map); Example Google Maps
Google Chart Tool
google.load('visualization', '1', {'packages':['corechart']}); function changeData() { var queryText = encodeURIComponent( "SELECT Year, Austria, Bulgaria, Denmark, Greece FROM "); var query = new google.visualization.Query( ' + queryText); query.send(getData); } function getData(response) { new google.visualization.BarChart(document.getElementById('visualization')). draw(response.getDataTable(), {title:"Yearly Coffee Consumption by Country", width:600, height:400, vAxis: {title: "Year"}, hAxis: {title: "Cups"}} ); } google.load('visualization', '1', {'packages':['corechart']}); function changeData() { var queryText = encodeURIComponent( "SELECT Year, Austria, Bulgaria, Denmark, Greece FROM "); var query = new google.visualization.Query( ' + queryText); query.send(getData); } function getData(response) { new google.visualization.BarChart(document.getElementById('visualization')). draw(response.getDataTable(), {title:"Yearly Coffee Consumption by Country", width:600, height:400, vAxis: {title: "Year"}, hAxis: {title: "Cups"}} ); } Example Google Chart
google.load('visualization', '1'); function loadData(year) { var queryText = encodeURIComponent( "SELECT 'Male name', 'Reverse rank FROM WHERE year = '" + year + " ORDER BY 'Male name'"); var query = new google.visualization.Query( ' + queryText); query.send(getData); } function getData(response) { var outputDiv = document.getElementById('visualization'); var tc = new TermCloud(outputDiv); tc.draw(response.getDataTable(), null); } google.load('visualization', '1'); function loadData(year) { var queryText = encodeURIComponent( "SELECT 'Male name', 'Reverse rank FROM WHERE year = '" + year + " ORDER BY 'Male name'"); var query = new google.visualization.Query( ' + queryText); query.send(getData); } function getData(response) { var outputDiv = document.getElementById('visualization'); var tc = new TermCloud(outputDiv); tc.draw(response.getDataTable(), null); } Example Google Chart 2
Example Fusion Tables
Example Fusion Tables
Custom applications (HTTP GET and POST). Google Maps with FusionTableLayer. Google Chart and Fusion Tables as data source. Visualization in an HTML page. Fusion Tables in other applications