class Geocoder::Lookup::MaxmindGeoip2
Public Instance Methods
name()
click to toggle source
# File lib/geocoder/lookups/maxmind_geoip2.rb, line 7 def name "MaxMind GeoIP2" end
query_url(query)
click to toggle source
# File lib/geocoder/lookups/maxmind_geoip2.rb, line 17 def query_url(query) "#{protocol}://geoip.maxmind.com/geoip/v2.1/#{configured_service!}/#{query.sanitized_text.strip}" end
supported_protocols()
click to toggle source
Maxmind’s GeoIP2 Precision Services only supports HTTPS, otherwise a ‘404 Not Found` HTTP response will be returned
# File lib/geocoder/lookups/maxmind_geoip2.rb, line 13 def supported_protocols [:https] end