Class Subdivision


public final class Subdivision extends AbstractNamedRecord

Contains data for the subdivisions associated with an IP address.

This record is returned by all the end points except the Country end point.

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

  • Constructor Details

  • Method Details

    • getConfidence

      public Integer getConfidence()
      Returns:
      This is a value from 0-100 indicating MaxMind's confidence that the subdivision is correct. This attribute is only available from the Insights end point and the GeoIP2 Enterprise database.
    • getIsoCode

      public String getIsoCode()
      Returns:
      This is a string up to three characters long contain the subdivision portion of the ISO 3166-2code. This attribute is returned by all end points except Country.