Java API for GeoIP2 webservice client and database reader
maxmind-db
dependency to a new version that no longer uses
Jackson. This improves database lookup performance.isResidentialProxy()
method was added to
com.maxmind.geoip2.model.AnonymousIpResponse
and
com.maxmind.geoip2.record.Traits
for use with the Anonymous IP database
and GeoIP2 Precision insights.maxmind-db
dependency to reduce locking when being used from
multiple threads and to improve the exceptions thrown on an invalid
database.maxmind-db
dependency to fix handling of long strings in the
database. Reported by Dongmin Yu. GitHub #181.DatabaseReader
now provides the methods that return an Optional
rather
than throwing an exception when the record is not found in the database. These
methods are prefixed with "try". Closes #28. Pull request by Luke Butters.
GitHub #147.getNetwork()
methods have been added to the various response models. These
return a com.maxmind.db.Network
object representing the largest network
where all the fields besides the IP address are the same.isAnonymousVpn()
and
isHostingProvider()
to be more descriptive.DatabaseReader
methods city()
and country()
can now be called on
the Enterprise database and the country()
method can be called on City
databases. Request by Gergely Boromissza. GitHub #132.getStaticIpScore()
and getUserCount()
methods were added to
com.maxmind.geoip2.record.Traits
for use with GeoIP2 Precision Insights.
They represent a measure of how static or dynamic an IP address is, and an
estimate of the number of users sharing a given address or network,
respectively.userId
to accountId
in various places and support the future error
codes ACCOUNT_ID_REQUIRED
and ACCOUNT_ID_UNKNOWN
.Proxy.NO_PROXY
.isInEuropeanUnion()
method was added to
com.maxmind.geoip2.record.Country
. This returns true
if the country
is a member state of the European Union.com.maxmind.geoip2.record.Traits
for use with GeoIP2 Precision Insights:
isAnonymous()
, isAnonymousVpn()
, isHostingProvider()
, isPublicProxy()
,
and isTorExitNode()
.maxmind-db
dependency to fix jackson-databind
version range
issue. Closes GitHub #77.