Package com.maxmind.geoip2.record
Class City
- java.lang.Object
-
- com.maxmind.geoip2.record.AbstractRecord
-
- com.maxmind.geoip2.record.AbstractNamedRecord
-
- com.maxmind.geoip2.record.City
-
public final class City extends AbstractNamedRecord
City-level data 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 city names as a database or map key. Use the value returned by
AbstractNamedRecord.getGeoNameId()
instead.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getConfidence()
-
Methods inherited from class com.maxmind.geoip2.record.AbstractNamedRecord
getGeoNameId, getName, getNames
-
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
-
-
-
Method Detail
-
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 end point and the GeoIP2 Enterprise database.
-
-