diff --git a/lib/geocoder/lookups/concerns/here_lookup_default_methods.rb b/lib/geocoder/lookups/concerns/here_lookup_default_methods.rb index 90b0387..b47ed55 100644 --- a/lib/geocoder/lookups/concerns/here_lookup_default_methods.rb +++ b/lib/geocoder/lookups/concerns/here_lookup_default_methods.rb @@ -7,37 +7,24 @@ def handle end def required_api_key_parts - ["app_id", "app_code"] + ["app_key"] + end + + def supported_protocols + [:https] end private def query_url_here_options(query) options = { - app_id: api_key, - app_code: api_code, + api_key: configuration.api_key, language: (query.language || configuration.language) } end - def api_key - if (a = configuration.api_key) - return a.first if a.is_a?(Array) - end - end - - def api_code - if (a = configuration.api_key) - return a.last if a.is_a?(Array) - end - end - def domain - if configuration.cit - 'cit.api.here.com' - else - 'api.here.com' - end + 'ls.hereapi.com' end end end