我正在使用Geocoder gem,它工作正常。现在我尝试升级 google_premier 低于错误
1.9.2p320 :001 > Geocoder.search("Hyderabad")
Geocoding API's response was not valid JSON.
=> []
我在 config/initializers/geocoder.rb 中添加了新文件,这是我的配置设置
Geocoder::Configuration.lookup = :google_premier
Geocoder::Configuration.api_key = "xxx-key"