Class City


public final class City extends AbstractNamedRecord

City-level data associated with an IP address.

Do not use any of the city names as a database or map key. Use the value returned by AbstractNamedRecord.getGeoNameId() instead.

  • Constructor Details

  • Method Details

    • getConfidence

      public Integer getConfidence()
      Returns:
      A value from 0-100 indicating MaxMind's confidence that the city is correct. This attribute is only available from the Insights web service and the GeoIP2 Enterprise database.