2015-07-19 140 views
2

我對基本問題表示歉意,我剛開始使用Geonames。如何獲取geonames API密鑰

紅寶石geokit寶石包含使用國地名以下指令:

# To use this service either free or premium, you must register a key. 
# See http://www.geonames.org 
Geokit::Geocoders::GeonamesGeocoder.key = 'KEY' 

我已經註冊的國地名網站,但我不能找出如何爲自己的API密鑰。我看遍了geonames網站,但找不到看起來這樣做的頁面。

它必須以某種方式可能。誰可以給我解釋一下這個?

回答

3

只需註冊免費服務the geonames.org login page Geonames使用username參數來計數已發送的請求。

由於您的信用有限,請務必在開始生產之前設置請求緩存。