public interface GeoIPData
This object encapsulates the information returned from the internal Geo IP Lookup database.
Modifier and Type | Method and Description |
---|---|
double |
getDistance(GeoLocation location)
Returns the distance in miles between two locations.
|
GeoLocation |
getGeoLocation()
Returns the latitude and longitude of the location.
|
InetAddress |
getIPAddress()
Returns the IP Address that this GeoIP Data is based on.
|
Locale |
getLocale()
Returns the result of a geographic lookup of the IP address
indicating where the address was allocated.
|
Locale getLocale()
If the Internet address could not be found in the database, the country and language of the returned Locale are set to empty Strings.
GeoLocation getGeoLocation()
double getDistance(GeoLocation location)
location
- the location to return the distance toInetAddress getIPAddress()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.