Class: Geocoder::Lookup::Dstk

Inherits:
Google show all
Defined in:
lib/geocoder/lookups/dstk.rb

Instance Method Summary collapse

Methods inherited from Google

#map_link_url

Methods inherited from Base

#cache, #handle, #initialize, #map_link_url, #required_api_key_parts, #search

Constructor Details

This class inherits a constructor from Geocoder::Lookup::Base

Instance Method Details

#nameObject


11
12
13
# File 'lib/geocoder/lookups/dstk.rb', line 11

def name
  "Data Science Toolkit"
end

#query_url(query) ⇒ Object


15
16
17
18
# File 'lib/geocoder/lookups/dstk.rb', line 15

def query_url(query)
  host = configuration[:host] || "www.datasciencetoolkit.org"
  "#{protocol}://#{host}/maps/api/geocode/json?" + url_query_string(query)
end