From 379c6c9ac2fdca048349cdc9c0d6a7a2f4fbc185 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Tue, 20 Feb 2018 16:24:17 -0500 Subject: [PATCH] Restore HTTP support for LocationIQ. Should have been part of 7cb0acc985ccb49c65c0529dab1d111165e8a1b9 --- lib/geocoder/lookups/location_iq.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/geocoder/lookups/location_iq.rb b/lib/geocoder/lookups/location_iq.rb index 197e7696..3773d406 100644 --- a/lib/geocoder/lookups/location_iq.rb +++ b/lib/geocoder/lookups/location_iq.rb @@ -16,6 +16,10 @@ module Geocoder::Lookup "#{protocol}://locationiq.org/v1/#{method}.php?key=#{configuration.api_key}&" + url_query_string(query) end + def supported_protocols + [:http, :https] + end + private def results(query) -- GitLab