Class GeoLite2Geolocator
java.lang.Object
com.djrapitops.plan.gathering.geolocation.GeoLite2Geolocator
- All Implemented Interfaces:
Geolocator
Geolocator
implementation for MaxMind GeoLite2 database.
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCountry
(InetAddress inetAddress) void
prepare()
Do everything that is needed for the geolocator to function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.gathering.geolocation.Geolocator
getCountry
-
Constructor Details
-
GeoLite2Geolocator
-
-
Method Details
-
prepare
Description copied from interface:Geolocator
Do everything that is needed for the geolocator to function.- Specified by:
prepare
in interfaceGeolocator
- Throws:
IOException
- If the preparation failsUnknownHostException
- If preparation requires internet, but internet is not available.
-
getCountry
- Specified by:
getCountry
in interfaceGeolocator
-