Class: Geocoder::Lookup::GooglePremier
- Defined in:
- lib/geocoder/lookups/google_premier.rb
Instance Method Summary collapse
Methods inherited from Google
#map_link_url, #supported_protocols
Methods inherited from Base
#cache, #handle, #initialize, #map_link_url, #search, #supported_protocols
Constructor Details
This class inherits a constructor from Geocoder::Lookup::Base
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/geocoder/lookups/google_premier.rb', line 9 def name "Google Premier" end |
#query_url(query) ⇒ Object
17 18 19 20 |
# File 'lib/geocoder/lookups/google_premier.rb', line 17 def query_url(query) path = "/maps/api/geocode/json?" + url_query_string(query) "#{protocol}://maps.googleapis.com#{path}&signature=#{sign(path)}" end |
#required_api_key_parts ⇒ Object
13 14 15 |
# File 'lib/geocoder/lookups/google_premier.rb', line 13 def required_api_key_parts ["private key"] end |