如何在Google查询中显示区域

时间:2013-10-07 08:00:26

标签: ruby-on-rails rails-geocoder

我正在使用rails geocoder。到目前为止,只是直接使用它而不是通过ActiveRecord / Mongoid等。

我想在我的Google请求中指定区域,例如'AU'

我需要与Geocoder.search一起(或代替Geocoder.search)来实现这一目标吗?

1 个答案:

答案 0 :(得分:1)

尝试Geocoder.search("Paris", :region => 'au'),gem使用Google作为默认API,并且Google API接受的参数为here