Skip to content
Snippets Groups Projects
Commit a09bce79 authored by Matthew Rudy Jacobs's avatar Matthew Rudy Jacobs
Browse files

baidu and baidu_ip are both http only

parent a8cdbcf4
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ module Geocoder::Lookup
"http://api.map.baidu.com/geocoder/v2/?" + url_query_string(query)
end
# HTTP only
def supported_protocols
[:http]
end
private # ---------------------------------------------------------------
def results(query, reverse = false)
......@@ -52,4 +57,3 @@ module Geocoder::Lookup
end
end
......@@ -16,6 +16,11 @@ module Geocoder::Lookup
"http://api.map.baidu.com/location/ip?" + url_query_string(query)
end
# HTTP only
def supported_protocols
[:http]
end
private # ---------------------------------------------------------------
def results(query, reverse = false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment