class Geocoder::Lookup::Here

def api_key_not_string!

def api_key_not_string!
  msg = <<~MSG
    API key for HERE Geocoding and Search API should be a string.
    For more info on how to obtain it, please see https://developer.here.com/documentation/identity-access-management/dev_guide/topics/plat-using-apikeys.html
  MSG
  raise_error(Geocoder::ConfigurationError, msg) || Geocoder.log(:warn, msg)
end