2012-07-03 51 views
2

我可以從用戶的LatitudeLongitude獲得國家信息嗎?我知道應該很容易從Google的Geocoder API中獲取它。但是,有可能在不使用任何類似Google的服務的情況下推導出這些信息?從經緯度獲取國家名稱 - 無谷歌

您能否讓我知道?

+0

的** [國家代碼從經緯度位置重複(不使用地理編碼服務)](http://stackoverflow.com/questions/5154593/country-code-from-a-latitude-longitude-position-without-using-geocoding-service)** – hippietrail

回答

0

這樣做的唯一方法是使用第三方API或創建自己的數據庫,這是值得的更多工作。你有沒有期待,看看是否有geoip的數據庫,你可以下載您選擇的編程語言

編輯(或通用的一個?):This looks like it might have the data you need

+0

我們必須這樣做使用JavaScript和Application cache.Size限制在我們的案例中是一個問題。 – Apps