google-fusion-tables

google service account example returns “Error refreshing the OAuth2 token { “error” : “invalid_grant” }”

匆匆过客 提交于 2019-11-30 22:50:05
My goal is to make the simplest query on Google Fusion Tables on behalf of my web app users. For that, I created a service account on google console. Here is the code: // Creating a google client $client = new \Google_Client(); // setting the service acount credentials $serviceAccountName = 'XXXXX.apps.googleusercontent.com'; $scopes= array( 'https://www.googleapis.com/auth/fusiontables', 'https://www.googleapis.com/auth/fusiontables.readonly', ); $privateKey=file_get_contents('/path/to/privatekey.p12'); $privateKeyPassword='notasecret'; // the default one when generated in the console

Search in Fusion Tables and Zoom to results

ⅰ亾dé卋堺 提交于 2019-11-30 06:06:22
问题 Hi all here's my situation: http://www.tamrielma.ps/skyrim/ I've added a search based on this well know example: https://developers.google.com/fusiontables/docs/samples/autocomplete But it's not enough :D and I want that the map zooms and centers on the basis of the search results (that's a single markers not a group of, so I imagine that's not a "bound related" solution). Thanks in advance for any suggestion 回答1: Interesting map. :-) I see you are already using the Google.visualization

FusionTables private table with OAUTH2

故事扮演 提交于 2019-11-30 05:00:43
Good pic by Tim Rosenberg that shows exactly how OAUTH2 work's: I'm kind a lazy to even start looking on this 2 files and test so I searched for easyest way to 1.get token 2.access with that token with help of gwt-oauth2 put it into index.php head : <script type="text/javascript" src="gwt-oauth2.js"></script> and this in body <script type="text/javascript"> (function() { var GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/auth"; var GOOGLE_CLIENT_ID = "CLIENT_ID"; //var PLUS_ME_SCOPE = "https://www.googleapis.com/auth/plus.me"; //var FusionTable_SCOPE = "https://www.googleapis.com/auth

How do I build more than 1 drop-down selector menu on the same table/layer in Google Fusion Table?

梦想的初衷 提交于 2019-11-29 17:40:48
I've created a series of Google Fusion Table maps on my site, Community Media Database, which allow the user to toggle on and off multiple layers. For each layer, I've also built ONE drop-down select menu, allowing the viewer to filter the displayed results based on that one selector. I'm at a point now where I need to create more than one drop down select menu for each layer. For exapmle, in the linked map, I'd like to allow the viewer to view access TV providers by not only management type, but also by carriage of local election-related programs, and a number of other fields, as well. I'm

“WHERE” clauses being ignored in Fusion Table Layer in Google Maps

ⅰ亾dé卋堺 提交于 2019-11-29 16:22:57
I am trying to use a Google Fusion table as a layer in Google maps via API. Just adding the layer to the Google Map using FusionTableLayer() works fine. I can see the map and all. The "fun" begins when I try to apply a filter (i.e. a "where clause") to the select query or to the Styles section. The filters just do not work! It does not throw any error. Map keeps on working. But the result set is not filtered down--as if the where clause wasn't even there. The same symptoms for the 'where' clause used for the Styles section. It is completely ignored. I have three different styles, which I want

403 error when making an SQL query for a Fusion Table

ぃ、小莉子 提交于 2019-11-29 14:48:38
I've been trying to migrate my project to new API, but I get the following error when trying out an SQL query such as the following: https://www.googleapis.com/fusiontables/v1/query?sql=SELECT * FROM 1KxVV0wQXhxhMScSDuqr-0Ebf0YEt4m4xzVplKd4&key=myKey Here is what gets returned: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured" } ], "code": 403, "message": "Access Not Configured" } } The following query does work, though: https://www.googleapis.com/fusiontables/v1/tables/1bTX-w0Lt6nT8jq4R0q2pwFvuN_X5iPDOKHWFhw/columns?key

Fusion Tables filter conditions OR

爱⌒轻易说出口 提交于 2019-11-29 14:16:54
According to https://developers.google.com/fusiontables/docs/developers_reference OR operations are not allowed as part of filter conditions. So I'm trying to come up with a creative way to solve the following: I have a fusion table backed google map with hundreds of places and want to filter it to only places that have 'tags' or a 'title' containing a search parameter. Ideally I could just use the following as my filter condition: tags CONTAINS IGNORING CASE 'searchterm' OR title CONTAINS IGNORING CASE 'searchterm' But the fusion table API simply doesn't allow it. So what to do? Make 2

Correct redirect URI for Google API and oauth 2.0

不问归期 提交于 2019-11-29 02:58:08
I am making an application with the Google Maps API. I want to be able to have one person on a computer, watch what another person has edited to a map. I am thinking of passing information of the map to a Google Fusion Table. The other person will be able to see everything as a layer. I would like for the program to just run from the user's browser and not build a website for it. To edit the fusion tables, I need to gain access/tokens. I am currently trying to use these there javascript script to accomplish this. ScriptSample.html , oauthWindow.html , and gwt-oauth2.js . This is the working

FusionTables private table with OAUTH2

房东的猫 提交于 2019-11-29 02:17:38
问题 Good pic by Tim Rosenberg that shows exactly how OAUTH2 work's: I'm kind a lazy to even start looking on this 2 files and test so I searched for easyest way to 1.get token 2.access with that token with help of gwt-oauth2 put it into index.php head : <script type="text/javascript" src="gwt-oauth2.js"></script> and this in body <script type="text/javascript"> (function() { var GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/auth"; var GOOGLE_CLIENT_ID = "CLIENT_ID"; //var PLUS_ME_SCOPE

Google apps script update fusion table from spreadsheet script

不想你离开。 提交于 2019-11-29 00:42:48
I would like to create an apps script in a google docs spreadsheet that will periodically copy rows from the sheet and insert them into a fusion table. Below I've pasted my best attempt, but it should be noted that I really want it to be posting a 2 column range, not that pair of values. That is just a placeholder. This link here describes how to talk to fusion tables http://code.google.com/apis/fusiontables/docs/developers_guide.html#Inserting But I dont understand how to write the script to achieve this. I've messed around with it a bunch and I think I have these problems -I'm not forming