Class GeoIP2Helper

java.lang.Object
ecmwf.common.technical.GeoIP2Helper

public final class GeoIP2Helper extends Object
The Class GeoIP2Helper.
  • Constructor Details

    • GeoIP2Helper

      public GeoIP2Helper()
  • Method Details

    • getCityResponse

      public static com.maxmind.geoip2.model.CityResponse getCityResponse(String hostName) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
      Gets the city response.
      Parameters:
      hostName - the host name
      Returns:
      the city response
      Throws:
      IOException - Signals that an I/O exception has occurred.
      com.maxmind.geoip2.exception.GeoIp2Exception - Signals that a GeoIP2 exception has occurred.