Class: Geocoder::Lookup::Pelias

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

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Method Details

#endpointObject


10
11
12
# File 'lib/geocoder/lookups/pelias.rb', line 10

def endpoint
  configuration[:endpoint] || 'localhost'
end

#nameObject


6
7
8
# File 'lib/geocoder/lookups/pelias.rb', line 6

def name
  'Pelias'
end

#required_api_key_partsObject


14
15
16
# File 'lib/geocoder/lookups/pelias.rb', line 14

def required_api_key_parts
  ['search-XXXX']
end