Class: Geocoder::Lookup::Osmnames

Inherits:
Base
  • Object
show all
Defined in:
lib/geocoder/lookups/osmnames.rb

Instance Method Summary collapse

Methods inherited from Base

#cache, #handle, #initialize, #map_link_url, #query_url, #search

Constructor Details

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

Instance Method Details

#nameObject


8
9
10
# File 'lib/geocoder/lookups/osmnames.rb', line 8

def name
  'OSM Names'
end

#required_api_key_partsObject


12
13
14
# File 'lib/geocoder/lookups/osmnames.rb', line 12

def required_api_key_parts
  configuration[:host] ? [] : ['key']
end

#supported_protocolsObject


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

def supported_protocols
  [:https]
end