0

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?

Martin Capodici
  • 1,486
  • 23
  • 27

1 Answers1

1

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

tihom
  • 7,923
  • 1
  • 25
  • 29