Geonames Registry, null for none.
double
double
int
long
boolean
hasError()
int
hashCode()
boolean
isValid()
static RegionLocation.Language
languageFrom(String code, String name, String nativeName)
static int
static RegionLocation.Timezone
timezoneFrom(String id, String code, Integer gmtOffset)
toString()
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDistance
ipAddress
- The IP address.error
- The error string.ipAddress
- The IP address.continent
- Continent name, e.g. 'North America'.continentCode
- Continent code, e.g. 'NA'.country
- Country name, e.g. 'United States'.countryISO
- ISO code for the country, e.g. 'US'.countryConfidence
- Confidence (0-100) of the country, -1 for none, e.g. '99'.region
- Region name, e.g. 'California'.regionCode
- Region code, e.g. 'CA'.city
- City name, null for none, e.g. 'Minneapolis'.cityISO
- City ISO code, null for none, e.g. 'MN'.cityConfidence
- Confidence (0-100) of the city, -1 for none, e.g. '50'.zipCode
- Zip code, null for none, e.g. '55455'.zipCodeConfidence
- Confidence (0-100) of the zip code, -1 for none, e.g. '40'.longitude
- Longitude, e.g. '44.9733'.latitude
- Latitude, e.g. '-93.2323'.accuracyRadius
- Accuracy radius of the longitude/latitude location, -1d
for none, e.g. '3'.geoNameID
- The unique geoname identifier in accordance with the Geonames Registry, null for none.timezone
- Time zone, null for none.currency
- The currency, null for none.languages
- Array of languages spoken in the country, null for none.connection
- The connection, null for none.security
- The security, null for none.getLongitude
in interface ILongitudeLatitude
getLatitude
in interface ILongitudeLatitude
-1d
for none, e.g. '3'.null
or Double.isNaN(value)
are not present.id
- The timezone ID, null for none.code
- The timezone code, null for none.gmtOffset
- The GMT offset of the given time zone in seconds, e.g. -25200 for PST's -7h GMT offset, null for none.id
is null
.code
- The 2-letter language code for the given language.name
- The name (in the API request's main language) of the given language, e.g. 'Portuguese', null for none.nativeName
- The native name of the given language, e.g. 'Português', null for none.NullPointerException
- If code
is null
.code
- The 3-letter language code for the given currency code, never null.name
- Name in English of the given currency, null for none.pluralName
- Plural name of the given currency, null for none.symbol
- Symbol letter of the given currency, null for none.nativeSymbol
- Native symbol letter of the given currency, null for none.code
is not null
, otherwise null.asn
- The Autonomous System Number associated with the IP, null if not defined.isp
- The name of the ISP associated with the IP, null if not defined.s
- The string, perhaps null.