Вопрос

I am using rails geocoder. So far just been using it directly not via ActiveRecord/Mongoid etc.

I would like to in my Google request specify the region, e.g. 'au'

What do I need to in combination with (or instead of) Geocoder.search to achieve this?

Это было полезно?

Решение

Try Geocoder.search("Paris", :region => 'au'), the gem uses Google as the default API and the parameters that Google API accepts are given here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top