Working with Javascript and Google Fusion Tables...help!
March 12, 2013 7:44 PM Subscribe
Working on an important open gov data project to support public schools. Need to know how to grab data from a single Google Fusion table cell using javascript...And of course, we are trying to stay up all night because we launch tomorrow. Help?
Taking my best guess at your circumstances, I suspect you're looking at doing something like this:
Getting started with the Google APIs Client Library for JavaScript
Loading an API and making a request
The Google APIs Explorer listing for Fusion Tables
Issuing SELECT statements with the Fusion Tables API
posted by Monsieur Caution at 8:33 PM on March 12, 2013
<script src="https://apis.google.com/js/client.js?onload=OnLoadCallback"></script> <script type="text/javascript"> gapi.client.load('fusiontables', 'v1', function() { console.log('loaded.'); }); gapi.client.setApiKey('API KEY HERE'); var restRequest = gapi.client.request({ 'path': '/fusiontables/v1/query', 'params': {'sql': 'SELECT ...'} }); restRequest.execute(function(resp) { console.log(resp); }); </script>Where you'd then see in the console the results of the query. I have not tried this--I'm just interpreting the docs:
Getting started with the Google APIs Client Library for JavaScript
Loading an API and making a request
The Google APIs Explorer listing for Fusion Tables
Issuing SELECT statements with the Fusion Tables API
posted by Monsieur Caution at 8:33 PM on March 12, 2013
« Older What to do when you're the asshole in the... | Aloof filter: how to re-engage yourself when you... Newer »
This thread is closed to new comments.
posted by Monsieur Caution at 8:08 PM on March 12, 2013