Class: Geocoder::Lookup::GooglePremier

Inherits:
Google
  • Object
show all
Defined in:
lib/geocoder/lookups/google_premier.rb

Instance Method Summary collapse

Methods inherited from Google

#map_link_url

Methods inherited from Base

#cache, #handle, #map_link_url, #search

Instance Method Details

#nameObject



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_partsObject



13
14
15
# File 'lib/geocoder/lookups/google_premier.rb', line 13

def required_api_key_parts
  ["private key", "client", "channel"]
end