Interface Geolocator
- All Known Implementing Classes:
GeoLite2Geolocator
public interface Geolocator
Interface for different Geolocation service calls.
-
Method Summary
Modifier and TypeMethodDescriptiongetCountry(String address)
getCountry(InetAddress inetAddress)
void
prepare()
Do everything that is needed for the geolocator to function.
-
Method Details
-
prepare
Do everything that is needed for the geolocator to function.- Throws:
IOException
- If the preparation failsUnknownHostException
- If preparation requires internet, but internet is not available.PreparationException
- If preparation fails due to Plan settings
-
getCountry
-
getCountry
-