Class: Graticule::Geocoder::Google
- Inherits:
-
Rest
- Object
- Rest
- Graticule::Geocoder::Google
- Defined in:
- lib/barometer/extensions/graticule.rb
Instance Method Summary collapse
-
#locate(address, country_bias = nil) ⇒ Object
Locates
addressreturning a Location add ability to bias towards a country.
Instance Method Details
#locate(address, country_bias = nil) ⇒ Object
Locates address returning a Location
add ability to bias towards a country
21 22 23 24 |
# File 'lib/barometer/extensions/graticule.rb', line 21 def locate(address, country_bias=nil) get :q => (address.is_a?(String) ? address : location_from_params(address).to_s), :gl => country_bias end |