Class AbstractNamedRecord

java.lang.Object
com.maxmind.geoip2.record.AbstractRecord
com.maxmind.geoip2.record.AbstractNamedRecord
Direct Known Subclasses:
City, Continent, Country, Subdivision

public abstract class AbstractNamedRecord extends AbstractRecord
Abstract class for records with name maps.
  • Method Details

    • getGeoNameId

      public Long getGeoNameId()
      Returns:
      The GeoName ID for the city.
    • getName

      public String getName()
      Returns:
      The name of the city based on the locales list passed to the constructor.
    • getNames

      public Map<String,String> getNames()
      Returns:
      A Map from locale codes to the name in that locale.