找 ip to location 解決方法的時候, 看到了這篇: APIs for Finding Location
原來 Google 提供了兩種找使用者位置的 APIs, 第一種是比較簡單的使用 ip address 去換. 使用的是 Google AJAX API 裡面多了一個 google.loader.ClientLocation 可以獲得位置的資料.
第二種比較精確的則是使用 Gears 0.4 之後的 Geolocation API 可以透過 ip/GPS 等方式來取得, 不過缺點是要安裝 Google Gears 目前並非每種瀏覽器都可以使用.
Tuesday, October 7, 2008 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment