public abstract class AbstractCityResponse extends AbstractCountryResponse
Modifier and Type | Method and Description |
---|---|
City |
getCity() |
Subdivision |
getLeastSpecificSubdivision() |
Location |
getLocation() |
Subdivision |
getMostSpecificSubdivision() |
Postal |
getPostal() |
List<Subdivision> |
getSubdivisions() |
getContinent, getCountry, getMaxMind, getRegisteredCountry, getRepresentedCountry, getTraits
toJson, toString
public City getCity()
public Location getLocation()
public Postal getPostal()
public List<Subdivision> getSubdivisions()
List
of Subdivision
objects representing the
country subdivisions for the requested IP address. The number and
type of subdivisions varies by country, but a subdivision is
typically a state, province, county, etc. Subdivisions are
ordered from most general (largest) to most specific (smallest).
If the response did not contain any subdivisions, this method
returns an empty array.public Subdivision getMostSpecificSubdivision()
Subdivision
object.public Subdivision getLeastSpecificSubdivision()
Subdivision
object.Copyright © 2020 MaxMind, Inc.. All rights reserved.