Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top