lib/geocoder/lookups/baidu.rb in geocoder-1.2.8 vs lib/geocoder/lookups/baidu.rb in geocoder-1.2.9
- old
+ new
@@ -14,10 +14,15 @@
def query_url(query)
"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)
return [] unless doc = fetch_data(query)
case doc['status']
@@ -50,6 +55,5 @@
}.merge(super)
end
end
end
-