java.lang.Object
com.maxmind.geoip2.record.AbstractRecord
com.maxmind.geoip2.record.AbstractNamedRecord
- Direct Known Subclasses:
City
,Continent
,Country
,Subdivision
Abstract class for records with name maps.
-
Method Summary
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
Method Details
-
getGeoNameId
- Returns:
- The GeoName ID for the city.
-
getName
- Returns:
- The name of the city based on the locales list passed to the constructor.
-
getNames
- Returns:
- A
Map
from locale codes to the name in that locale.
-