google-fusion-tables

OAuth, OAuthConfig, & Google Apps Script (Fusion Table API - SQL Insert Problems)

試著忘記壹切 提交于 2019-12-06 17:12:11
问题 I am developing a google apps script function that will insert a row into a fusion table. Most of my fusion table interface works fine but this is my first attempt at an sql 'POST' query. Based on the documentation here I should be able to put the sql statement within the POST body. I've reduced myself to the OAuth Playground for troubleshooting and I keep getting the following error. I've been trying to use the sql insert statement sql=INSERT INTO {fusionId} (HeadingName) VALUES (ValueOne)

Invalid Credentials Error when passing Oauth 2.0 Access Token to Fusion Tables API in PHP

蓝咒 提交于 2019-12-06 03:35:49
I've reached my frustration point and am asking for help. I spent all weekend learning new things in order to try and figure out how to use the goolge fusion tables API which requires authentication via Oauth 2.0. I started developing in php solely because I was able to find some examples that helped me down the path. Prior to a few days ago I knew very little in this area and if you're wondering why I tried a certain approach in my code below instead of some other approach the simple answer is that this is all I found. I was able to successfully develop a page that would solicit a code

Google maps infowindow events on open

此生再无相见时 提交于 2019-12-05 11:31:19
问题 Hi I am using google fusion tables and google maps, the thing is that my markers show up correctly, but I want to insert some images into the inforwindow. So the thing is that I do queries to find the location of those markers, and those markers can have many categories (that is why i couldnt use a merged table). And when the user clicks on the marker, the infowindow displays and shows the info on the marker. It used to include just a text of the categories, but I want to retrieve the icon

Google Maps - FusionTablesLayer to Polygon

北城余情 提交于 2019-12-05 02:43:43
I'm using Google Maps API and jquery-ui-maps (this questions has nothing to do with the plugin which is working great). I've created a FusionTablesLayer with all countries except Mozambique. The user could place a marker and reposition it. I'm trying to find a way to block the drag (or alert the user, it doesn't matter now) if he tries to place the marker outside Mozambique (over the FusionTablesLayer). After some research I discover this method: containsLocation(point:LatLng, polygon:Polygon) , which computes whether the given point lies inside the specified polygon. It should receive a

How to toggle a layer on/off using Google Maps API v3 and Fusion Tables?

ε祈祈猫儿з 提交于 2019-12-05 02:37:18
问题 I am trying to make a map with multiple fusion table layers. Each fusion table layer will show the number of cartel-related homicides in a particular year (including the sum of all years). Since each layer has the same geometry, I need to let the user view one layer at a time. Is there a way to toggle each layer on/off using a radio button? I've searched for tutorials or examples for a few hours and have come up empty, so I'm hoping someone here can help. Here is a link to a copy of the map:

Configuring heatmap overlays using Google Maps API

牧云@^-^@ 提交于 2019-12-05 01:06:49
问题 I'm trying to use the Google Maps API to generate a heatmap of locations. It works, but the result is not very useful, since the parts rendered by the heatmap are small are hard to see: Nothing in the docs suggest a way to expand the heatmap to render in larger blobs. Is there an undocumented way of doing this or is this just a limitation of the API? Do I just need more data points? I've pasted the code I'm using below. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device

OAuth, OAuthConfig, & Google Apps Script (Fusion Table API - SQL Insert Problems)

房东的猫 提交于 2019-12-04 20:39:03
I am developing a google apps script function that will insert a row into a fusion table. Most of my fusion table interface works fine but this is my first attempt at an sql 'POST' query. Based on the documentation here I should be able to put the sql statement within the POST body. I've reduced myself to the OAuth Playground for troubleshooting and I keep getting the following error. I've been trying to use the sql insert statement sql=INSERT INTO {fusionId} (HeadingName) VALUES (ValueOne) and I have tried various variations of this statement to no avail. Please help me determine the proper

Determine center/bounding box of FusionTablesLayer in Google Maps API

早过忘川 提交于 2019-12-04 20:20:51
is there any way I can determine central point of FusionTablesLayer? I was thinking about using some event to handle the layer rendering but without any luck. Thanks! The following code shows how to retrieve data from a Fusion Table using the Chart Tools API, then use that data to fit the bounds of the map to the data in the Fusion Table. This will hopefully give you some ideas for how to find the center! <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <style type="text/css"> body { height: 100%; margin: 0px; padding: 10px; } #map-canvas {

Google AppEngine to Fusion Tables with Service Accounts

别等时光非礼了梦想. 提交于 2019-12-04 17:56:35
Late to the game on migrating to the /v1 Fusion Table API but no holding off any longer. I'm using Python on AppEngine and trying to connect to Google Fusion Tables with Google Service Accounts (the more complicated cousin of OAuth2 for server side apps that uses JSON Web Tokens) I found another question that pointed me to some documentation for using Service Accounts with Google Prediction API. Fusion Table and Google Service Accounts So far I've got import httplib2 from oauth2client.appengine import AppAssertionCredentials from apiclient.discovery import build credentials =

How to get OAuth2 access token with Google API PHP client?

孤人 提交于 2019-12-04 14:43:48
I'm trying to get an OAuth access token to import some data into the fusion table. I'm trying to use the Google API PHP client. I have created a service account for that purpose, and am using the code, mostly from the serviceAccount example: function access_token() { $client = new Google_Client(); $client->setAuthClass ('Google_OAuth2'); // ^ Don't know if this line is required, // ^ but it fails just as well without it. $client->setApplicationName ('Mysite.dom.ain'); $client->setAssertionCredentials (new Google_AssertionCredentials ( 'MANY-NUMBERS-LETTERS-DASHES@developer.gserviceaccount.com'