google-fusion-tables

Fusion Table and Google Service Accounts

a 夏天 提交于 2019-12-03 13:31:31
问题 I am trying to use Google Service Accounts to access Fusion table from my AppENgine Java App. This code snippet is used to obtain OAuth access token: ArrayList<String> scopes = new ArrayList<String>(); scopes.add("https://www.googleapis.com/auth/fusiontables"); DataAccessService fusionTablesService = EnvironmentServic.getEnvironmentService().getService(DataAccessService.class); String token = AppIdentityServiceFactory.getAppIdentityService().getAccessToken(scopes).getAccessToken(); I was able

Fusion Table and Google Service Accounts

我是研究僧i 提交于 2019-12-03 03:28:11
I am trying to use Google Service Accounts to access Fusion table from my AppENgine Java App. This code snippet is used to obtain OAuth access token: ArrayList<String> scopes = new ArrayList<String>(); scopes.add("https://www.googleapis.com/auth/fusiontables"); DataAccessService fusionTablesService = EnvironmentServic.getEnvironmentService().getService(DataAccessService.class); String token = AppIdentityServiceFactory.getAppIdentityService().getAccessToken(scopes).getAccessToken(); I was able to successfully obtain access token, but when I am trying to execute CREATE TABLE query i got: <HTML>

POST request to UPDATE rows

折月煮酒 提交于 2019-12-02 19:57:23
问题 I'm kind of newbie in javascript so I'm looking for some help to create a way to drag and drop geocoding markers, to allow interactive changing addresses. I believe this is possible by updating the LOCATION column rows. The first step to do it is 'sending' a POST request, right? Well, so I would like to ask if somebody can show me an example, because I don't make any idea how to write and put this POST request in my code! 回答1: You must POST to the Fusion Tables API to update a column, but

zend google fusion table update

荒凉一梦 提交于 2019-12-02 14:01:33
问题 As anyone any idea on how to update a table in google fusion using Zend framework? I can get the data: $url = "https://www.google.com/fusiontables/api/query?sql=SELECT%20name%20FROM%201695591"; $data = $gdata->get($url); $postcodes = $data->getRawBody(); But have no idea how to update a row ... I know I have to 'call' this url, but no idea how : UPDATE table_id SET column_name = value {, column_name = value }* WHERE ROWID = row_id Thank you 回答1: Try this class http://barahlo.semero.com

GMaps API + Fusion Tables Stopped Working

人盡茶涼 提交于 2019-12-02 13:58:30
问题 I have an application which uses the Google Maps API and fusion tables which stopped working as of today (the code and Fusion tables databases weren't changed and were working yesterday.) I have checked the error log and didn't see anything. The page can be found at http://www2.ece.ohio-state.edu/~garryj/PassiveRadar/Passive%20Radar%20Coverage%20Tool.html I was hoping someone with a better Javascript background and more experienced debugging skills than I could spot the error quickly,

Google Fusion Tables With Maps - Link Table field to Map Info Window

这一生的挚爱 提交于 2019-12-02 10:22:50
I'm pretty much a rookie to using Google Fusion Tables/maps. We have a business directory with company names and addresses. I can get the geocoded map markers for each of their locations to display side by side with the Table "facility name" column. How do I code the facility names so the user can click the company/facility name and jump to the specific map marker info box for that facility in the map? Any help will be appreciated! Once the user clicks on the company name, you can create a new InfoWindow object manually. Then set it's position and content and finally put it on the map: var map

POST request to UPDATE rows

梦想的初衷 提交于 2019-12-02 09:25:37
I'm kind of newbie in javascript so I'm looking for some help to create a way to drag and drop geocoding markers, to allow interactive changing addresses. I believe this is possible by updating the LOCATION column rows. The first step to do it is 'sending' a POST request, right? Well, so I would like to ask if somebody can show me an example, because I don't make any idea how to write and put this POST request in my code! You must POST to the Fusion Tables API to update a column, but currently you can't do this directly from JavaScript as Google does not set the CORS headers to allow cross

Adding Tabs in infowindows (googlemaps api, google fusion tables - kml import)

北城以北 提交于 2019-12-02 09:17:02
I feel like I'm getting close but missing something here. My source (polygon) data is in fusion tables, and I would like to create a 2 tab info window and call data from the table into it. Seen a bunch of examples (see: https://fusion-tables-users-group.googlegroups.com/attach/ec0975e69edcfb96/infowindow_tabs_5.html?pli=1&view=1&part=4 for one), so I have hope this is doable... My code (from the initialize function) is below. Right now, I am trying specifically to query the values (using e.row) from the field 'ROOF_TOTAL' to put into tab 1 (for initial testing purposes). function initialize()

Authenticate application with OAuth to access Fusion Tables

僤鯓⒐⒋嵵緔 提交于 2019-12-02 08:28:11
问题 I'm currently building a mobile web application that uses Google Fusion Tables as it's database. There is a good OAuth 2.0 guide for Fusion Tables, but the described process includes a user, that wants to give my application the permission to access his Fusion Tables. In my case, I own the Fusion Table (it is connected to my account), and all I want is to give users the permission to all CRUD operations on this table. To read from the public table is no problem at all, as it does not require

Requests exceeding maximum URL length in Fusion Tables layer

主宰稳场 提交于 2019-12-02 07:22:53
I'm using Fusion Tables layer on Google Maps. If I add a large where condition (where in 1000+ items), the layer does not load. <!DOCTYPE html> <html> <head> <meta content="initial-scale=1.0, user-scalable=no" name="viewport"> <meta charset="utf-8"> <title>GEO View</title> <style> html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; zoom: 0.7; -moz-transform: scale(0.8); -moz-transform-origin: 0 0; } </style> </head> <body> <div id="map"></div> <script> var arr = ['37159']; var draw_str = ['06037', '06043', '06057', '06065', '06079', '06097', '08011', '08037', '08051',