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.
Constructor and Description |
---|
City() |
City(List<String> locales,
Integer confidence,
Integer geoNameId,
Map<String,String> names) |
Modifier and Type | Method and Description |
---|---|
Integer |
getConfidence() |
getGeoNameId, getName, getNames
toJson, toString
public Integer getConfidence()
Copyright © 2020 MaxMind, Inc.. All rights reserved.