Package com.maxmind.minfraud.response
Class GeoIp2Location
- 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 Constructor Description GeoIp2Location()
GeoIp2Location(Integer accuracyRadius, Integer averageIncome, Double latitude, String localTime, Double longitude, Integer metroCode, Integer populationDensity, String timeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZonedDateTime
getLocalDateTime()
String
getLocalTime()
-
-
-
Method Detail
-
getLocalTime
public String 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
public ZonedDateTime getLocalDateTime()
- Returns:
- The date and time of the transaction in the time zone associated
with the IP address as a
ZonedDateTime
.
-
-