CAVEDU教育團隊技術部落格 / MIT App Inventor

[App Inventor 教學]Google Fusion Tables 統計地圖

✍ CAVEDU 阿吉 - 雜工📅 2014-08-13👁 887
http://www.appinventor.tw/fusion_tables <- aia source檔請由本頁下載

功能說明

運用 Google Fusion Tables 來儲存資料(Date、Note),並使用WebViewer 元件來顯示 Google Fusion Tables。Google Fusion Tables 讓您能以更簡易的方式建立各類 GIS 統計地圖。

畫面製作說明

Label(標籤)、WebViewer、FusiontablesControl、TextBox(文字輸入塊)、Button(按鈕)

元件類別 父類別 名稱 該元件用途
Label User Interface Label1 顯示(Date(YYYY-MM-DD))
TextBox User Interface Date 輸入框
Label User Interface Label2 顯示(Note)
Button User Interface Submit 送出訊息
Label User Interface Confirmation 顯示回傳的訊息
WebViewer User Interface WebViewer1 取得回傳內容
FusiontablesControl Storage FusiontablesControl1 使用 Google Fusion Tables 來儲存傳送的訊息

 

程式說明

Step1 宣告變數。

TABLE_URL:Fusion Tables的公開網址

TABLE_ID:Fusion Tables的ID

API_KEY:Fusion Tables的API密鑰

 

建立Fusion Tables

進入https://support.google.com/fusiontables/answer/2571232

此為Fusion Tables的公開網址

[1p4...Pf4] 此為Fusion Tables的ID

取得Fusion Tables的API密鑰

進入https://code.google.com/apis/console/

 
 
 

Step2:程式初始化時,設定Fusiontables的ApiKey,並設定WebViewer一開始要開啟的網頁 URL。

 

Step3:呼叫 procedure副程式,將值傳送給Fusion Tables 伺服器。

 

Step4:取得Fusion Tables 伺服器回傳的訊息並顯示在 WebViewer中。

 

手機畫面

  
 

本文發表於MIT App Inventor,並標記MIT App Inventor、程式教學。

相關文章 📎

Arduino首次接觸就上手 - 藍牙4.0篇01_控制LED亮滅

2021-05-10

【App Inventor 路徑規劃專題】使用 Navigation 導航元件

2020-08-17

MIT App Inventor 重磅更新!Personal Audio Classifier 聲音辨識

2020-04-27

App Inventor 上傳資料到 Google試算表 - 作法1結合Google表單

2020-03-09

留言 💬 (0)

還沒有留言,來當第一個。