google-fusion-tables

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

谁说我不能喝 提交于 2019-12-13 11:35:25
问题 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

limit in the geolocation of multiple points in google fusion tables

混江龙づ霸主 提交于 2019-12-13 09:27:17
问题 I'm trying to geolocate these 27 points at the same time, in the same row. But the process returns only the first 10 points, even if in the preview they are all 27 correctly geolocated. Why? Is there a particular limit to the number of points I can locate? <Point><coordinates>7.680237,45.064504,0.0</coordinates></Point> <Point><coordinates>7.681675,45.061957,0.0</coordinates></Point> <Point><coordinates>7.685044,45.060768,0.0</coordinates></Point> <Point><coordinates>7.686482,45.06029,0.0<

Load Fusion Table query value into JS variable?

我怕爱的太早我们不能终老 提交于 2019-12-13 08:56:51
问题 I'm attempting to place, what will eventually be a dynamically sized, partial opacity filled circle over the basic default google maps red location marker dot. Initially all locations in the table are marked. This code abstract then works fine to filter, and only display one place name at a time - on selection from the table populated drop-down list. My last section of code will draw a circle, if I insert static geo co-ords. But been scratching my head and searching in vain over the syntax

Drop down fusion table

落爺英雄遲暮 提交于 2019-12-13 08:14:57
问题 How to select user defined column using drop down box from fusion table which has around 50 columns.That column should be used for further queries.Is there any way to do it.I am new to Google map API. 回答1: Are you saying you don't want to hard-code the column names in your html? You want to get the columns names via javascript? If so you'll need to use the JSONP API. I've posted several examples which could be modified to just retrieve the column names from a FT. Change the query to: var

iconStyler for Fusion Tables (Google Maps) won't pull column data

爷,独闯天下 提交于 2019-12-13 08:08:52
问题 I am building a map using the Google Maps API and have hit a snag. In the table I have a column that labels the iconName for each marker ('mStyle', it's col3). In the following code I am trying to set the icon style based on the column values, and I've tried many, many different iterations that haven't worked. Including this one. What has perplexed me, is that replacing iconStyler:{} with iconName: 'grn_blank' (or whatever) does work. The documentation for markerOptions is here: https:/

Can I get a column formula for a fusion table from the API

不想你离开。 提交于 2019-12-13 05:21:09
问题 I'm trying to backup one of my fusion tables and would like to be able to use the API to do so. The trouble is I am not able to get the formula for a particular column, just the values. I'm able to describe the table and see the column info (id, name, and type) and then do a SELECT and get all the information in the table, but what comes back is the value, not the formula. Is there any way I can get the formula? 回答1: It is not possible to retrieve the formula in a column from the API. Please

Google Maps Fusiontable query where clause shows “data may still be loading”

↘锁芯ラ 提交于 2019-12-13 05:18:25
问题 I'm trying to filter some data in fusion tables and then show the result graphics. Code is: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>map</title> </head> <body> <div id="map-canvas" style="height:500px"></div> <script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> <script> function initialize() { var sloCenter = new google.maps.LatLng(46.119944, 14.815333); var map = new google.maps.Map(document.getElementById('map-canvas'), { zoom: 8, center:

Way to use Fusion Tables with the Google Maps API while maintaining privacy?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 05:09:43
问题 It's my understanding that the only way to use a private Fusion Table with the Maps API is if you're using the Business version of the API. Only public and unlisted tables can be used normally. I would really like to realize the performance benefits of Fusion Tables but am not interested in paying for a business license. My question is this: How secure could an unlisted table be? The data I'll be displaying is sensitive, but not critical. It is unlikely to be sought out specifically, or

How to toggle the colour of picked polygons on a Fusion Tables layer

一世执手 提交于 2019-12-13 04:45:16
问题 I want to toggle polygon styles Using the FT here: https://www.google.com/fusiontables/data?docid=1jgWYtlqGSPzlIa-is8wl1cZkVIWEm_89rWUwqFU and the quick fusion table wizard http://fusion-tables-api-samples.googlecode.com/svn/trunk/FusionTablesLayerWizard/src/index.html I thought it would be something like (where "Postcode district" is the column label in FT) google.maps.event.addListener(layer_0, 'click', function(e) { layer_0.set("styles", [{ where: "'Postcode district' = " + e.row['Postcode

“Data may still be loading”… but it's already there?

▼魔方 西西 提交于 2019-12-13 04:40:47
问题 So I'm running this code and all the points show up fine. But I still get the "Data may still be loading" tiles. I've double checked the table IDs, geocoding, column names etc... so now I'm at a loss. Anybody experience this before? function changeByZip(formResults) { geocoder.geocode( { 'address': formResults }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); map.setZoom(13); layer.setQuery("SELECT 'Address' FROM " +