Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top