2012年5月2日 星期三

科技資訊:如何使用Google Fusion Table製作活動地點地圖

http://www.google.com/fusiontables/public/tour/index.html

Gather, visualize and share data online

Don't have a Google Account?
Create one now
  • Visualize and publish your data as maps, timelines and charts
  • Host your data tables online
  • Combine data from multiple people
data table turns into map
Google Fusion Tables is a modern data management and publishing web application that makes it easy
to host, manage, collaborate on, visualize, and publish data tables online.

What can I do with Google Fusion Tables?

Import your own data
Upload data tables from spreadsheets or CSV files, even KML. Developers can use the Fusion Tables API to insert, update, delete and query data programmatically. You can export your data as CSV or KML too.
Visualize it instantly
See the data on a map or as a chart immediately. Use filters for more selective visualizations.
Publish your visualization on other web properties
Now that you've got that nice map or chart of your data, you can embed it in a web page or blog post. Or send a link by email or IM. It will always display the latest data values from your table and helps you communicate your story more easily.
Look at the Fusion Tables Example Gallery

http://northca.ncku.net/index.php?option=com_content&view=article&id=209:fusion-table&catid=59:technowledge&Itemid=126

1. 請先到Google Fusion的網址: http://www.google.com/fusiontables/public/tour/index.html
Step1
2. 使用您Gmail的帳號來登入
Step2
3. 點選左邊 New Table => New Empty Table
Step3
4. 點選Edit => Add Column 增加所需的縱向欄位
Step4
5. 編輯縱向欄位屬性,移動到適當位置
Step5
6. 點選Edit => Add row
Step6
7. 編輯內容
Step7
8. 編輯完後點選 File => Geocode
Step8
9. 點選Visualize => Map
Step9
10. 進到Configure Styles更改顯示樣式
Step10
11. 點選 Get embeddable link
Step11
12. Copy and Paste embeded code
Step12
13. 回到我們的網頁文章張貼,要Hide JCE Editor,才可以正常顯示ifram的 HTML embeded code.
Step13
14. 貼上剛剛copy的 embeded code
Step14
15. 前台就可以顯示Google地圖
Step15

關於共用資料fusion table

12 六月, 2009 (06:29) | 電腦與網路
這東西未來會和 Google Docs 的 Spreadsheets 結合吧… ?

剛看到一則消息,Google 的實驗室今天推出了一個叫 Google Fusion Tables 的新玩意兒的試用版,這是一個資料庫,不太像是一般常見的 SQL 那種關聯式資料庫,不過也有某種程度的相似性… 現在市場上有一個功能很像的產品叫做 Dabble DB,看來它的日子會很難過了 XD
連過去 Google Fusion Tables 用一下就知道,它可以讓你 upload / export 自己的資料 (每個 table 最大 100M,每人最多用 250M)、可以分享給某些人或全世界的人 (上面已經有一些範例可以看了)、大家可以同步更新 (就像 Google Docs 那樣)、每筆資料每個元素都可以加 comment;比較特殊的就是它的 Visualize 和 Merge,可以整合不同 table 間的資料 (可以想像成 SQL 裡的 JOIN 功能) 找出關係,還可以把最後的結果透過一小段 script 來 embed 在你的 HTML 裡面。我覺得它單獨作為一個產品好像有點單薄,整合了 Spreadsheets 的話或許比較有搞頭 ?!
PS. 說也奇怪,Google Squared 也是 Google Labs 旗下的東西,為什麼它會放在 http://www.google.com/squared,而 Google Fusion Tables 會放在 http://tables.googlelabs.com/ ?

Comments

Pingback from Google Labs:Fusion Tables | DreamersCorp.
Time 2009/07/23 at 1:51 上午
[...] Fusion Tables 允許你上傳 100MB 的表格文件,支持csv和xls-谷奥 Google Fusion Tables-小隔間裡的人生 Google Fusion Tables 數據融合表- 天津大學GoogleCamp | TJUGC 2009-07-11 01:12:54 Posted [...]

http://www.guao.hk/posts/google-fusion-tables-allow-upload-100mb-csv-or-xls-file.html

The Civic Crowd


The Civic Crowd aims to map amazing initiatives and ideas for citizen-powered change, providing an open public domain resource where people can:

  • SHARE the Projects they are working on and get feedback and Support from the community.
  • DISCUSS Ideas for improvements to their area and help realise them through local collaboration.
  • OFFER their skills and Support for the benefit of the community.
  • APPRECIATE great Projects or Ideas to express their gratitude and backing.
  • PROPOSE Actions they are willing to take to help others realise their Projects.
  • VOLUNTEER to Support each other to turn Proposals into reality.

The Civic Crowd is inspired by the Compendium for the Civic Economy, Hand Made, the Community Lover's Guide to the Universe series, and the Britain's 50 Top New Radicals project by The Observer and NESTA; but the map belongs to everyone...
This infrastructure was designed by 00:/, Social Spaces, and Cassie Robinson. Special thanks to NESTA and the Hub Islington. The Civic Crowd is sponsored by Design Council.

http://www.theciviccrowd.org/

2012年5月1日 星期二

運用Google Map API解決旅行業務員問題(Traveling Salesman Problem)

運用Google Map API解決旅行業務員問題(Traveling Salesman Problem)

http://gis.rchss.sinica.edu.tw/google/?p=4221

旅行業務員問題 (Traveling Salesman Problem) 是個有名的難題(這是個 NP-Hard 問題),旅行業務員要到 n 個城市推展業務,n 個城市分別以 1,2,…,n 表示, 從 1 出發,只經過每個城市一次,最後再回到 1,假設 Cij 表城市 i 到城市 j 的旅行成本,問題為找出一個最小成本的路徑。如果對應到真實世界,就比方說物流車要送貨到 n 個地點,要尋求最便捷的路線,以減少物流的時間與油費。類似的問題還有旅遊路線規劃、探訪路線規劃等等。
現有的Google Map路徑規畫是指定兩點或多點來依序規畫路線,但卻沒有辦法一次給指定多點進行最佳路線規劃。此時,有幾個方式可以克服這個困難:
  1. 自行開發程式,例如利用已經別人開發好的API"TSP Solver for Google Maps API"來進行解算。
  2. 利用別人開發好的Web App,例如OptiMap – Fastest Roundtrip Solver
不過在使用上仍須注意,不要一次給太多要納入規劃的點位,因為計算複雜度 (computational complexity) 回隨著n值呈指數上升,在n值相當大時,往往只能求得近似路徑而非最佳路徑。

Google Latitude與天氣

Google Latitude與天氣http://www.hksilicon.com/kb/articles/28783/Google-Latitude


經常會有一些沒有用的想法,這次是打算把Google Latitude和天氣預報結合起來。顯示用戶實時所在地的天氣信息。
實現起來非常簡單,首先從Google Latitude獲得JSON信息,https://www.google.com/latitude/apps/badge/api?user=-X&type=json,其中X為用戶的19位Google Latitude ID。
例如我的Google Latitude JSON信息如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [18.0248728, 59.3828018]},
"properties": {
"id": "-X",
"accuracyInMeters": 60,
"timeStamp": 1296208549,
"reverseGeocode": "Solna Municipality, Sweden",
"photoUrl": "https://www.google.com/latitude/apps/badge/api?type=photo&photo=",
"photoWidth": 96,
"photoHeight": 96,
"placardUrl": "https://www.google.com/latitude/apps/badge/api?type=photo_placard&photo=r&moving=false&stale=false&lod=1&format=png",
"placardWidth": 56,
"placardHeight": 59
}
}
]
}
從中抓取出coordinates值,也就是經度與緯度,18.0248728, 59.3828018
使用wunderground的api獲得當時的天氣信息的XML
http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=59.3829104,18.0248496

自行車隊構想的開始

希望能夠使用GOOGLE MAP 將騎單車的朋友的位置連接起來, 需要使用免費服務, 每個人有一台ANDROID 手機, 隊長可以設定群組後, 將朋友顯示在地圖上, 還可以自動設定路線後, 發布給每個朋友, 最後可以自動警告有沒有人速度太慢,  離隊太遠, 或是偏離航道.
最後, 希望可以連接全球的系統, 在GOOGLE Earth上看到全球移動的車隊有多少個, 移動速度...等等統計資料.

為了完成這個APP+Service, 我想試試看使用Google Places API.

首先到了有關Places API (應該是Google Map的一部份??): https://developers.google.com/maps/documentation/places/

還有"站在Google肩膀上:LBS廠商再也不用自建景點資料:" http://techorange.com/2010/11/02/scvngr-lbs-on-google-place-api/

接著到了Google Latitude API : https://developers.google.com/latitude/v1/getting_started?hl=zh-TW

還有 Latfy: http://latifymobile.com/




這篇文章應該很接近我想要的:

Google Latitude 地圖縱橫即時追蹤你我位置,簡單試玩筆記 http://playpcesor.blogspot.com/2009/02/google-latitude.html

他的延伸閱讀:
另外LBS服務閱讀: