Try Geocoder.search("Paris", :region => 'au')
, the gem uses Google as the default API and the parameters that Google API accepts are given here
How to present region in Google query
-
30-06-2022 - |
Domanda
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?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow