java.lang.Object
com.maxmind.geoip2.record.AbstractRecord
com.maxmind.geoip2.record.Location
com.maxmind.minfraud.response.GeoIp2Location
public final class GeoIp2Location
extends com.maxmind.geoip2.record.Location
This class contains minFraud response data related to the GeoIP2 Insights location.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.maxmind.geoip2.record.Location
getAccuracyRadius, getAverageIncome, getLatitude, getLongitude, getMetroCode, getPopulationDensity, getTimeZone
Methods inherited from class com.maxmind.geoip2.record.AbstractRecord
toJson, toString
-
Constructor Details
-
GeoIp2Location
public GeoIp2Location(Integer accuracyRadius, Integer averageIncome, Double latitude, String localTime, Double longitude, Integer metroCode, Integer populationDensity, String timeZone) Constructor forEmailDomain
.- Parameters:
accuracyRadius
- The approximate accuracy radius in kilometers.averageIncome
- The average income in US dollars associated with the IP address.latitude
- The approximate latitude of the location associated with the IP address.localTime
- The date and time of the transaction in the time zone associated with the IP address.longitude
- The approximate longitude of the location associated with the IP address.metroCode
- The metro code of the location if the location is in the US.populationDensity
- The estimated population per square kilometer associated with the IP address.timeZone
- The time zone associated with the location.
-
GeoIp2Location
public GeoIp2Location()Constructor forGeoIp2Location
-
-
Method Details
-
getLocalTime
- Returns:
- The date and time of the transaction in the time zone associated with the IP address. The value is formatted according to RFC 3339. For instance, the local time in Boston might be returned as "2015-04-27T19:17:24-04:00".
-
getLocalDateTime
- Returns:
- The date and time of the transaction in the time zone associated with the IP address
as a
ZonedDateTime
.
-